* [PATCH 00/33] spi: get rid of some legacy macros
@ 2024-01-15 20:12 Uwe Kleine-König
2024-01-15 20:12 ` [PATCH 01/33] fpga: ice40-spi: Follow renaming of SPI "master" to "controller" Uwe Kleine-König
2024-01-16 14:40 ` [PATCH 00/33] spi: get rid of some legacy macros Mark Brown
0 siblings, 2 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2024-01-15 20:12 UTC (permalink / raw)
To: Mark Brown, Geert Uytterhoeven
Cc: linux-spi, kernel, Moritz Fischer, Wu Hao, Xu Yilun, Tom Rix,
linux-fpga, Alexander Aring, Stefan Schmidt, Miquel Raynal,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
linux-wpan, netdev, Lars-Peter Clausen, Michael Hennerich,
Jonathan Cameron, linux-iio, Dmitry Torokhov, linux-input,
Ulf Hansson, Greg Kroah-Hartman, Rayyan Ansari, Andy Shevchenko,
Jonathan Cameron, Martin Tuma, Mauro Carvalho Chehab, linux-media,
Sergey Kozlov, Arnd Bergmann, Yang Yingliang, linux-mmc,
Richard Weinberger, Vignesh Raghavendra, Heiko Stuebner,
Linus Walleij, Amit Kumar Mahapatra via Alsa-devel, Rob Herring,
linux-mtd, Martin Blumenstingl, Jernej Skrabec, Nicolas Ferre,
Pali Rohár, Ronald Wahl, Benson Leung, Tzung-Bi Shih,
Guenter Roeck, chrome-platform, Michal Simek, Max Filippov,
linux-arm-kernel, Bjorn Andersson, Konrad Dybcio, linux-arm-msm,
Matthias Brugger, AngeloGioacchino Del Regno, linux-mediatek,
Thomas Zimmermann, Javier Martinez Canillas, Sam Ravnborg,
Amit Kumar Mahapatra, dri-devel, linux-fbdev, linux-staging,
Rui Miguel Silva, Viresh Kumar, Johan Hovold, Alex Elder,
greybus-dev, Peter Huewe, Jarkko Sakkinen, Jason Gunthorpe,
linux-integrity, Herve Codina, Aaro Koskinen, Krzysztof Kozlowski,
linux-usb, Helge Deller, Dario Binacchi, Kalle Valo,
Dmitry Antipov, libertas-dev, linux-wireless, Jonathan Corbet,
James Clark, Bjorn Helgaas, linux-doc
Hello,
In commit 8caab75fd2c2 ("spi: Generalize SPI "master" to "controller"")
some functions were renamed. Further some compat defines were introduced
to map the old names to the new ones.
In this series all drivers still using the old names are changed to use
the new ones and then in patch #32 the compat defines are dropped.
Variables and struct members of type pointer to struct spi_controller that were
named "master" (matching the old name of spi_controller) were renamed to
"ctlr", which slightly increased the count of touched lines, but is nice
for consistency.
Patch #18 and #19 touch the same driver, otherwise the patches #1 - #31
are pairwise independent and could be applied by their respective
maintainers. The alternative is to let all patches go via the spi tree.
Mark, what's your preference here?
Patch #33 updates the documentation. (This one is a bit fuzzy, because
it also does some s/master/host/ which doesn't match the remainder of
the series). Also patch #18 is an improvement I noticed while touching
this driver that doesn't match the series' topic. I still kept it
included here. If you should not like it, it can just be dropped.
Best regards
Uwe
Uwe Kleine-König (33):
fpga: ice40-spi: Follow renaming of SPI "master" to "controller"
ieee802154: ca8210: Follow renaming of SPI "master" to "controller"
iio: adc: ad_sigma_delta: Follow renaming of SPI "master" to "controller"
Input: pxspad - follow renaming of SPI "master" to "controller"
Input: synaptics-rmi4 - follow renaming of SPI "master" to "controller"
media: mgb4: Follow renaming of SPI "master" to "controller"
media: netup_unidvb: Follow renaming of SPI "master" to "controller"
media: usb/msi2500: Follow renaming of SPI "master" to "controller"
media: v4l2-subdev: Follow renaming of SPI "master" to "controller"
misc: gehc-achc: Follow renaming of SPI "master" to "controller"
mmc: mmc_spi: Follow renaming of SPI "master" to "controller"
mtd: dataflash: Follow renaming of SPI "master" to "controller"
mtd: rawnand: fsl_elbc: Let .probe retry if local bus is missing
net: ks8851: Follow renaming of SPI "master" to "controller"
net: vertexcom: mse102x: Follow renaming of SPI "master" to "controller"
platform/chrome: cros_ec_spi: Follow renaming of SPI "master" to "controller"
spi: bitbang: Follow renaming of SPI "master" to "controller"
spi: cadence-quadspi: Don't emit error message on allocation error
spi: cadence-quadspi: Follow renaming of SPI "master" to "controller"
spi: cavium: Follow renaming of SPI "master" to "controller"
spi: geni-qcom: Follow renaming of SPI "master" to "controller"
spi: loopback-test: Follow renaming of SPI "master" to "controller"
spi: slave-mt27xx: Follow renaming of SPI "master" to "controller"
spi: spidev: Follow renaming of SPI "master" to "controller"
staging: fbtft: Follow renaming of SPI "master" to "controller"
staging: greybus: spi: Follow renaming of SPI "master" to "controller"
tpm_tis_spi: Follow renaming of SPI "master" to "controller"
usb: gadget: max3420_udc: Follow renaming of SPI "master" to "controller"
video: fbdev: mmp: Follow renaming of SPI "master" to "controller"
wifi: libertas: Follow renaming of SPI "master" to "controller"
spi: fsl-lib: Follow renaming of SPI "master" to "controller"
spi: Drop compat layer from renaming "master" to "controller"
Documentation: spi: Update documentation for renaming "master" to "controller"
.../driver-api/driver-model/devres.rst | 2 +-
Documentation/spi/spi-summary.rst | 74 +++++++++----------
drivers/char/tpm/tpm_tis_spi_main.c | 4 +-
drivers/fpga/ice40-spi.c | 4 +-
drivers/iio/adc/ad_sigma_delta.c | 14 ++--
drivers/input/joystick/psxpad-spi.c | 4 +-
drivers/input/rmi4/rmi_spi.c | 2 +-
drivers/media/pci/mgb4/mgb4_core.c | 14 ++--
.../media/pci/netup_unidvb/netup_unidvb_spi.c | 48 ++++++------
drivers/media/usb/msi2500/msi2500.c | 38 +++++-----
drivers/media/v4l2-core/v4l2-spi.c | 4 +-
drivers/misc/gehc-achc.c | 8 +-
drivers/mmc/host/mmc_spi.c | 6 +-
drivers/mtd/devices/mtd_dataflash.c | 2 +-
drivers/mtd/nand/raw/fsl_elbc_nand.c | 3 +-
drivers/net/ethernet/micrel/ks8851_spi.c | 4 +-
drivers/net/ethernet/vertexcom/mse102x.c | 2 +-
drivers/net/ieee802154/ca8210.c | 2 +-
.../net/wireless/marvell/libertas/if_spi.c | 2 +-
drivers/platform/chrome/cros_ec_spi.c | 8 +-
drivers/spi/spi-ath79.c | 4 +-
drivers/spi/spi-bitbang.c | 64 ++++++++--------
drivers/spi/spi-butterfly.c | 6 +-
drivers/spi/spi-cadence-quadspi.c | 7 +-
drivers/spi/spi-cavium.c | 6 +-
drivers/spi/spi-cavium.h | 2 +-
drivers/spi/spi-davinci.c | 6 +-
drivers/spi/spi-fsl-lib.c | 14 ++--
drivers/spi/spi-geni-qcom.c | 2 +-
drivers/spi/spi-gpio.c | 2 +-
drivers/spi/spi-lm70llp.c | 6 +-
drivers/spi/spi-loopback-test.c | 4 +-
drivers/spi/spi-oc-tiny.c | 6 +-
drivers/spi/spi-omap-uwire.c | 4 +-
drivers/spi/spi-slave-mt27xx.c | 2 +-
drivers/spi/spi-xilinx.c | 4 +-
drivers/spi/spi-xtensa-xtfpga.c | 2 +-
drivers/spi/spi.c | 2 +-
drivers/spi/spidev.c | 2 +-
drivers/staging/fbtft/fbtft-core.c | 4 +-
drivers/staging/greybus/spilib.c | 66 ++++++++---------
drivers/usb/gadget/udc/max3420_udc.c | 2 +-
drivers/video/fbdev/mmp/hw/mmp_spi.c | 26 +++----
include/linux/spi/spi.h | 20 +----
include/linux/spi/spi_bitbang.h | 2 +-
include/media/v4l2-common.h | 6 +-
46 files changed, 249 insertions(+), 267 deletions(-)
base-commit: 8d04a7e2ee3fd6aabb8096b00c64db0d735bc874
--
2.43.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 01/33] fpga: ice40-spi: Follow renaming of SPI "master" to "controller"
2024-01-15 20:12 [PATCH 00/33] spi: get rid of some legacy macros Uwe Kleine-König
@ 2024-01-15 20:12 ` Uwe Kleine-König
2024-01-20 15:29 ` Xu Yilun
2024-01-16 14:40 ` [PATCH 00/33] spi: get rid of some legacy macros Mark Brown
1 sibling, 1 reply; 5+ messages in thread
From: Uwe Kleine-König @ 2024-01-15 20:12 UTC (permalink / raw)
To: Mark Brown, Geert Uytterhoeven
Cc: linux-spi, kernel, Moritz Fischer, Wu Hao, Xu Yilun, Tom Rix,
linux-fpga
In commit 8caab75fd2c2 ("spi: Generalize SPI "master" to "controller"")
some functions and struct members were renamed. To not break all drivers
compatibility macros were provided.
To be able to remove these compatibility macros push the renaming into
this driver.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
drivers/fpga/ice40-spi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/fpga/ice40-spi.c b/drivers/fpga/ice40-spi.c
index 7cbb3558b844..c0028ae4c5b7 100644
--- a/drivers/fpga/ice40-spi.c
+++ b/drivers/fpga/ice40-spi.c
@@ -66,7 +66,7 @@ static int ice40_fpga_ops_write_init(struct fpga_manager *mgr,
}
/* Lock the bus, assert CRESET_B and SS_B and delay >200ns */
- spi_bus_lock(dev->master);
+ spi_bus_lock(dev->controller);
gpiod_set_value(priv->reset, 1);
@@ -94,7 +94,7 @@ static int ice40_fpga_ops_write_init(struct fpga_manager *mgr,
ret = spi_sync_locked(dev, &message);
fail:
- spi_bus_unlock(dev->master);
+ spi_bus_unlock(dev->controller);
return ret;
}
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 00/33] spi: get rid of some legacy macros
2024-01-15 20:12 [PATCH 00/33] spi: get rid of some legacy macros Uwe Kleine-König
2024-01-15 20:12 ` [PATCH 01/33] fpga: ice40-spi: Follow renaming of SPI "master" to "controller" Uwe Kleine-König
@ 2024-01-16 14:40 ` Mark Brown
2024-01-16 15:18 ` Uwe Kleine-König
1 sibling, 1 reply; 5+ messages in thread
From: Mark Brown @ 2024-01-16 14:40 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Geert Uytterhoeven, linux-spi, kernel, Moritz Fischer, Wu Hao,
Xu Yilun, Tom Rix, linux-fpga, Alexander Aring, Stefan Schmidt,
Miquel Raynal, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, linux-wpan, netdev, Lars-Peter Clausen,
Michael Hennerich, Jonathan Cameron, linux-iio, Dmitry Torokhov,
linux-input, Ulf Hansson, Greg Kroah-Hartman, Rayyan Ansari,
Andy Shevchenko, Jonathan Cameron, Martin Tuma,
Mauro Carvalho Chehab, linux-media, Sergey Kozlov, Arnd Bergmann,
Yang Yingliang, linux-mmc, Richard Weinberger,
Vignesh Raghavendra, Heiko Stuebner, Linus Walleij,
Amit Kumar Mahapatra via Alsa-devel, Rob Herring, linux-mtd,
Martin Blumenstingl, Jernej Skrabec, Nicolas Ferre,
Pali Rohár, Ronald Wahl, Benson Leung, Tzung-Bi Shih,
Guenter Roeck, chrome-platform, Michal Simek, Max Filippov,
linux-arm-kernel, Bjorn Andersson, Konrad Dybcio, linux-arm-msm,
Matthias Brugger, AngeloGioacchino Del Regno, linux-mediatek,
Thomas Zimmermann, Javier Martinez Canillas, Sam Ravnborg,
Amit Kumar Mahapatra, dri-devel, linux-fbdev, linux-staging,
Rui Miguel Silva, Viresh Kumar, Johan Hovold, Alex Elder,
greybus-dev, Peter Huewe, Jarkko Sakkinen, Jason Gunthorpe,
linux-integrity, Herve Codina, Aaro Koskinen, Krzysztof Kozlowski,
linux-usb, Helge Deller, Dario Binacchi, Kalle Valo,
Dmitry Antipov, libertas-dev, linux-wireless, Jonathan Corbet,
James Clark, Bjorn Helgaas, linux-doc
[-- Attachment #1: Type: text/plain, Size: 889 bytes --]
On Mon, Jan 15, 2024 at 09:12:46PM +0100, Uwe Kleine-König wrote:
> In commit 8caab75fd2c2 ("spi: Generalize SPI "master" to "controller"")
> some functions were renamed. Further some compat defines were introduced
> to map the old names to the new ones.
> Patch #18 and #19 touch the same driver, otherwise the patches #1 - #31
> are pairwise independent and could be applied by their respective
> maintainers. The alternative is to let all patches go via the spi tree.
> Mark, what's your preference here?
I don't have a strong preference here, I'm happy to take all the patches
if the maintainers for the other subsystem are OK with that - ideally
I'd apply things at -rc1 but the timeline is a bit tight there. I think
my plan here unless anyone objects (or I notice something myself) will
be to queue things at -rc3, please shout if that doesn't seem
reasonable.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 00/33] spi: get rid of some legacy macros
2024-01-16 14:40 ` [PATCH 00/33] spi: get rid of some legacy macros Mark Brown
@ 2024-01-16 15:18 ` Uwe Kleine-König
0 siblings, 0 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2024-01-16 15:18 UTC (permalink / raw)
To: Mark Brown
Cc: Heiko Stuebner, Geert Uytterhoeven, Linus Walleij, dri-devel,
Miquel Raynal, Ronald Wahl, Stefan Schmidt, libertas-dev,
Javier Martinez Canillas, Alex Elder, Greg Kroah-Hartman,
linux-usb, linux-wireless, linux-spi, kernel, linux-media,
linux-wpan, Amit Kumar Mahapatra via Alsa-devel, linux-doc,
Dmitry Antipov, Max Filippov, Eric Dumazet, James Clark,
Guenter Roeck, Dario Binacchi, chrome-platform,
Lars-Peter Clausen, Michael Hennerich, Viresh Kumar, Helge Deller,
Wu Hao, Amit Kumar Mahapatra, Martin Blumenstingl, linux-arm-msm,
greybus-dev, Bjorn Helgaas, Michal Simek, linux-arm-kernel,
Aaro Koskinen, David S. Miller, Jarkko Sakkinen, linux-integrity,
Pali Rohár, Jonathan Cameron, Ulf Hansson, Herve Codina,
linux-iio, Tom Rix, linux-fpga, linux-fbdev, linux-mtd,
Sam Ravnborg, Rob Herring, Jonathan Corbet, linux-staging,
Jernej Skrabec, linux-input, Paolo Abeni, Arnd Bergmann,
Yang Yingliang, Moritz Fischer, Mauro Carvalho Chehab,
Benson Leung, Rayyan Ansari, Dmitry Torokhov, linux-mmc,
Konrad Dybcio, Martin Tuma, Xu Yilun, Alexander Aring,
Vignesh Raghavendra, Peter Huewe, Sergey Kozlov,
Richard Weinberger, Jason Gunthorpe, Jakub Kicinski, Kalle Valo,
Johan Hovold, Rui Miguel Silva, linux-mediatek, Tzung-Bi Shih,
Jonathan Cameron, Matthias Brugger, Andy Shevchenko,
AngeloGioacchino Del Regno, netdev, Bjorn Andersson,
Nicolas Ferre, Krzysztof Kozlowski, Thomas Zimmermann
[-- Attachment #1: Type: text/plain, Size: 1527 bytes --]
Hello Mark,
On Tue, Jan 16, 2024 at 02:40:39PM +0000, Mark Brown wrote:
> On Mon, Jan 15, 2024 at 09:12:46PM +0100, Uwe Kleine-König wrote:
>
> > In commit 8caab75fd2c2 ("spi: Generalize SPI "master" to "controller"")
> > some functions were renamed. Further some compat defines were introduced
> > to map the old names to the new ones.
>
> > Patch #18 and #19 touch the same driver, otherwise the patches #1 - #31
> > are pairwise independent and could be applied by their respective
> > maintainers. The alternative is to let all patches go via the spi tree.
> > Mark, what's your preference here?
>
> I don't have a strong preference here, I'm happy to take all the patches
> if the maintainers for the other subsystem are OK with that - ideally
> I'd apply things at -rc1 but the timeline is a bit tight there. I think
> my plan here unless anyone objects (or I notice something myself) will
> be to queue things at -rc3, please shout if that doesn't seem
> reasonable.
From my side there is no rush, we lived with these defines since
4.13-rc1. Applying them during the next merge window is fine for me.
Anyhow, I intend to resend the series for the feedback I received after
-rc1. Up to you when you want to apply it. Watching out for offending
patches using lore shouldn't be a big thing and I can do that.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 01/33] fpga: ice40-spi: Follow renaming of SPI "master" to "controller"
2024-01-15 20:12 ` [PATCH 01/33] fpga: ice40-spi: Follow renaming of SPI "master" to "controller" Uwe Kleine-König
@ 2024-01-20 15:29 ` Xu Yilun
0 siblings, 0 replies; 5+ messages in thread
From: Xu Yilun @ 2024-01-20 15:29 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Mark Brown, Geert Uytterhoeven, linux-spi, kernel, Moritz Fischer,
Wu Hao, Xu Yilun, Tom Rix, linux-fpga
On Mon, Jan 15, 2024 at 09:12:47PM +0100, Uwe Kleine-König wrote:
> In commit 8caab75fd2c2 ("spi: Generalize SPI "master" to "controller"")
> some functions and struct members were renamed. To not break all drivers
> compatibility macros were provided.
>
> To be able to remove these compatibility macros push the renaming into
> this driver.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Xu Yilun <yilun.xu@intel.com>
> ---
> drivers/fpga/ice40-spi.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/fpga/ice40-spi.c b/drivers/fpga/ice40-spi.c
> index 7cbb3558b844..c0028ae4c5b7 100644
> --- a/drivers/fpga/ice40-spi.c
> +++ b/drivers/fpga/ice40-spi.c
> @@ -66,7 +66,7 @@ static int ice40_fpga_ops_write_init(struct fpga_manager *mgr,
> }
>
> /* Lock the bus, assert CRESET_B and SS_B and delay >200ns */
> - spi_bus_lock(dev->master);
> + spi_bus_lock(dev->controller);
>
> gpiod_set_value(priv->reset, 1);
>
> @@ -94,7 +94,7 @@ static int ice40_fpga_ops_write_init(struct fpga_manager *mgr,
> ret = spi_sync_locked(dev, &message);
>
> fail:
> - spi_bus_unlock(dev->master);
> + spi_bus_unlock(dev->controller);
>
> return ret;
> }
> --
> 2.43.0
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-01-20 15:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-15 20:12 [PATCH 00/33] spi: get rid of some legacy macros Uwe Kleine-König
2024-01-15 20:12 ` [PATCH 01/33] fpga: ice40-spi: Follow renaming of SPI "master" to "controller" Uwe Kleine-König
2024-01-20 15:29 ` Xu Yilun
2024-01-16 14:40 ` [PATCH 00/33] spi: get rid of some legacy macros Mark Brown
2024-01-16 15:18 ` Uwe Kleine-König
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).