public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Ritz <daniel.ritz@gmx.ch>
To: Silla Rizzoli <silla@netvalley.it>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: 2.4.25 yenta problem and small fix/workaround
Date: Sat, 21 Feb 2004 18:12:14 +0100	[thread overview]
Message-ID: <200402211812.14040.daniel.ritz@gmx.ch> (raw)
In-Reply-To: <200402211328.56826.silla@netvalley.it>

On Saturday 21 February 2004 13:28, Silla Rizzoli wrote:
> > the CB_CDETECT1 and CB_CDETECT2 bits both should be 0 for the card being
> > recognized correctly (and one of the voltage bits need to be set)
> >
> Nope, sorry, same behaviour. :(

either voltage interrogation is still not redone or one of CB_CDETECT1,CB_CDETECT2
is still set afterwards...

could you apply the attached patch (on top of my previous patch) and send the
output of dmesg?

thanx
-daniel


--- drivers/pcmcia/yenta.c~	2004-02-21 17:29:36.000000000 +0100
+++ drivers/pcmcia/yenta.c	2004-02-21 17:37:38.000000000 +0100
@@ -132,6 +132,7 @@
 {
 	unsigned int val;
 	u32 state = cb_readl(socket, CB_SOCKET_STATE);
+	printk(KERN_INFO "yenta_get_status: socket %p state %08x\n", socket, state);
 
 	val  = (state & CB_3VCARD) ? SS_3VCARD : 0;
 	val |= (state & CB_XVCARD) ? SS_XVCARD : 0;
@@ -677,8 +678,9 @@
 
 	/* Redo card voltage interrogation */
 	state = cb_readl(socket, CB_SOCKET_STATE);
+	printk(KERN_INFO "yenta_config_init socket %p state %08x\n", socket, state);
 	if (!(state & (CB_5VCARD | CB_3VCARD | CB_XVCARD | CB_YVCARD)) ||
-	    (state & (CB_CDETECT1 | CB_CDETECT2)))
+	    (state & (CB_CDETECT1 | CB_CDETECT2)) || (state & CB_NOTACARD))
 		cb_writel(socket, CB_SOCKET_FORCE, CB_CVSTEST);
 }
 



  reply	other threads:[~2004-02-21 17:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-20 22:31 2.4.25 yenta problem and small fix/workaround Daniel Ritz
2004-02-21 12:28 ` Silla Rizzoli
2004-02-21 17:12   ` Daniel Ritz [this message]
2004-02-22 16:03     ` Silla Rizzoli
2004-02-22 16:30       ` Russell King
2004-02-22 17:20         ` Silla Rizzoli
  -- strict thread matches above, loose matches on Subject: below --
2004-02-19 11:22 Silla Rizzoli
2004-02-19 13:14 ` Marcelo Tosatti
2004-02-19 12:58   ` Silla Rizzoli
2004-02-19 20:32   ` David Hinds
2004-02-20 10:36     ` Silla Rizzoli

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=200402211812.14040.daniel.ritz@gmx.ch \
    --to=daniel.ritz@gmx.ch \
    --cc=linux-kernel@vger.kernel.org \
    --cc=silla@netvalley.it \
    /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