[PATCH 4/7] USB chipidea: introduce dual role mode pdata flags

Alexander Shishkin alexander.shishkin at linux.intel.com
Mon Jun 3 22:37:13 EST 2013


Michael Grzeschik <mgr at pengutronix.de> writes:

> From: Sascha Hauer <s.hauer at pengutronix.de>
>
> Even if a chipidea core is otg capable the board may not. This allows

"may not be"

> to explicitly set the core to host/peripheral mode. Without these
> flags the driver falls back to the old behaviour.
>
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> ---

[snip]

> +	if (!ci->platdata->dr_mode)
> +		ci->platdata->dr_mode = of_usb_get_dr_mode(dev->of_node);

same as previous one, let's keep it in the platform.

Regards,
--
Alex


More information about the devicetree-discuss mailing list