Re: [PATCH] net: macb: add tx clock rate for 10 MBit link

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

 



On Fri, Mar 19, 2021 at 05:26:05PM +0100, Michael Tretter wrote:
> If the phy reports a 10 MBit link, which can happen during link
> negotiation, the macb prints a warning, because it does not know the
> clock rate for the TX clock.
> 
> Implement setting the TX clock rate for 10 MBit to avoid the warnings.
> 
> Signed-off-by: Michael Tretter <m.tretter@xxxxxxxxxxxxxx>
> ---

Applied, thanks

Sascha

>  drivers/net/macb.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/net/macb.c b/drivers/net/macb.c
> index 188dbf2d8c15..14a0b45322bf 100644
> --- a/drivers/net/macb.c
> +++ b/drivers/net/macb.c
> @@ -269,6 +269,9 @@ static int macb_set_tx_clk(struct macb_device *macb, int speed)
>  	}
>  
>  	switch (speed) {
> +	case SPEED_10:
> +		rate = 2500000;
> +		break;
>  	case SPEED_100:
>  		rate = 25000000;
>  		break;
> -- 
> 2.29.2
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux