]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "usb: musb: convert to devm_platform_ioremap_resource_byname"
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 12 Nov 2020 13:59:00 +0000 (14:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Nov 2020 13:30:23 +0000 (14:30 +0100)
commit192f0626781a731a61ba030a52030e8ff7e1162e
treec7a7021b54d9c1a868328051fe6a21a92d9a53ab
parente07b154d0d40a6f1ea31d338a34d060a91e6ad23
Revert "usb: musb: convert to devm_platform_ioremap_resource_byname"

This reverts commit c03773cbca3b86fda3b3b77e34a40d3d9c292dd0.

On Beaglebone Black, where each interface has 2 children:

    musb-dsps 47401c00.usb: can't request region for resource [mem 0x47401800-0x474019ff]
    musb-hdrc musb-hdrc.1: musb_init_controller failed with status -16
    musb-hdrc: probe of musb-hdrc.1 failed with error -16
    musb-dsps 47401400.usb: can't request region for resource [mem 0x47401000-0x474011ff]
    musb-hdrc musb-hdrc.0: musb_init_controller failed with status -16
    musb-hdrc: probe of musb-hdrc.0 failed with error -16

Before, devm_ioremap_resource() was called on "dev" ("musb-hdrc.0" or
"musb-hdrc.1"), after it is called on "&pdev->dev" ("47401400.usb" or
"47401c00.usb"), leading to a duplicate region request, which fails.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Fixes: c03773cbca3b ("usb: musb: convert to devm_platform_ioremap_resource_byname")
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20201112135900.3822599-1-geert+renesas@glider.be
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_dsps.c