netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 00/11] Modernize mdio-gpio
@ 2018-04-18 23:02 Andrew Lunn
  2018-04-18 23:02 ` [PATCH net-next 01/11] net: phy_ mdio-gpio: Fixup , which should be ; Andrew Lunn
                   ` (12 more replies)
  0 siblings, 13 replies; 16+ messages in thread
From: Andrew Lunn @ 2018-04-18 23:02 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Florian Fainelli, Linus Walleij, Andrew Lunn

This patchset is inspired by a previous version by Linus Walleij

It reworks the mdio-gpio code to make use of gpio descriptors instead
of gpio numbers. However compared to the previous version, it retains
support for platform devices. It does however remove the platform_data
header file. The needed GPIOs are now passed by making use of a gpiod
lookup table. e.g:

static struct gpiod_lookup_table zii_scu_mdio_gpiod_table = {
	.dev_id = "mdio-gpio.0",
	.table = {
		GPIO_LOOKUP_IDX("gpio_ich", 17, NULL, MDIO_GPIO_MDC,
				GPIO_ACTIVE_HIGH),
		GPIO_LOOKUP_IDX("gpio_ich", 2, NULL, MDIO_GPIO_MDIO,
				GPIO_ACTIVE_HIGH),
		GPIO_LOOKUP_IDX("gpio_ich", 21, NULL, MDIO_GPIO_MDO,
				GPIO_ACTIVE_LOW),
	},
};

Andrew Lunn (11):
  net: phy_ mdio-gpio: Fixup , which should be ;
  net: phy: mdio-gpio: Remove reset function
  net: phy: mdio-bitbang: Remove reset support
  net: phy: mdio-gpio: remove support for ignoring turn around
  net: phy: mdio-gpio: remove support for phy mask
  net: phy: mdio-gpio: Remove support for IRQs in platform data
  net: phy: mdio-gpio: Swap to using gpio descriptors
  net: phy: mdio-gpio: Move allocation for bitbanging data
  net: phy: mdio-gpio: Parse properties directly into bitbang structure
  net: phy: mdio-gpio: Add #defines for the GPIO index's
  net: phy: mdio-gpio: Remove redundant platform data header

 MAINTAINERS                             |   1 -
 drivers/net/phy/mdio-bitbang.c          |   9 --
 drivers/net/phy/mdio-gpio.c             | 122 ++++++------------------
 include/linux/mdio-bitbang.h            |   2 -
 include/linux/mdio-gpio.h               |   9 ++
 include/linux/platform_data/mdio-gpio.h |  33 -------
 6 files changed, 40 insertions(+), 136 deletions(-)
 create mode 100644 include/linux/mdio-gpio.h
 delete mode 100644 include/linux/platform_data/mdio-gpio.h

-- 
2.17.0

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

end of thread, other threads:[~2018-04-19 20:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-18 23:02 [PATCH net-next 00/11] Modernize mdio-gpio Andrew Lunn
2018-04-18 23:02 ` [PATCH net-next 01/11] net: phy_ mdio-gpio: Fixup , which should be ; Andrew Lunn
2018-04-19 20:00   ` David Miller
2018-04-18 23:02 ` [PATCH net-next 02/11] net: phy: mdio-gpio: Remove reset function Andrew Lunn
2018-04-18 23:02 ` [PATCH net-next 03/11] net: phy: mdio-bitbang: Remove reset support Andrew Lunn
2018-04-18 23:02 ` [PATCH net-next 04/11] net: phy: mdio-gpio: remove support for ignoring turn around Andrew Lunn
2018-04-18 23:02 ` [PATCH net-next 05/11] net: phy: mdio-gpio: remove support for phy mask Andrew Lunn
2018-04-18 23:02 ` [PATCH net-next 06/11] net: phy: mdio-gpio: Remove support for IRQs in platform data Andrew Lunn
2018-04-18 23:02 ` [PATCH net-next 07/11] net: phy: mdio-gpio: Swap to using gpio descriptors Andrew Lunn
2018-04-18 23:02 ` [PATCH net-next 08/11] net: phy: mdio-gpio: Move allocation for bitbanging data Andrew Lunn
2018-04-18 23:02 ` [PATCH net-next 09/11] net: phy: mdio-gpio: Parse properties directly into bitbang structure Andrew Lunn
2018-04-18 23:02 ` [PATCH net-next 10/11] net: phy: mdio-gpio: Add #defines for the GPIO index's Andrew Lunn
2018-04-18 23:02 ` [PATCH net-next 11/11] net: phy: mdio-gpio: Remove redundant platform data header Andrew Lunn
2018-04-19 19:52 ` [PATCH net-next 00/11] Modernize mdio-gpio Linus Walleij
2018-04-19 20:20   ` Andrew Lunn
2018-04-19 19:59 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).