[PATCH v10 8/8] usb: chipidea: imx: fix the error that using uninitialized pointer

Peter Chen
2013-02-28T03:34:13Z

On Wed, Feb 27, 2013 at 10:07:15PM +0200, Alexander Shishkin wrote:
> On Feb 27, 2013 8:34 AM, "Peter Chen" <peter.chen@freescale.com> wrote:
> >
> > If the core's probe fails, the platform layer may not get core's
>
> I think the question we should be asking ourselves here is, why does it
> fail?

I find this problem just make core probe fails as set dr_mode = "peripheral"
with host-only controller, we should consider such user mistake.

I can move vbus handling to core code as it is core thing to avoid this bug.
But what's your suggestion of platform layer handling when core's probe
fails?

http://marc.info/?l=linux-usb&m=136202110302555&w=2

--

Best Regards,
Peter Chen