Peter Korsgaard e9162ab161 dm9601: fix phy/eeprom write routine
Use correct bit positions in DM_SHARED_CTRL register for writes.

Michael Planes recently encountered a 'KY-RS9600 USB-LAN converter', which
came with a driver CD containing a Linux driver. This driver turns out to
be a copy of dm9601.c with symbols renamed and my copyright stripped.
That aside, it did contain 1 functional change in dm_write_shared_word(),
and after checking the datasheet the original value was indeed wrong
(read versus write bits).

On Michaels HW, this change bumps receive speed from ~30KB/s to ~900KB/s.
On other devices the difference is less spectacular, but still significant
(~30%).

Reported-by: Michael Planes <michael.planes@free.fr>
CC: stable@kernel.org
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-05-03 15:26:30 -07:00
..
2010-05-03 15:26:30 -07:00
2009-09-01 01:13:50 -07:00
2010-02-18 14:47:48 -08:00
2009-04-04 16:51:14 -07:00
2010-04-27 14:38:16 -07:00
2010-02-16 15:19:03 -08:00
2009-08-12 23:03:00 -07:00
2010-02-17 13:35:44 -08:00
2010-02-17 13:35:44 -08:00
2010-02-17 13:35:44 -08:00
2009-11-05 20:00:29 -08:00
2010-03-03 01:04:39 -08:00
2010-02-26 02:10:14 -08:00
2010-02-26 02:10:14 -08:00
2010-02-26 02:10:14 -08:00
2010-03-07 15:25:53 -08:00
2009-11-11 19:22:21 -08:00
2010-04-24 21:09:29 -07:00
2010-03-26 20:16:23 -07:00
2009-11-20 15:35:04 -08:00
2010-03-18 21:14:00 -07:00
2009-10-13 11:48:18 -07:00
2009-10-20 19:11:06 -07:00
2010-01-28 06:01:35 -08:00
2010-03-16 14:15:42 -07:00
2010-01-18 00:29:19 -08:00
2010-04-30 16:20:39 -07:00
2009-04-29 17:32:34 -07:00
2009-10-01 15:14:54 -07:00
2010-02-12 16:21:01 -08:00
2009-03-27 00:46:48 -07:00
2010-02-26 02:08:42 -08:00
2010-04-26 11:15:49 -07:00
2010-02-17 17:27:40 -08:00
2010-04-14 04:52:03 -07:00
2009-11-26 15:51:29 -08:00
2010-04-12 22:00:34 -07:00