[PATCH] Karsten Keil: Eicon Diva PCI 2.02 bugfix

Linux Kernel Mailing List <[email protected]>
Newsgroups gmane.linux.kernel.commits.2-4
Message-ID <[email protected]>
ChangeSet 1.1571.1.1, 2005/01/24 16:51:44-02:00, [email protected]

	[PATCH] Karsten Keil: Eicon Diva PCI 2.02 bugfix
	
	This bugfix solve a race between card initialization and S0
	bus events, if the S0 bus is already active on driver load
	time.
	
	Signed-off-by: Karsten Keil <[email protected]>



 ipacx.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletion(-)


diff -Nru a/drivers/isdn/hisax/ipacx.c b/drivers/isdn/hisax/ipacx.c
--- a/drivers/isdn/hisax/ipacx.c	2005-01-30 15:36:17 -08:00
+++ b/drivers/isdn/hisax/ipacx.c	2005-01-30 15:36:17 -08:00
@@ -152,7 +152,13 @@
 
 		case (HW_RESET | REQUEST):
 		case (HW_ENABLE | REQUEST):
-			ph_command(cs, IPACX_CMD_TIM);
+			if ((cs->dc.isac.ph_state == IPACX_IND_RES) ||
+			(cs->dc.isac.ph_state == IPACX_IND_DR) ||
+				(cs->dc.isac.ph_state == IPACX_IND_DC))
+				ph_command(cs, IPACX_CMD_TIM);
+			else
+				ph_command(cs, IPACX_CMD_RES);
+
 			break;
 
 		case (HW_INFO3 | REQUEST):
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.