linux/drivers/pwm
Lokesh Vutla 5992bce16a pwm: lp3943: Dynamically allocate PWM chip base
[ Upstream commit 1f0f1e80fd ]

When there are other PWM controllers enabled along with pwm-lp3943,
pwm-lp3942 is failing to probe with -EEXIST error. This is because
other PWM controllers are probed first and assigned PWM base 0 and
pwm-lp3943 is requesting for 0 again.

In order to avoid this, assign the chip base with -1, so that it is
dynamically allocated.

Fixes: af66b3c093 ("pwm: Add LP3943 PWM driver")
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Uwe Kleine-König <u.kleine-könig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:26:05 +01:00
..
core.c pwm: Clear chip_data in pwm_put() 2019-12-05 09:21:29 +01:00
Kconfig pwm: mediatek: Add MT7628 support 2018-08-20 11:36:07 +02:00
Makefile
pwm-ab8500.c
pwm-atmel-hlcdc.c
pwm-atmel-tcb.c
pwm-atmel.c
pwm-bcm-iproc.c pwm: bcm-iproc: handle clk_get_rate() return 2020-08-21 11:05:36 +02:00
pwm-bcm-kona.c
pwm-bcm2835.c pwm: bcm2835: Dynamically allocate base 2020-04-29 16:31:14 +02:00
pwm-berlin.c pwm: Clear chip_data in pwm_put() 2019-12-05 09:21:29 +01:00
pwm-brcmstb.c
pwm-clps711x.c pwm: clps711x: Fix period calculation 2019-12-05 09:20:50 +01:00
pwm-crc.c
pwm-cros-ec.c pwm: cros-ec: Switch to SPDX identifier 2018-07-09 19:02:23 +02:00
pwm-ep93xx.c
pwm-fsl-ftm.c pwm: fsl-ftm: Enable support for the new SoC i.MX8QM 2018-07-09 19:08:26 +02:00
pwm-hibvt.c
pwm-img.c pwm: img: Fix null pointer access in probe 2020-10-30 10:38:21 +01:00
pwm-imx.c pwm: imx: Switch to SPDX identifier 2018-07-09 18:59:14 +02:00
pwm-jz4740.c
pwm-lp3943.c pwm: lp3943: Dynamically allocate PWM chip base 2020-12-30 11:26:05 +01:00
pwm-lpc18xx-sct.c
pwm-lpc32xx.c
pwm-lpss-pci.c
pwm-lpss-platform.c
pwm-lpss.c pwm: lpss: Add range limit check for the base_unit register value 2020-10-29 09:55:08 +01:00
pwm-lpss.h
pwm-mediatek.c pwm: mediatek: Add MT7628 support 2018-08-20 11:36:07 +02:00
pwm-meson.c pwm: meson: Don't disable PWM when setting duty repeatedly 2020-01-27 14:50:47 +01:00
pwm-mtk-disp.c
pwm-mxs.c pwm: mxs: Switch to SPDX identifier 2018-07-12 09:03:06 +02:00
pwm-omap-dmtimer.c pwm: omap-dmtimer: put_device() after of_find_device_by_node() 2020-03-05 16:42:22 +01:00
pwm-pca9685.c pwm: pca9685: Fix PWM/GPIO inter-operation 2020-04-21 09:03:06 +02:00
pwm-puv3.c
pwm-pxa.c
pwm-rcar.c pwm: rcar: Fix late Runtime PM enablement 2020-04-29 16:31:11 +02:00
pwm-renesas-tpu.c pwm: renesas-tpu: Fix late Runtime PM enablement 2020-04-29 16:31:14 +02:00
pwm-rockchip.c
pwm-samsung.c pwm: Clear chip_data in pwm_put() 2019-12-05 09:21:29 +01:00
pwm-spear.c
pwm-sti.c
pwm-stm32-lp.c pwm: stm32-lp: Add check in case requested period cannot be achieved 2019-10-11 18:21:17 +02:00
pwm-stm32.c pwm: Changes for v4.18-rc1 2018-06-14 16:25:43 +09:00
pwm-stmpe.c
pwm-sun4i.c
pwm-tegra.c
pwm-tiecap.c
pwm-tiehrpwm.c pwm: tiehrpwm: Update shadow register for disabling PWMs 2019-06-15 11:54:10 +02:00
pwm-tipwmss.c
pwm-twl-led.c
pwm-twl.c
pwm-vt8500.c
pwm-zx.c pwm: zx: Add missing cleanup in error path 2020-12-30 11:26:05 +01:00
sysfs.c Revert "pwm: Set class for exported channels in sysfs" 2019-08-25 10:47:46 +02:00