]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: bytcr_wm5102: Fix GPIO related probe-ordering problem
authorHans de Goede <hdegoede@redhat.com>
Sun, 12 Jun 2022 15:56:52 +0000 (17:56 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 13 Jun 2022 17:37:56 +0000 (18:37 +0100)
commit5a79f344e60b93d19d8b1e0b1ef376e99c944dd4
treec36b432e9a2f79f965118125109a01cab78d8d97
parentc40e7b3ec2819c6eb08c96e0ee7d19e875df1763
ASoC: Intel: bytcr_wm5102: Fix GPIO related probe-ordering problem

The "wlf,spkvdd-ena" GPIO needed by the bytcr_wm5102 driver
is made available through a gpio-lookup table.

This gpio-lookup table is registered by drivers/mfd/arizona-spi.c, which
may get probed after the bytcr_wm5102 driver.

If the gpio-lookup table has not registered yet then the gpiod_get()
will return -ENOENT. Treat -ENOENT as -EPROBE_DEFER to still keep
things working in this case.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220612155652.107310-1-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_wm5102.c