Finn Thain
f8a85be02f
mac8390: Fix mmio access size probe
...
[ Upstream commit bb9e5c5bcd ]
The bug that Stan reported is as follows. After a restart, a 16-bit NIC
may be incorrectly identified as a 32-bit NIC and stop working.
mac8390 slot.E: Memory length resource not found, probing
mac8390 slot.E: Farallon EtherMac II-C (type farallon)
mac8390 slot.E: MAC 00:00:c5:30:c2:99, IRQ 61, 32 KB shared memory at 0xfeed0000, 32-bit access.
The bug never arises after a cold start and only intermittently after a
warm start. (I didn't investigate why the bug is intermittent.)
It turns out that memcpy_toio() is deprecated and memcmp_withio() also
has issues. Replacing these calls with mmio accessors fixes the problem.
Reported-and-tested-by: Stan Johnson <userm57@yahoo.com >
Fixes: 2964db0f59 ("m68k: Mac DP8390 update")
Signed-off-by: Finn Thain <fthain@telegraphics.com.au >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-04-03 06:25:11 +02:00
..
2019-03-23 14:35:24 +01:00
2018-05-01 12:58:21 -07:00
2018-12-05 19:41:26 +01:00
2019-02-12 19:46:03 +01:00
2019-02-27 10:08:05 +01:00
2019-03-23 14:35:13 +01:00
2019-03-23 14:35:29 +01:00
2019-03-23 14:35:12 +01:00
2019-03-27 14:13:53 +09:00
2018-12-01 09:42:49 +01:00
2019-02-12 19:46:09 +01:00
2019-03-23 14:35:30 +01:00
2019-03-23 14:35:23 +01:00
2019-03-23 14:35:20 +01:00
2019-03-23 14:35:22 +01:00
2019-02-12 19:46:03 +01:00
2019-03-23 14:35:10 +01:00
2018-08-24 13:09:08 +02:00
2018-04-12 12:32:13 +02:00
2019-03-13 14:03:21 -07:00
2018-06-05 11:41:57 +02:00
2018-11-13 11:15:06 -08:00
2018-09-09 19:55:56 +02:00
2018-04-26 11:02:03 +02:00
2019-03-13 14:03:22 -07:00
2019-02-12 19:45:58 +01:00
2019-03-13 14:03:13 -07:00
2019-03-27 14:13:54 +09:00
2019-02-15 08:09:13 +01:00
2019-01-31 08:13:44 +01:00
2019-02-27 10:08:05 +01:00
2019-03-23 14:35:24 +01:00
2019-03-23 14:35:25 +01:00
2018-12-21 14:13:14 +01:00
2018-08-09 12:16:39 +02:00
2019-03-23 14:35:09 +01:00
2019-03-23 14:35:23 +01:00
2019-03-23 14:35:13 +01:00
2019-03-27 14:13:51 +09:00
2019-03-23 14:35:22 +01:00
2019-04-03 06:25:08 +02:00
2019-02-27 10:08:05 +01:00
2018-11-13 11:14:52 -08:00
2018-09-19 22:43:41 +02:00
2019-03-23 14:35:15 +01:00
2019-03-23 14:35:30 +01:00
2019-03-27 14:13:53 +09:00
2018-08-03 07:50:38 +02:00
2019-02-12 19:46:04 +01:00
2018-05-25 16:17:47 +02:00
2019-02-27 10:08:03 +01:00
2019-03-23 14:35:23 +01:00
2019-03-27 14:13:51 +09:00
2019-02-15 08:09:11 +01:00
2018-01-17 09:45:27 +01:00
2019-04-03 06:25:11 +02:00
2018-12-01 09:42:54 +01:00
2018-04-26 11:02:13 +02:00
2019-03-23 14:35:18 +01:00
2019-02-20 10:20:50 +01:00
2018-08-24 13:09:14 +02:00
2019-01-23 08:09:49 +01:00
2018-05-30 07:52:28 +02:00
2019-03-23 14:35:24 +01:00
2019-03-27 14:13:55 +09:00
2018-11-13 11:14:46 -08:00
2018-10-18 09:16:24 +02:00
2019-02-27 10:08:09 +01:00
2019-03-23 14:35:14 +01:00
2019-03-13 14:03:15 -07:00
2019-03-27 14:13:55 +09:00
2019-02-12 19:45:59 +01:00
2018-09-15 09:45:27 +02:00
2019-03-23 14:35:19 +01:00
2018-06-21 04:02:48 +09:00
2018-12-08 13:03:40 +01:00
2018-11-13 11:15:12 -08:00
2019-03-27 14:13:55 +09:00
2019-03-23 14:35:20 +01:00
2018-12-21 14:13:13 +01:00
2019-03-27 14:13:55 +09:00
2019-03-13 14:03:19 -07:00
2019-03-23 14:35:19 +01:00
2019-03-23 14:35:31 +01:00
2019-03-23 14:35:20 +01:00
2018-11-13 11:15:11 -08:00
2018-06-21 04:02:54 +09:00
2019-03-05 17:58:00 +01:00
2018-04-24 09:36:29 +02:00
2019-03-23 14:35:25 +01:00
2019-02-15 08:09:14 +01:00
2019-03-27 14:13:55 +09:00
2018-10-03 17:00:46 -07:00
2018-08-03 07:50:23 +02:00
2019-03-19 13:13:25 +01:00
2019-04-03 06:25:07 +02:00
2018-10-13 09:27:30 +02:00
2018-11-13 11:15:09 -08:00
2019-02-12 19:46:03 +01:00
2019-02-27 10:08:03 +01:00
2018-05-30 07:52:30 +02:00
2018-02-25 11:07:53 +01:00