mirror of
https://github.com/brain-hackers/linux-brain.git
synced 2024-06-09 23:36:23 +09:00
MLK-16715-7 usb: chipidea: imx: add "ci-disable-lpm" quirk
Some chipidea hardware needs to disable low power mode for controller due to IC issue or hardware issue, add one quirk for it. Acked-by: Jun Li <jun.li@nxp.com> Signed-off-by: Peter Chen <peter.chen@nxp.com>
This commit is contained in:
parent
1fbbc6bd15
commit
9a2bb23f01
|
@ -86,6 +86,7 @@ Optional properties:
|
|||
case, the "idle" state needs to pull down the data and strobe pin
|
||||
and the "active" state needs to pull up the strobe pin.
|
||||
- pinctrl-n: alternate pin modes
|
||||
- ci-disable-lpm: Some chipidea hardware need to disable low power mode
|
||||
|
||||
i.mx specific properties
|
||||
- fsl,usbmisc: phandler of non-core register device, with one
|
||||
|
|
|
@ -418,6 +418,11 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
|
|||
if (pdata.flags & CI_HDRC_SUPPORTS_RUNTIME_PM)
|
||||
data->supports_runtime_pm = true;
|
||||
|
||||
if (of_find_property(np, "ci-disable-lpm", NULL)) {
|
||||
data->supports_runtime_pm = false;
|
||||
pdata.flags &= ~CI_HDRC_SUPPORTS_RUNTIME_PM;
|
||||
}
|
||||
|
||||
ret = imx_usbmisc_init(data->usbmisc_data);
|
||||
if (ret) {
|
||||
dev_err(dev, "usbmisc init failed, ret=%d\n", ret);
|
||||
|
|
Loading…
Reference in New Issue
Block a user