mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* PCMCIA serial_cs driver binding problems.
@ 2007-11-20 14:08 greg
  2007-11-23  8:40 ` Kay Sievers
  0 siblings, 1 reply; 3+ messages in thread
From: greg @ 2007-11-20 14:08 UTC (permalink / raw)
  To: linux-kernel

Good morning to everyone.

I'm working to sort out what appear to be issues with binding of the
serial_cs driver to a PCMCIA wireless card (Zoom).

Card works perfectly in recent 2.6.2[23] kernels if cardmgr is running
and PCMCIA_IOCTL support is in the kernel.  The serial_cs driver
fails, however, to bind in a pure hotplug configuration.  The hotplug
scripts detect card insertion and load the serial_cs module but the
driver doesn't bind to the device.

The slot number (0.0 or 1.0) appears in the /sys/bus/pcmcia/devices
directory after card insertion.  The serial_cs directory also presents
in the /sys/bus/pcmcia/drivers directory secondary to module load.

I've tried to manually echo the device number (0.0 or 1.0) into the
/sys/bus/pcmcia/drivers/serial_cs/bind pseudo-file but nothing
happens.  The device number is present as a binding if cardmgr frobs
things with the pcmcia_ioctl bind commands.

I'm willing to hack on the kernel a bit if additional information or
debugging is needed.

Thanks for any thoughts or guidance.

Best wishes for a productive week.

As always,
Dr. G.W. Wettstein, Ph.D.   Enjellic Systems Development, LLC.
4206 N. 19th Ave.           Specializing in information infra-structure
Fargo, ND  58102            development.
PH: 701-281-1686
FAX: 701-281-3949           EMAIL: greg@enjellic.com
------------------------------------------------------------------------------
"When I am working on a problem I never think about beauty.  I only
 think about how to solve the problem.  But when I have finished, if
 the solution is not beautiful, I know it is wrong."
                                -- Buckminster Fuller

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: PCMCIA serial_cs driver binding problems.
@ 2007-11-26 16:26 greg
  0 siblings, 0 replies; 3+ messages in thread
From: greg @ 2007-11-26 16:26 UTC (permalink / raw)
  To: Kay Sievers, greg; +Cc: linux-kernel

On Nov 23,  9:40am, "Kay Sievers" wrote:
} Subject: Re: PCMCIA serial_cs driver binding problems.

Hi Kay, thanks for the note.

> > I've tried to manually echo the device number (0.0 or 1.0) into the
> > /sys/bus/pcmcia/drivers/serial_cs/bind pseudo-file but nothing
> > happens.  The device number is present as a binding if cardmgr frobs
> > things with the pcmcia_ioctl bind commands.

> Did you enable this?
>
> echo -n 1 > /sys/devices/pci0000:00/0000:00:1e.0/0000:15:00.0/0.0/allow_func_id_match
>
> You can watch "udevmonitor --kernel" while doing this, to get the path and
> see what events the kernel creates.
>
> Distros usually set it automatically by udev: ACTION=="add",
> SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", ATTR{allow_func_id_match}="1"

That fixed the problem instantly, thanks for the tip.

I must have spent a couple of hours Google'ing for hints on this.  Is
there any documentation floating around or a site which documents
functionality for these writable pseudo-files in /sys?

Deducing available or needed functionality would seem to be somewhat
of a black art... :-)

> Kay

Thanks again for the pointer, best wishes for a productive week.

}-- End of excerpt from "Kay Sievers"

As always,
Dr. G.W. Wettstein, Ph.D.   Enjellic Systems Development, LLC.
4206 N. 19th Ave.           Specializing in information infra-structure
Fargo, ND  58102            development.
PH: 701-281-1686
FAX: 701-281-3949           EMAIL: greg@enjellic.com
------------------------------------------------------------------------------
"It would appear that we have reached the limits of what it is
 possible to achieve with computer technology, although one should be
 careful with such statements, as they tend to sound pretty silly in 5
 years."
                                -- John Von Neumann (ca. 1949)

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

end of thread, other threads:[~2007-11-26 16:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-20 14:08 PCMCIA serial_cs driver binding problems greg
2007-11-23  8:40 ` Kay Sievers
2007-11-26 16:26 greg

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®