Re: [PATCH 4/4] USB: musb: fix HOST or PERIPHERAL only mode(v3)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > From: Ming Lei <tom.leiming@xxxxxxxxx>
> >
> > The plat->mode passed from platform_data always is
> MUSB_OTG,
> > so the init failures below will happen if we configure
> musb as
> > HOST or PERIPHERAL mode in Kconfig:
> >
> >         "incompatible
> Kconfig role setting"
> >
> > The patch fixes the issue by degrading otg mode to
> > host or peripheral mode in such case.

NAK.

Bad fix.  If the platform data is configured wrong (e.g. by
saying the board has an OTG connector when it's got a B/peripheral
connector), fix the platform data.

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux