mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Fix PCMCIA card detection in 2.4 (in time for 2.4.25?)
@ 2004-02-07  1:01 Santiago Garcia Mantinan
  2004-02-07  3:55 ` Marcelo Tosatti
  0 siblings, 1 reply; 2+ messages in thread
From: Santiago Garcia Mantinan @ 2004-02-07  1:01 UTC (permalink / raw)
  To: linux-kernel; +Cc: Marcelo Tosatti

Hi!

On 11th Aug 2003 I had reported yenya problems on Acer TravelMate 260 with
2.6.0test3, the bad news is that these problems also exist on 2.4 up to
2.4.25-test1, the good one is that Russell King had posted a fix on Oct 28
2003, similar subject than this message, that patch was for 2.6 and got into
2.6.0test10, so while this issue is solved in 2.6 kernels, it still exists
in 2.4. Today I tried to aply Russell's patch to 2.4, I had to rewrite it,
but otherwise it is exactly the same patch and it seems to work, at least in
my machine.

Can people test this so that we can clean up any doubts Marcelo may have and
it gets roled into 2.4.25?

Regards...
-- 
Manty/BestiaTester -> http://manty.net

--- old/drivers/pcmcia/yenta.c	2004-02-07 01:55:45.000000000 +0100
+++ new/drivers/pcmcia/yenta.c	2004-02-07 01:58:12.000000000 +0100
@@ -636,6 +636,7 @@
  */
 static void yenta_config_init(pci_socket_t *socket)
 {
+	u32 state;
 	u16 bridge;
 	struct pci_dev *dev = socket->dev;
 
@@ -675,6 +676,9 @@
 	exca_writeb(socket, I365_GENCTL, 0x00);
 
 	/* Redo card voltage interrogation */
+	state = cb_readl(socket, CB_SOCKET_STATE);
+	if (!(state & (CB_CDETECT1 | CB_CDETECT2 | CB_5VCARD |
+	CB_3VCARD | CB_XVCARD | CB_YVCARD)))
 	cb_writel(socket, CB_SOCKET_FORCE, CB_CVSTEST);
 }
 

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

end of thread, other threads:[~2004-02-07  3:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-07  1:01 [PATCH] Fix PCMCIA card detection in 2.4 (in time for 2.4.25?) Santiago Garcia Mantinan
2004-02-07  3:55 ` Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®