Thread (57 messages) 57 messages, 5 authors, 2022-09-11

Re: [RFC v8 net-next 04/16] net: mdio: mscc-miim: add ability to be used in a non-mmio configuration

From: Andy Shevchenko <hidden>
Date: 2022-05-08 21:14:53
Also in: linux-arm-kernel, linux-gpio

On Sun, May 8, 2022 at 8:53 PM Colin Foster
[off-list ref] wrote:
There are a few Ocelot chips that contain the logic for this bus, but are
controlled externally. Specifically the VSC7511, 7512, 7513, and 7514. In
the externally controlled configurations these registers are not
memory-mapped.

Add support for these non-memory-mapped configurations.
...
+               res = platform_get_resource(pdev, IORESOURCE_REG, 0);
+               if (!res) {
+                       dev_err(dev, "Unable to get MIIM resource\n");
+                       return -ENODEV;
return dev_err_probe(...); ?
+               }
...
+       if (IS_ERR(phy_regmap)) {
+               dev_err(dev, "Unable to create phy register regmap\n");
+               return PTR_ERR(phy_regmap);
Ditto.
        }
-- 
With Best Regards,
Andy Shevchenko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help