| Age | Commit message (Collapse) | Author |
|
And switch to proc_create_single_data.
Signed-off-by: Christoph Hellwig <hch@lst.de>
|
|
This patch applies the mutex so far only protecting the controller list
to (almost) all accesses of controller data structures. It also reworks
waiting on state changes in old_capi_manufacturer so that it no longer
poll and holds a module reference to the controller owner while waiting
(the latter was partly done already). Modification and checking of the
blocked state remains racy by design, the caller is responsible for
dealing with this.
Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
At least for our internal use, fix the misnomers that refer to a CAPI
controller as 'card'. No functional changes.
Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
Convert code away from ->read_proc/->write_proc interfaces. Switch to
proc_create()/proc_create_data() which make addition of proc entries
reliable wrt NULL ->proc_fops, NULL ->data and so on.
Problem with ->read_proc et al is described here commit
786d7e1612f0b0adb6046f19b906609e4fe8b1ba "Fix rmmod/read/write races in
/proc entries"
[akpm@linux-foundation.org: CONFIG_PROC_FS=n build fix]
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: Karsten Keil <keil@b1-systems.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
Change the name of the Kernel CAPI exported function capi_ctr_reseted()
to something representing its purpose better.
Impact: renaming, no functional change
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
From: Karsten Keil <kkeil@suse.de>
- new port of 2.4 I4L core to 2.6
- new port of 2.4 I4L HiSax to 2.6
- fixes for I4L CAPI subsystem to make it stable in 2.6
- fix parameter handling of AVM ISA cards (calle)
- cleanup ISDN config variables
- SMP in act2000 and pcbit driver
- remove check_region in act2000
- mark hysdn, isdnloop and divert as BROKEN_ON_SMP
|
|
Here is the first part of ISDN bugfixes for 2.6.
It should make ISDN work again with most controllers.
More fixes follow after more testing.
|
|
They're always the same, so no point in using function pointers.
|
|
We rather keep it simple, everything we need is in struct
capi_ctr.
|
|
The hardware driver needs to alloc mem anyway, and now can
fill in fields before registering with the CAPI layer.
Basically the same way struct net_device is handled.
|
|
In case a driver really wants to put some useful info into
/proc/capi/driver, it could create the proc entry directly.
|
|
Use the standard new-style pci_driver::remove to unregister
drivers at module unload time.
PCMCIA obviously has its own way of handling removing, the ISA
drivers unregister at module unload time as well.
|
|
Don't use a special CAPI solution to tell the drivers about
ISA cards but use module parameters, just as other drivers do.
Internally use struct pci_dev to save that data - hopefully
one day the device tree will provide a nicer way to achieve this.
|
|
It's up to the drivers to maintain their list of buffered messages
themselves. As most drivers can share common code, provide it
in capilib.o, inside of the module kernelcapi.o
|
|
Just EXPORT_SYMBOL() the callbacks, instead of passing them to the
drivers in a struct.
|
|
|
|
Apart from the indentation changes, add an owner field to the hardware
driver struct and use that to automatically inc/dec the module use count
on register_appl()/release_appl()
|
|
Introduce register_appl() / release_appl() which are basically equivalent
to open()/close() for net_device's.
Remove the registered() / released() callbacks and do the work immediately
instead.
|
|
|