Re: [PATCH 1/5] phylib: bus reset function

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

 



On 17:31 Thu 20 Sep     , Renaud Barbier wrote:
> Added an entry point for a bus reset function.
> 
> Signed-off-by: Renaud Barbier <renaud.barbier@xxxxxx>
> ---
>  drivers/net/phy/phy.c |    3 +++
>  include/miidev.h      |    1 +
>  2 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
> index 5406ea3..d9f5409 100644
> --- a/drivers/net/phy/phy.c
> +++ b/drivers/net/phy/phy.c
> @@ -129,6 +129,9 @@ int phy_device_connect(struct eth_device *edev, struct mii_device *bus, int addr
>  	unsigned int i;
>  	int ret = -EINVAL;
>  
> +	if (bus->reset)
> +		bus->reset(bus);
> +
I do not like this we should not touch the bus at phy connect

Best Regards,
J.

_______________________________________________
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