Re: Question about device links between supplier and consumer

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

 



+Saravana

On Thu, Dec 7, 2023 at 10:51 AM richard clark
<richard.xnu.clark@xxxxxxxxx> wrote:
>
> Hi,
>
> I have to comment out below code to make the mmc driver be probed
> before the kernel try to run the init mounting the rootfs in the dev
> node generate by the driver:
>
> really_probe(...)
> {
>    ...
> #if 0
>     link_ret = device_links_check_suppliers(dev);
>     if (link_ret == -EPROBE_DEFER)
>         return link_ret;
>     ...
>     if (!list_empty(&dev->devres_head)) {
>         dev_crit(dev, "Resources present before probing\n");
>         ret = -EBUSY;
>         goto done;
>     }
> #endif
>     ...
> }
>
> Otherwise, the mmc driver will be defer probed after the init
> executed, as you can imagine, the init will complain it can not find
> the dev node specified by the 'root=/dev/xxx' in the kernel. command
> line.
>
> This is really bad! I don't know how to check the device dependency or
> what I should do in my driver to make it follow the device dependent
> link rule? or sth i am missing...
>
> Thanks!




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux