Re: [PATCH v1] USB: musb: defer probe if transceiver is not ready

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

 



On Wed, Nov 21, 2012 at 10:09 PM, Felipe Balbi <balbi@xxxxxx> wrote:
>>       status = musb_platform_init(musb);
>> -     if (status < 0)
>> +     if (status < 0) {
>> +             /* try to defer probe if trasceiver is not ready */
>> +             status = (status == -ENODEV ? -EPROBE_DEFER : status);
>
> still wrong, what you should do is that when you can't get the phy, you
> set status to -EPROBE_DEFER, instead of -ENODEV.

The above code does set status to to -EPROBE_DEFER when phy can't
be got, doesn't it?


Thanks,
--
Ming Lei
--
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