linux_dsm_epyc7002/drivers/pinctrl/freescale
Haibo Chen 13f2d25b95 Revert "pinctrl: freescale: imx: Use 'devm_of_iomap()' to avoid a resource leak in case of error in 'imx_pinctrl_probe()'"
This reverts commit ba40324261.

After commit 26d8cde526 ("pinctrl: freescale: imx: add shared
input select reg support"). i.MX7D has two iomux controllers
iomuxc and iomuxc-lpsr which share select_input register for
daisy chain settings.
If use 'devm_of_iomap()', when probe the iomuxc-lpsr, will call
devm_request_mem_region() for the region <0x30330000-0x3033ffff>
for the first time. Then, next time when probe the iomuxc, API
devm_platform_ioremap_resource() will also use the API
devm_request_mem_region() for the share region <0x30330000-0x3033ffff>
again, then cause issue, log like below:

[    0.179561] imx7d-pinctrl 302c0000.iomuxc-lpsr: initialized IMX pinctrl driver
[    0.191742] imx7d-pinctrl 30330000.pinctrl: can't request region for resource [mem 0x30330000-0x3033ffff]
[    0.191842] imx7d-pinctrl: probe of 30330000.pinctrl failed with error -16

Fixes: ba40324261 ("pinctrl: freescale: imx: Use 'devm_of_iomap()' to avoid a resource leak in case of error in 'imx_pinctrl_probe()'")
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Link: https://lore.kernel.org/r/1591673223-1680-1-git-send-email-haibo.chen@nxp.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2020-06-20 22:04:39 +02:00
..
Kconfig
Makefile
pinctrl-imx1-core.c pinctrl: imxl: Fix an error handling path in 'imx1_pinctrl_core_probe()' 2020-06-03 14:30:49 +02:00
pinctrl-imx1.c
pinctrl-imx1.h
pinctrl-imx6dl.c
pinctrl-imx6q.c
pinctrl-imx6sl.c
pinctrl-imx6sll.c
pinctrl-imx6sx.c
pinctrl-imx6ul.c
pinctrl-imx7d.c
pinctrl-imx7ulp.c
pinctrl-imx8dxl.c
pinctrl-imx8mm.c
pinctrl-imx8mn.c
pinctrl-imx8mp.c
pinctrl-imx8mq.c
pinctrl-imx8qm.c
pinctrl-imx8qxp.c
pinctrl-imx21.c
pinctrl-imx23.c
pinctrl-imx25.c
pinctrl-imx27.c
pinctrl-imx28.c
pinctrl-imx35.c
pinctrl-imx50.c
pinctrl-imx51.c
pinctrl-imx53.c
pinctrl-imx.c Revert "pinctrl: freescale: imx: Use 'devm_of_iomap()' to avoid a resource leak in case of error in 'imx_pinctrl_probe()'" 2020-06-20 22:04:39 +02:00
pinctrl-imx.h
pinctrl-mxs.c
pinctrl-mxs.h
pinctrl-scu.c
pinctrl-vf610.c