Thread View: linux.kernel.netdev
2 messages
2 total messages
Started by Andrew Lunn
Fri, 16 Oct 2026 20:59
Re: [net-next,PATCH 2/2] enetc: Make eMDIO MDC rate configurable from DT
Author: Andrew Lunn
Date: Fri, 16 Oct 2026 20:59
Date: Fri, 16 Oct 2026 20:59
13 lines
6672 bytes
6672 bytes
> + div = ((clk_get_rate(enet_clk) / mdc_freq) - 1) / 4; > + if (div < 5 || div > 0x1ff) > + return dev_err_probe(dev, -EINVAL, > + "Requested MDC frequency is out of range, ignoring\n"); Returning -EINVAL is not really 'ignoring' the invalid value. Since these are optional properties which are present, if they are not valid returning an error is good. So please fix the message. Why is dev < 5 an issue? Andrew
Re: [net-next,PATCH 2/2] enetc: Make eMDIO MDC rate configurable from DT
Author: Andrew Lunn
Date: Sat, 17 Oct 2026 17:39
Date: Sat, 17 Oct 2026 17:39
8 lines
6676 bytes
6676 bytes
> The clock would be way too fast, on MX95 that would be over 33 MHz. O.K. I've run systems at ~ 12Mhz. The steps where quiet big, and it was unreliable at the next possible speed. I guess you start needing careful design, balanced lines, termination etc for really high speed. Andrew
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads