Ignore:
Timestamp:
2011-01-14T19:19:41+01:00 (5 years ago)
Author:
juhosg
Message:

backfire: generic: rtl8366: add enable_port helper (backport of r24937)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/target/linux/generic-2.6/files/drivers/net/phy/rtl8366s.c

    r24995 r24997  
    604604 
    605605        return 1; 
     606} 
     607 
     608static int rtl8366s_enable_port(struct rtl8366_smi *smi, int port, int enable) 
     609{ 
     610        return rtl8366_smi_rmwr(smi, RTL8366S_PECR, (1 << port), 
     611                                (enable) ? 0 : (1 << port)); 
    606612} 
    607613 
     
    10331039        .enable_vlan    = rtl8366s_enable_vlan, 
    10341040        .enable_vlan4k  = rtl8366s_enable_vlan4k, 
     1041        .enable_port    = rtl8366s_enable_port, 
    10351042}; 
    10361043 
Note: See TracChangeset for help on using the changeset viewer.