From: Santiago Garcia Mantinan <manty@manty.net>
To: linux-kernel@vger.kernel.org
Cc: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Subject: [PATCH] Fix PCMCIA card detection in 2.4 (in time for 2.4.25?)
Date: Sat, 7 Feb 2004 02:01:29 +0100 [thread overview]
Message-ID: <20040207010129.GA4513@man.manty.net> (raw)
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);
}
next reply other threads:[~2004-02-07 1:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-07 1:01 Santiago Garcia Mantinan [this message]
2004-02-07 3:55 ` Marcelo Tosatti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040207010129.GA4513@man.manty.net \
--to=manty@manty.net \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®