usb: musb: musb_cppi41: Fix the address of teardown and autoreq registers
authorAlexandre Bailon <abailon@baylibre.com>
Tue, 10 Oct 2017 03:46:09 +0000 (22:46 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Oct 2017 09:42:51 +0000 (11:42 +0200)
commitbfa53e0e366b98185fadb03f7916d1538cb90ebd
tree123ab972a97777eeb75458ec51a5d8bd81f1a326
parent0c3aae9bd59978fb8c3557d7883380bef0f2cfa1
usb: musb: musb_cppi41: Fix the address of teardown and autoreq registers

The DA8xx and DSPS platforms don't use the same address for few registers.
On Da8xx, this is causing some issues (e.g. teardown that doesn't work).
Configure the address of the register during the init and use them instead
of constants.

Cc: stable@vger.kernel.org # v4.12+
Reported-by: nsekhar@ti.com
Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Tested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_cppi41.c