On Tue, Nov 15, 2022 at 3:54 PM leandro friedrich
<
leandro.fr...@gmail.com> wrote:
>
> first, sorry for responding this late, worked on another project of mine
> so: i tried that, still no change
Another hypothesis. Looks like the clk code that was added in 2018
might not allow for a graceful probe if no clock is provided (which is
the case for our WMT devices). What if you comment out the following
code block in drivers/usb/host/uhci-platform.c (around line 124):
/* Get and enable clock if any specified */
uhci->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(uhci->clk)) {
ret = PTR_ERR(uhci->clk);
goto err_rmr;
}
ret = clk_prepare_enable(uhci->clk);
if (ret) {
dev_err(&pdev->dev, "Error couldn't enable clock (%d)\n", ret);
goto err_rmr;
}