lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5511BB38.8010501@gmx.de>
Date:	Tue, 24 Mar 2015 20:30:00 +0100
From:	Lino Sanfilippo <LinoSanfilippo@....de>
To:	cliff_clark@...inc.com, Li Yang <leoli@...escale.com>
CC:	netdev@...r.kernel.org
Subject: Re: [PATCH] ucc_geth: Intialize link state to down before register_netdev

On 24.03.2015 19:51, cliff_clark@...inc.com wrote:
> ucc_geth was indicating link up after a port is administratively enabled 
> even
> when nothing is plugged in.  This causes user-space tools to see a 
> spurious link
> up the first time after boot.
> 
> Signed-off-by: Cliff Clark <cliff_clark@...inc.com>
> ---
>  drivers/net/ethernet/freescale/ucc_geth.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/net/ethernet/freescale/ucc_geth.c 
> b/drivers/net/ethernet/freescale/ucc_geth.c
> index 357e8b57..56b774d 100644
> --- a/drivers/net/ethernet/freescale/ucc_geth.c
> +++ b/drivers/net/ethernet/freescale/ucc_geth.c
> @@ -3893,6 +3893,9 @@ static int ucc_geth_probe(struct platform_device* 
> ofdev)
>         ugeth->phy_interface = phy_interface;
>         ugeth->max_speed = max_speed;
>  
> +       /* Carrier starts down, phylib will bring it up */
> +       netif_carrier_off(dev);
> +
>         err = register_netdev(dev);
>         if (err) {
>                 if (netif_msg_probe(ugeth))

The commit message is still messy. checkpatch also complaints about
spaces at the beginning of a line.

Regards,
Lino
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ