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: <20101018222947.418028323@rtp-net.org>
Date:	Tue, 19 Oct 2010 00:29:47 +0200
From:	Arnaud Patard (Rtp) <arnaud.patard@...-net.org>
To:	netdev@...r.kernel.org
Cc:	"David S. Miller" <davem@...emloft.net>,
	Cyril Chemparathy <cyril@...com>
Subject: [patch 0/1] Re: [patch 1/1] phy/marvell: fix 88e1121 support

>> @@ -199,13 +199,13 @@
>>  	mscr = phy_read(phydev, MII_88E1121_PHY_MSCR_REG) &
>>  		MII_88E1121_PHY_MSCR_DELAY_MASK;
>>  
>> -	if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID)
>> -		mscr |= (MII_88E1121_PHY_MSCR_RX_DELAY |
>> -			 MII_88E1121_PHY_MSCR_TX_DELAY);
>> -	else if (phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID)
>> +	if (phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID)
>>  		mscr |= MII_88E1121_PHY_MSCR_RX_DELAY;
>>  	else if (phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID)
>>  		mscr |= MII_88E1121_PHY_MSCR_TX_DELAY;
>> +	else
>> +		mscr |= (MII_88E1121_PHY_MSCR_RX_DELAY |
>> +			 MII_88E1121_PHY_MSCR_TX_DELAY);
>>  
>>  	err = phy_write(phydev, MII_88E1121_PHY_MSCR_REG, mscr);
>>  	if (err < 0)
>
> This doesn't look right.  This change makes it impossible to configure
> the phy without interface delays, i.e., PHY_INTERFACE_MODE_RGMII ends up
> behaving the same as PHY_INTERFACE_MODE_RGMII_ID.
> 

ok. The other possibility is to modify the MII_88E1121_PHY_MSCR_REG regs
 only in RGMII_* case like for the 88e1111 case imho.
I'm sending a patch doing that right now.

Regards,
Arnaud




--
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