Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpiolib: fence off legacy interfaces

Merge series from Arnd Bergmann <arnd@kernel.org>:

Commit 678bae2eaa81 ("gpiolib: make legacy interfaces optional") was
merged for linux-6.17, so now it is possible to use the legacy interfaces
conditionally and eventually have the support left out of the kernel
whenever it is not needed.

I created six patches to force-enable CONFIG_GPIOLIB_LEGACY on the
few (mostly ancient) platforms that still require this, plus a set of
patches to either add the corresponding Kconfig dependencies that make
the device drivers conditional on that symbol, or change them to no
longer require it.

The final patch ends up turning the Kconfig symbol off by default,
which of course depends on everything else getting merged first to avoid
build errors.

I would suggest that patches 1-20 can just get merged through the
respective maintainer trees independently when they are deemed ready,
and the final patch can wait another merge window.

+5 -2
+3
sound/soc/codecs/Kconfig
··· 623 623 config SND_SOC_AK4641 624 624 tristate 625 625 depends on I2C 626 + depends on GPIOLIB_LEGACY 626 627 627 628 config SND_SOC_AK4642 628 629 tristate "AKM AK4642 CODEC" ··· 2192 2191 config SND_SOC_TLV320DAC33 2193 2192 tristate 2194 2193 depends on I2C 2194 + depends on GPIOLIB_LEGACY 2195 2195 2196 2196 config SND_SOC_TLV320ADCX140 2197 2197 tristate "Texas Instruments TLV320ADCX140 CODEC family" ··· 2247 2245 config SND_SOC_UDA1380 2248 2246 tristate 2249 2247 depends on I2C 2248 + depends on GPIOLIB_LEGACY 2250 2249 2251 2250 config SND_SOC_WCD_CLASSH 2252 2251 tristate
+2 -2
sound/soc/pxa/Kconfig
··· 3 3 4 4 config SND_PXA2XX_SOC 5 5 tristate "SoC Audio for the Intel PXA2xx chip" 6 - depends on ARCH_PXA || COMPILE_TEST 6 + depends on ARCH_PXA || (COMPILE_TEST && GPIOLIB_LEGACY) 7 7 select SND_PXA2XX_LIB 8 8 help 9 9 Say Y or M if you want to add support for codecs attached to ··· 26 26 27 27 config SND_PXA_SOC_SSP 28 28 tristate "Soc Audio via PXA2xx/PXA3xx SSP ports" 29 - depends on PLAT_PXA 29 + depends on ARCH_PXA 30 30 select PXA_SSP 31 31 select SND_PXA2XX_LIB 32 32