usb: chipidea: imx: Do not access CLKONOFF on i.MX51
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Mon, 15 May 2017 13:48:58 +0000 (06:48 -0700)
committerPeter Chen <peter.chen@nxp.com>
Thu, 18 May 2017 01:06:25 +0000 (09:06 +0800)
commit62b97d502bb76c6e8d589e42e02bfcb7bdff0453
treee56d0431fabed59913a518d1697d975d8ed800f1
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
usb: chipidea: imx: Do not access CLKONOFF on i.MX51

Unlike i.MX53, i.MX51's USBOH3 register file does not implemenent
registers past offset 0x018, which includes
MX53_USB_CLKONOFF_CTRL_OFFSET and trying to access that register on
said platform results in external abort.

Fix it by enabling CLKONOFF accessing codepath only for i.MX53.

Cc: stable <stable@vger.kernel.org>
Fixes 3be3251db088 ("usb: chipidea: imx: Disable internal 60Mhz
clock with ULPI PHY")
Cc: cphealy@gmail.com
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/usbmisc_imx.c