public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] Refactor lan9303_xxx_packet_processing
@ 2017-07-31 11:33 Egil Hjelmeland
  2017-07-31 11:33 ` [PATCH net-next 1/2] net: dsa: lan9303: Refactor lan9303_xxx_packet_processing() Egil Hjelmeland
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Egil Hjelmeland @ 2017-07-31 11:33 UTC (permalink / raw)
  To: andrew, vivien.didelot, f.fainelli, netdev, linux-kernel, kernel
  Cc: Egil Hjelmeland

First patch: 
Change lan9303_enable_packet_processing,
lan9303_disable_packet_processing():
Pass port number (0,1,2) as parameter instead of port offset.
Plus replaced a constant 0x400 with LAN9303_SWITCH_PORT_REG()

Second patch: Simplify accordingly.

Comments welcome!

Egil Hjelmeland (2):
  net: dsa: lan9303: Refactor lan9303_xxx_packet_processing()
  net: dsa: lan9303: Simplify lan9303_xxx_packet_processing() usage

 drivers/net/dsa/lan9303-core.c | 73 ++++++++++++++++++++----------------------
 1 file changed, 35 insertions(+), 38 deletions(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-07-31 15:18 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-31 11:33 [PATCH net-next 0/2] Refactor lan9303_xxx_packet_processing Egil Hjelmeland
2017-07-31 11:33 ` [PATCH net-next 1/2] net: dsa: lan9303: Refactor lan9303_xxx_packet_processing() Egil Hjelmeland
2017-07-31 13:36   ` Andrew Lunn
2017-07-31 11:33 ` [PATCH net-next 2/2] net: dsa: lan9303: Simplify lan9303_xxx_packet_processing() usage Egil Hjelmeland
2017-07-31 13:46   ` Andrew Lunn
2017-07-31 14:09     ` Egil Hjelmeland
2017-07-31 14:47       ` Andrew Lunn
2017-07-31 14:00   ` Vivien Didelot
2017-07-31 14:32     ` Egil Hjelmeland
2017-07-31 14:43       ` Vivien Didelot
2017-07-31 14:58         ` Egil Hjelmeland
2017-07-31 15:01           ` Vivien Didelot
2017-07-31 15:08             ` Egil Hjelmeland
2017-07-31 15:15               ` Vivien Didelot
2017-07-31 13:22 ` [PATCH net-next 0/2] Refactor lan9303_xxx_packet_processing Andrew Lunn
2017-07-31 13:32   ` Egil Hjelmeland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox