OpenCloudOS-Kernel/drivers/net/dsa/mv88e6xxx
Vivien Didelot c8652c83bc net: dsa: add dsa_to_port helper
The dsa_port structure is part of DSA core data and must only be updated
by the later. It is OK and sometimes necessary for the DSA drivers to
access this data, but this has to be read only.

For that purpose, add a dsa_to_port() helper which returns a const
pointer to a dsa_port structure which must be used by DSA drivers from
now on instead of digging into ds->ports[] themselves.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-10-18 12:24:33 +01:00
..
Kconfig net: dsa: mv88e6xxx: Select IRQ_DOMAIN 2016-11-18 13:54:22 -05:00
Makefile net: dsa: mv88e6xxx: Refactor mv88e6352 SERDES code into an op 2017-05-26 15:00:44 -04:00
chip.c net: dsa: add dsa_to_port helper 2017-10-18 12:24:33 +01:00
chip.h net: dsa: mv88e6xxx: remove EEE support 2017-08-01 20:09:10 -07:00
global1.c net: dsa: mv88e6xxx: prefix Global Stats macros 2017-06-15 14:07:50 -04:00
global1.h net: dsa: mv88e6xxx: prefix Global Prio and Tag macros 2017-06-15 14:07:50 -04:00
global1_atu.c net: dsa: mv88e6xxx: prefix Global ATU macros 2017-06-15 14:07:48 -04:00
global1_vtu.c net: dsa: mv88e6xxx: prefix Global VTU macros 2017-06-15 14:07:49 -04:00
global2.c net: dsa: mv88e6xxx: make irq_chip const 2017-08-20 20:02:29 -07:00
global2.h net: dsa: mv88e6xxx: add a global2_addr info flag 2017-07-18 11:10:58 -07:00
phy.c net: dsa: mv88e6xxx: remove EEE support 2017-08-01 20:09:10 -07:00
phy.h net: dsa: mv88e6xxx: remove EEE support 2017-08-01 20:09:10 -07:00
port.c net: dsa: mv88e6xxx: remove EEE support 2017-08-01 20:09:10 -07:00
port.h net: dsa: mv88e6xxx: remove EEE support 2017-08-01 20:09:10 -07:00
serdes.c net: dsa: mv88e6xxx: fix error code in mv88e6390_serdes_power() 2017-06-25 11:42:33 -04:00
serdes.h net: dsa: mv88e6xxx: rename chip header 2017-06-04 20:07:40 -04:00