Changeset 47916


Ignore:
Timestamp:
2015-12-17T10:28:10+01:00 (2 years ago)
Author:
blogic
Message:

lantiq: ltq-atm: set carrier status

This prevents the unconditionally start of pppd since netifd will be
triggered if the device goes into showtime. The same applies to lost
showtime as well.

In compare to the ptm driver, this changeset isn't strictly required,
since the "not in showtime" message is limited to the debug loglevel.
But it reduces the amount of ppp related messages significant.

Signed-off-by: Mathias Kresin <openwrt@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/lantiq/ltq-atm/src/ltq_atm.c

    r46984 r47916  
    17161716static int atm_showtime_enter(struct port_cell_info *port_cell, void *xdata_addr) 
    17171717{ 
    1718         int i, j; 
     1718        int i, j, port_num; 
    17191719 
    17201720        ASSERT(port_cell != NULL, "port_cell is NULL"); 
     
    17391739        g_showtime = 1; 
    17401740 
     1741        for ( port_num = 0; port_num < ATM_PORT_NUMBER; port_num++ ) 
     1742                atm_dev_signal_change(g_atm_priv_data.port[port_num].dev, ATM_PHY_SIG_FOUND); 
     1743 
    17411744#if defined(CONFIG_VR9) 
    17421745        IFX_REG_W32(0x0F, UTP_CFG); 
     
    17531756static int atm_showtime_exit(void) 
    17541757{ 
     1758        int port_num; 
     1759 
    17551760        if ( !g_showtime ) 
    17561761                return -1; 
     
    17591764        IFX_REG_W32(0x00, UTP_CFG); 
    17601765#endif 
     1766 
     1767        for ( port_num = 0; port_num < ATM_PORT_NUMBER; port_num++ ) 
     1768                atm_dev_signal_change(g_atm_priv_data.port[port_num].dev, ATM_PHY_SIG_LOST); 
     1769 
    17611770        g_showtime = 0; 
    17621771        g_xdata_addr = NULL; 
     
    18251834                        g_atm_priv_data.port[port_num].dev->link_rate = g_atm_priv_data.port[port_num].tx_max_cell_rate; 
    18261835                        g_atm_priv_data.port[port_num].dev->dev_data = (void*)port_num; 
     1836 
     1837#if defined(CONFIG_IFXMIPS_DSL_CPE_MEI) || defined(CONFIG_IFXMIPS_DSL_CPE_MEI_MODULE) 
     1838                        atm_dev_signal_change(g_atm_priv_data.port[port_num].dev, ATM_PHY_SIG_LOST); 
     1839#endif 
    18271840                } 
    18281841        } 
Note: See TracChangeset for help on using the changeset viewer.