From: hugang <hugang@soulinfo.com>
To: Russell King <rmk@arm.linux.org.uk>
Cc: dahinds@users.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: Pcmcia GPRS cards not works in linux.
Date: Sun, 15 Jun 2003 20:28:03 +0800 [thread overview]
Message-ID: <20030615202803.51fcf72e.hugang@soulinfo.com> (raw)
In-Reply-To: <20030615103456.B27533@flint.arm.linux.org.uk>
On Sun, 15 Jun 2003 10:34:56 +0100
Russell King <rmk@arm.linux.org.uk> wrote:
> Could you include the information below and the output of cardctl
> status please?
>
Thank you very much.
> I think I can tell you what's happening. Your card contains two
> configuration table entries (0x30 and 0x31). The first, 0x30,
> tells us that the card supports 3.3V in this configuration. The
> second indicates that the card supports 5V with this configuration.
Your are right. With this patch it works fine.
--- cs.c.old Sun Jun 15 19:46:26 2003
+++ cs.c Sun Jun 15 19:52:51 2003
@@ -1765,8 +1765,10 @@
return CS_CONFIGURATION_LOCKED;
/* Do power control. We don't allow changes in Vcc. */
- if (s->socket.Vcc != req->Vcc)
- return CS_BAD_VCC;
+ printk("VCC: %d, %d\n", s->socket.Vcc, req->Vcc);
+ /*if (s->socket.Vcc != req->Vcc)
+ return CS_BAD_VCC;*/
+ printk("Vpp1: %d, %d\n", req->Vpp1, req->Vpp2);
if (req->Vpp1 != req->Vpp2)
return CS_BAD_VPP;
s->socket.Vpp = req->Vpp1;
---2.5.71-------without-hacker
hugang:/home/hugang/download/module-init# uname -a
Linux hugang 2.5.71 #4 日 6月 15 11:44:04 CST 2003 i686 unknown
hugang:/home/hugang/download/module-init# cardctl config
Socket 0:
Vcc 3.3V Vpp1 3.3V Vpp2 3.3V
hugang:/home/hugang/download/module-init# cardctl status
Socket 0:
3.3V 16-bit PC Card
function 0: [ready], [wp], [bat low]
--with-hacker--
VCC: 33, 50
Vpp1: 0, 0
ttyS0 at I/O 0x100 (irq = 3) is a 16550A
hugang:~# cardctl status
Socket 0:
3.3V 16-bit PC Card
function 0: [ready]
hugang:~# cardctl config
Socket 0:
Vcc 5.0V Vpp1 0.0V Vpp2 0.0V
interface type is "memory and I/O"
irq 3 [exclusive] [level]
speaker output is enabled
function 0:
config base 0x0400
option 0x70
io 0x0100-0x010f [8bit]
--
Hu Gang / Steve
Email : huagng@soulinfo.com, steve@soulinfo.com
GPG FinePrint: 4099 3F1D AE01 1817 68F7 D499 A6C2 C418 86C8 610E
http://soulinfo.com/~hugang/HuGang.asc
ICQ# : 205800361
Registered Linux User : 204016
next prev parent reply other threads:[~2003-06-15 12:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-15 2:43 hugang
2003-06-15 9:34 ` Russell King
2003-06-15 12:28 ` hugang [this message]
2003-06-16 3:40 ` David Hinds
2003-06-22 13:12 ` Russell King
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=20030615202803.51fcf72e.hugang@soulinfo.com \
--to=hugang@soulinfo.com \
--cc=dahinds@users.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
/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®