commit | a6baf3af89a266a3d745117de570788b956396e7 | [log] [tgz] |
---|---|---|
author | Francois Romieu <romieu@fr.zoreil.com> | Thu Nov 08 23:23:21 2007 +0100 |
committer | Jeff Garzik <jeff@garzik.org> | Sat Nov 10 04:25:16 2007 -0500 |
tree | 212182ba7e535d0e566b3579b536ffa7b6cb7b74 | |
parent | 50d84c2dc00e48ff9ba018ed0dd23276cf79e566 [diff] |
r8169: prevent bit sign expansion error in mdio_write Oops. The current code does not like being given an u16 with the highest bit set as an argument to mdio_write. Let's enforce a correct range of values for both the register address and value (resp. 5 and 16 bits). The callers are currently left as-is. Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Cc: Edward Hsu <edward_hsu@realtek.com.tw>