From: Andrey Borzenkov <arvidjaar@mail.ru>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Samuel Ortiz <samuel@sortiz.org>,
"Linus Walleij (LD/EAB)" <linus.walleij@ericsson.com>,
linux-kernel@vger.kernel.org,
Michal Piotrowski <michal.k.k.piotrowski@gmail.com>,
ambx1@neo.rr.com, linux-pcmcia@lists.infradead.org
Subject: Re: 2.6.22-rc: regression: no irda0 interface (2.6.21 was OK), smsc does not find chip
Date: Sat, 30 Jun 2007 18:47:32 +0400 [thread overview]
Message-ID: <200706301847.33834.arvidjaar@mail.ru> (raw)
In-Reply-To: <200706300545.43181.bjorn.helgaas@hp.com>
[-- Attachment #1: Type: text/plain, Size: 4016 bytes --]
On Saturday 30 June 2007, Bjorn Helgaas wrote:
> This means that the SMCf010 device *did* respond, I think at the
> FIR address 0x100. (I can't figure out the "right" way to print
> those resource_size_t things, so I added some casts in the appended
> patch.)
>
Those can be 64 bit if CONFIG_RESOURCE_64BIT is set; so you probably should
cast to unsigned long long and use %llx. Or do it conditionally depending on
above macro.
> Well, the whole problem I'm trying to fix is that we aren't doing
> resource allocation correctly. The BIOS has configured the IR
> device to use port 0x100, and then something else came along and
> decided to also use port 0x100.
>
That I already asked - how should PCMCIA subsystem know that some device
requires fixed io port? Or for that matter - how should PnP know that some
resource it believes is free is actually used by PCMCIA?
> It looks like the something else is the wlags49_h1_cs driver for
> the PCMCIA card you have inserted. Can you temporarily remove that
> card and driver and try the patch below? If the IR device works
> without the wlags49_h1_cs driver, then we'll have to look at
> wlags49_h1_cs to see whether it's doing something wrong.
>
Yes, this works. I did not use patch below, because it works with original too
of course. In this PCMCIA later sees that port range at 0x100 is already
taken and selects another one:
[ 693.694389] SMsC IrDA Controller found
[ 693.694395] IrCC version 2.0, firport 0x100, sirport 0x2e8 dma=1, irq=5
[ 693.735620] No transceiver found. Defaulting to Fast pin select
[ 693.757188] IrDA: Registered device irda0
[ 840.397539] Yenta: CardBus bridge found at 0000:00:10.0 [12a3:ab01]
[ 840.419345] Yenta: Using CSCINT to route CSC interrupts to PCI
[ 840.441395] Yenta: Routing CardBus interrupts to PCI
[ 840.463454] Yenta TI: socket 0000:00:10.0, mfunc 0x01000002, devctl 0x60
[ 840.713821] Yenta: ISA IRQ mask 0x0000, PCI irq 11
[ 840.736937] Socket status: 30000059
[ 840.761016] Yenta: CardBus bridge found at 0000:00:11.0 [1179:0001]
[ 840.910480] Yenta: ISA IRQ mask 0x04b8, PCI irq 11
[ 840.934571] Socket status: 30000087
[ 840.959527] Yenta: CardBus bridge found at 0000:00:11.1 [1179:0001]
[ 841.110433] Yenta: ISA IRQ mask 0x04b8, PCI irq 11
[ 841.135628] Socket status: 30000087
[ 841.393023] pccard: PCMCIA card inserted into slot 0
[ 970.189560] wlags49_h1_cs v7.18 for PCMCIA, 03/31/2004 14:31:00 by Agere
Systems, http://www.agere.com
[ 970.212434] *** Modified for kernel 2.6 by Andrey Borzenkov
<arvidjaar@mail.ru> $Revision: 39 $
[ 970.235874] *** Station Mode (STA) Support: YES
[ 970.259328] *** Access Point Mode (AP) Support: YES
[ 1286.581694] cs: memory probe 0x0c0000-0x0fffff: excluding 0xc0000-0xcbfff
0xe0000-0xfffff
[ 1286.608294] cs: memory probe 0x60000000-0x60ffffff: clean.
[ 1286.642101] cs: memory probe 0xa0000000-0xa0ffffff: clean.
[ 1286.676160] pcmcia: registering new device pcmcia0.0
[ 1287.186722] eth0: PRI 31 variant 2 version 9.48
[ 1287.208487] eth0: NIC 5 variant 2 version 1.02
[ 1287.234616] eth0: Wireless, io_addr 0x180, irq 11, mac_address
00:02:2D:26:95:6C
is it interesting to look at ports:
0100-0107 : smsc-ircc2
0170-0177 : 0000:00:04.0
0170-0177 : libata
0180-01bf : pcmcia_socket0
notice that pcmcia_socket available resources do not change at all in this
case and still list port range 100 - 3af.
I do not think wlags driver has anything to do with it (directly). It just
requests resource allocation from PCMCIA core. So either we have to mark
resources of PnP devices reserved (even if devices are not active and no
driver is loaded) or we need some way to force PnP to allocate different
resources on device activation. Which means PCMCIA should somehow inform PnP
that resources it allocated are in use.
Anyway if you want to get a look - driver is available at
http://arvidjaar.newmail.ru/wlags49.tar.bz2.
-andrey
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-06-30 14:47 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-03 8:00 2.6.22-rc: regression: no irda0 interface (2.6.21 was OK), smsc does not find chip Andrey Borzenkov
2007-06-03 8:16 ` Andrey Borzenkov
2007-06-03 23:10 ` Samuel Ortiz
2007-06-04 2:33 ` Andrey Borzenkov
2007-06-04 20:44 ` Samuel Ortiz
2007-06-05 3:10 ` Andrey Borzenkov
2007-06-05 7:18 ` Linus Walleij (LD/EAB)
2007-06-05 7:57 ` Samuel Ortiz
2007-06-05 11:57 ` Linus Walleij (LD/EAB)
2007-06-05 13:04 ` Samuel Ortiz
2007-06-05 23:23 ` Bjorn Helgaas
2007-06-06 3:29 ` Andrey Borzenkov
2007-06-06 19:09 ` Bjorn Helgaas
2007-06-06 20:45 ` Andrey Borzenkov
2007-06-07 15:52 ` Bjorn Helgaas
2007-06-07 20:47 ` Samuel Ortiz
2007-06-10 6:47 ` Andrey Borzenkov
2007-06-10 21:03 ` Bjorn Helgaas
2007-06-11 14:04 ` Andrey Borzenkov
2007-06-14 21:30 ` Bjorn Helgaas
2007-06-15 13:44 ` Andrey Borzenkov
2007-06-15 15:19 ` Bjorn Helgaas
2007-06-16 16:38 ` Andrey Borzenkov
2007-06-19 23:31 ` Bjorn Helgaas
2007-06-28 3:56 ` Bjorn Helgaas
2007-06-30 2:41 ` Bjorn Helgaas
2007-06-30 7:16 ` Andrey Borzenkov
2007-06-30 11:45 ` Bjorn Helgaas
2007-06-30 14:47 ` Andrey Borzenkov [this message]
2007-06-30 21:13 ` Andrey Borzenkov
2007-07-01 3:30 ` Bjorn Helgaas
2007-07-01 7:08 ` Andrey Borzenkov
2007-07-01 13:57 ` Bjorn Helgaas
2007-08-11 18:39 ` Andrey Borzenkov
2007-08-13 16:09 ` Bjorn Helgaas
2007-08-13 17:39 ` Peter Stuge
2007-08-18 6:59 ` Andrey Borzenkov
2007-07-01 0:01 ` Michal Piotrowski
2007-07-01 0:04 ` Michal Piotrowski
2007-06-07 18:34 ` Bjorn Helgaas
2007-06-08 5:24 ` Andrey Borzenkov
2007-06-10 8:03 ` Andrey Borzenkov
2007-06-10 20:04 ` Bjorn Helgaas
2007-06-07 12:23 ` Linus Walleij (LD/EAB)
2007-06-07 15:44 ` Bjorn Helgaas
2007-06-05 12:06 ` Linus Walleij (LD/EAB)
2007-06-04 16:34 ` Bjorn Helgaas
2007-06-05 3:08 ` Andrey Borzenkov
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=200706301847.33834.arvidjaar@mail.ru \
--to=arvidjaar@mail.ru \
--cc=akpm@linux-foundation.org \
--cc=ambx1@neo.rr.com \
--cc=bjorn.helgaas@hp.com \
--cc=linus.walleij@ericsson.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pcmcia@lists.infradead.org \
--cc=michal.k.k.piotrowski@gmail.com \
--cc=samuel@sortiz.org \
/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