Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1475084
| From | Vivien Didelot <vivien.didelot@savoirfairelinux.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH net-next 0/3] net: dsa: mv88e6xxx: isolate Global2 support |
| Date | 2016-09-02 14:10 +0200 |
| Message-ID | <scVse-7Ky-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Registers of Marvell chips are organized in internal SMI devices. One of them at address 0x1C is called Global2. It provides an extended set of registers, used for interrupt control, EEPROM access, indirect PHY access (to bypass the PHY Polling Unit) and cross-chip setup. Most chips have it, but some others don't (older ones such as 6060). Now that its related code is isolated in mv88e6xxx_g2_* functions, move it to its own global2.c file, making most of its setup code static. Then make its compilation optional, which allows to reduce the size of the mv88e6xxx driver for devices such as home routers embedding Ethernet chips without Global2 support. It is present on most recent chips, thus enable its support by default. Vivien Didelot (3): net: dsa: mv88e6xxx: fix module naming net: dsa: mv88e6xxx: move Global2 code net: dsa: mv88e6xxx: make global2 code optional drivers/net/dsa/mv88e6xxx/Kconfig | 11 + drivers/net/dsa/mv88e6xxx/Makefile | 4 +- drivers/net/dsa/mv88e6xxx/chip.c | 461 +-------------------------------- drivers/net/dsa/mv88e6xxx/global2.c | 470 ++++++++++++++++++++++++++++++++++ drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 58 +++++ 5 files changed, 553 insertions(+), 451 deletions(-) create mode 100644 drivers/net/dsa/mv88e6xxx/global2.c -- 2.9.3
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH net-next 0/3] net: dsa: mv88e6xxx: isolate Global2 support Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-09-02 14:10 +0200
[PATCH net-next 2/3] net: dsa: mv88e6xxx: move Global2 code Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-09-02 14:10 +0200
[PATCH net-next 3/3] net: dsa: mv88e6xxx: make global2 code optional Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-09-02 14:10 +0200
Re: [PATCH net-next 3/3] net: dsa: mv88e6xxx: make global2 code optional Andrew Lunn <andrew@lunn.ch> - 2016-09-02 17:00 +0200
Re: [PATCH net-next 3/3] net: dsa: mv88e6xxx: make global2 code optional Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-09-02 17:30 +0200
Re: [PATCH net-next 3/3] net: dsa: mv88e6xxx: make global2 code optional Andrew Lunn <andrew@lunn.ch> - 2016-09-02 18:20 +0200
Re: [PATCH net-next 3/3] net: dsa: mv88e6xxx: make global2 code optional Andrew Lunn <andrew@lunn.ch> - 2016-09-02 19:20 +0200
Re: [PATCH net-next 3/3] net: dsa: mv88e6xxx: make global2 code optional Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-09-02 19:50 +0200
Re: [PATCH net-next 3/3] net: dsa: mv88e6xxx: make global2 code optional Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-09-02 19:20 +0200
csiph-web