All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]  axnet_cs: fix phy_id detection for bogus Asix chip.
@ 2009-04-05  0:49 Ken Kawasaki
  2009-04-07  0:42 ` David Miller
                   ` (7 more replies)
  0 siblings, 8 replies; 90+ messages in thread
From: Ken Kawasaki @ 2009-04-05  0:49 UTC (permalink / raw)
  To: netdev



axnet_cs:

(1) Some Asix phy return bogus value except 0 or 0xffff.
    Skip this phy_id.

(2) Some Asix chip need to set "select Internal PHY" bit
    at AX88190_init.

Signed-off-by: Ken Kawasaki <ken_kawasaki@spring.nifty.jp>

---

--- linux-2.6.29-git1/drivers/net/pcmcia/axnet_cs.c.orig	2009-03-29 11:55:26.000000000 +0900
+++ linux-2.6.29-git1/drivers/net/pcmcia/axnet_cs.c	2009-03-29 12:01:40.000000000 +0900
@@ -339,7 +339,7 @@ static int axnet_config(struct pcmcia_de
 {
     struct net_device *dev = link->priv;
     axnet_dev_t *info = PRIV(dev);
-    int i, j, last_ret, last_fn;
+    int i, j, j2, last_ret, last_fn;
 
     DEBUG(0, "axnet_config(0x%p)\n", link);
 
@@ -388,6 +388,8 @@ static int axnet_config(struct pcmcia_de
 
     for (i = 0; i < 32; i++) {
 	j = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 1);
+	j2 = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 2);
+	if (j == j2) continue;
 	if ((j != 0) && (j != 0xffff)) break;
     }
 
@@ -398,6 +400,8 @@ static int axnet_config(struct pcmcia_de
  	pcmcia_access_configuration_register(link, &reg);
 	for (i = 0; i < 32; i++) {
 	    j = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 1);
+	    j2 = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 2);
+	    if (j == j2) continue;
 	    if ((j != 0) && (j != 0xffff)) break;
 	}
     }
@@ -1767,6 +1771,9 @@ static void AX88190_init(struct net_devi
 	ei_local->tx1 = ei_local->tx2 = 0;
 	ei_local->txing = 0;
 
+	if (info->flags & IS_AX88790)	/* select Internal PHY */
+		outb(0x10, e8390_base + AXNET_GPIO);
+
 	if (startp) 
 	{
 		outb_p(0xff,  e8390_base + EN0_ISR);



^ permalink raw reply	[flat|nested] 90+ messages in thread

end of thread, other threads:[~2011-06-07 12:19 UTC | newest]

Thread overview: 90+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-05  0:49 [PATCH] axnet_cs: fix phy_id detection for bogus Asix chip Ken Kawasaki
2009-04-07  0:42 ` David Miller
2009-04-18 23:44 ` [PATCH] pcnet_cs: add cis(firmware) of the Allied Telesis LA-PCM Ken Kawasaki
2009-04-26  7:29   ` [PATCH] 3c589_cs: add cis(firmware) of 3Com multifunction pcmcia card Ken Kawasaki
2009-04-26 13:33     ` Ben Hutchings
2009-04-27 12:48       ` Ken Kawasaki
2009-09-12 22:22     ` [PATCH] pcnet_cs: add cis of Linksys " Ken Kawasaki
2009-09-21  4:10       ` [PATCH kernel 2.6.31-git9] 3c574_cs: spin_lock the set_multicast_list function Ken Kawasaki
2009-09-13  8:22     ` [PATCH kernel 2.6.31] pcnet_cs: add cis of Linksys multifunction pcmcia card Ken Kawasaki
2009-09-15  9:42       ` David Miller
2009-10-03 22:32       ` [PATCH kernel 2.6.32-rc1] pcnet_cs: add cis of National Semicondoctor's " Ken Kawasaki
2009-10-05  7:40         ` David Miller
2009-10-11 12:12         ` [PATCH kernel 2.6.32-rc3] 3c574_cs: spin_lock the set_multicast_list function Ken Kawasaki
2009-10-13  7:33           ` David Miller
2009-10-18  1:39         ` [PATCH kernel 2.6.32-rc5] pcnet_cs: add cis of PreMax PE-200 ethernet pcmcia card Ken Kawasaki
2009-10-21 19:18           ` Dan Williams
2009-10-22 11:10             ` Ken Kawasaki
2009-10-24 20:33               ` Ben Hutchings
2009-10-30  5:51           ` David Miller
2009-12-21 11:58         ` [PATCH kernel 2.6.33-rc1] pcnet_cs: add cis of KTI PE520 pcmcia network card Ken Kawasaki
2009-12-23  2:50           ` Ben Hutchings
2009-12-23  8:05           ` Ken Kawasaki
2010-01-04  5:42             ` David Miller
2009-12-23  8:10           ` [PATCH kernel 2.6.33-rc1 updated] " Ken Kawasaki
2009-12-29  1:17             ` [PATCH kernel 2.6.33-rc2] axnet_cs: remove unnecessary spin_unlock_irqrestore Ken Kawasaki
2010-01-04  5:52               ` David Miller
2010-01-04 11:34             ` [PATCH kernel 2.6.33-rc1 v3] pcnet_cs: add cis of KTI PE520 pcmcia network card Ken Kawasaki
2010-01-07  4:38               ` David Miller
2010-01-22 21:56             ` [PATCH kernel 2.6.33-rc5] fmvj18x_cs: add new id (Panasonic lan & modem card) Ken Kawasaki
2010-02-27 23:34               ` [PATCH kernel 2.6.33] axnet_cs: add new id Ken Kawasaki
2010-02-28  9:03                 ` David Miller
2010-03-27 20:55                 ` [PATCH kernel 2.6.34-rc2] pcnet_cs: " Ken Kawasaki
2010-03-27 23:56                   ` David Miller
2010-04-03 21:14                   ` [PATCH kernel 2.6.34-rc3] smc91c92_cs: fix the problem of "Unable to find hardware address" Ken Kawasaki
2010-04-03 22:07                     ` David Miller
2010-04-10 22:50                     ` [PATCH kernel 2.6.34-rc3-git9] smc91c92_cs: define multicast_table as unsigned char Ken Kawasaki
2010-04-13 10:09                       ` David Miller
2010-04-24 20:37                       ` [PATCH kernel 2.6.34-rc5] smc91c92_cs: spin_unlock_irqrestore before calling smc_interrupt() Ken Kawasaki
2010-04-27 21:47                         ` David Miller
2010-06-12 10:17                 ` [PATCH kernel 2.6.35-rc2] pcnet_cs: add new id (TOSHIBA Modem/LAN Card) Ken Kawasaki
2010-06-17  1:11                   ` David Miller
2010-06-20  1:24                   ` [PATCH kernel 2.6.35-rc3] smc91c92_cs: fix the problem that lan & modem does not work simultaneously Ken Kawasaki
2010-06-26  4:32                     ` David Miller
2010-07-06 11:22                     ` [PATCH kernel 2.6.35-rc3-git7] axnet_cs: local_irq_save before calling ei_irq_wrapper Ken Kawasaki
2010-07-07 21:51                       ` David Miller
2010-07-10 11:18                       ` [PATCH kernel 2.6.35-rc3-git7] axnet_cs: use spin_lock_irqsave in ax_interrupt Ken Kawasaki
2010-07-11  2:46                         ` Ben Hutchings
2010-07-11  2:49                           ` David Miller
2010-07-11  3:12                             ` Ben Hutchings
2010-07-13  3:08                               ` David Miller
2010-08-28 22:45                         ` [PATCH kernel 2.6.36-rc2] pcnet_cs: add new_id Ken Kawasaki
2010-08-28 23:07                           ` David Miller
2010-10-29 22:17                           ` [PATCH kernel 2.6.36-git10] " Ken Kawasaki
2010-10-30 23:49                             ` David Miller
2010-11-06 15:11                             ` [PATCH kernel 2.6.37-rc1] axnet_cs: fix resume problem for some Ax88790 chip Ken Kawasaki
2010-11-12 22:01                               ` David Miller
2010-11-13 23:42                               ` [PATCH kernel 2.6.37-rc1]ipg.c: remove id [SUNDANCE, 0x1021] Ken Kawasaki
2010-11-18 18:45                                 ` David Miller
2010-12-13 12:27                                 ` [PATCH kernel 2.6.37-rc5] axnet_cs: move id (0x1bf, 0x2328) to axnet_cs Ken Kawasaki
2010-12-16 20:39                                   ` David Miller
2011-01-11 11:55                             ` [PATCH kernel 2.6.37] pcnet_cs: add new_id Ken Kawasaki
2011-01-11 22:04                               ` David Miller
2011-01-30 21:16                               ` [PATCH kernel 2.6.38rc2-git7] axnet_cs: reduce delay time at ei_rx_overrun Ken Kawasaki
2011-02-01  4:53                                 ` David Miller
2011-02-20 15:07                                 ` [PATCH kernel 2.6.38-rc5] fmvj18x_cs: add new id Ken Kawasaki
2011-02-28 20:06                                   ` David Miller
2011-06-04 23:20                                   ` [PATCH kernel 3.0-rc1] smc91c92_cs: set smc->base to NULL before iounmap Ken Kawasaki
2011-06-05 21:38                                     ` David Miller
2011-06-07 12:01                                     ` Ken Kawasaki
2009-12-13  0:44       ` [PATCH kernel 2.6.32-git7] 3c574_cs: disable irq before calling el3_interrupt Ken Kawasaki
2009-12-14  3:48         ` David Miller
2010-03-06 22:02         ` [PATCH kernel 2.6.33-git11] lib8390: use spin_lock_irqsave for locking Ken Kawasaki
2010-05-03 10:43           ` [PATCH kernel 2.6.34-rc5] lib8390: to be SMP safe Ken Kawasaki
2010-05-06 20:47             ` Ken Kawasaki
2009-04-27 12:50   ` [PATCH] 3c589_cs: add cis(firmware) of 3Com multifunction pcmcia card Ken Kawasaki
2009-05-02  2:22     ` David Miller
2009-06-28  0:09 ` [PATCH] pcnet_cs: add new id (RIOS System PC CARD3 ETHERNET) Ken Kawasaki
2009-06-30 14:19   ` [PATCH] pcnet_cs: add new id David Miller
2009-07-05  8:34     ` Ken Kawasaki
2009-07-05  0:17 ` Ken Kawasaki
2009-07-06  2:02   ` David Miller
2009-07-05  0:19 ` [PATCH] pcnet_cs: add odd location support for write_asic function Ken Kawasaki
2009-07-08 12:09 ` Ken Kawasaki
2009-07-08 17:38   ` David Miller
2009-07-11  0:02 ` Ken Kawasaki
2009-07-11  3:26   ` David Miller
2009-07-11 22:15     ` Ken Kawasaki
2009-07-19 23:08 ` [PATCH] 3c589_cs: re-initialize the multicast in the tc589_reset Ken Kawasaki
2009-07-20 15:29   ` David Miller
2009-07-22 12:23     ` Ken Kawasaki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.