Krzysztof Halasa [Fri, 25 Jul 2003 08:24:04 +0000 (01:24 -0700)]
[PATCH] HDLC update
This updates generic HDLC from 1.14 to 1.15.
- fix a kernel panic caused by a recent change to unregister_netdevice()
(struct net_device * can't be kfreed before rtnl_unlock())
- adds carrier_* support - hw drivers report DCD status and higher level
protocols use that info, and do netif_carrier_{on,off}() according to
DCD and (Cisco and FR) link management status.
- moves Frame-Relay constants etc. from include/linux/hdlc.h to hdlc_fr.c.
They are internal FR things and are not needed in the global header.
- protocol hooks are slighty changed to allow zeroing (memset).
- removes CONFIG_HDLC_DEBUG_* variables. Users tend to make very wrong
use of them. Now setting them requires changing .c #define. Anyway they
are development-only things.
- misc style corrections etc.
Patrick McHardy [Fri, 25 Jul 2003 08:15:50 +0000 (01:15 -0700)]
[NETFILTER]: Fix various problems with MIRROR target.
- check TTL before rewriting so icmp_send gets clean packet
- skb_copy_expand(skb) for tcpdump and asymmetric routing
- inline some function
- remove unneccessary struct in_device declaration
- remove RTO_CONN
Forward-port of 2.4.21-ac4 patch by Wilfried Weissmann.
ide_get_or_set_dma_base() may be called via ide_setup_pci_device()
when a PCI controller module is loaded. However, it is defined with __init
and the function is called when its memory is already deallocated.
Ben Collins [Fri, 25 Jul 2003 07:40:53 +0000 (00:40 -0700)]
[PATCH] Update IEEE1394 (r1014)
misc: - Consolidate and make consistent, the NODE_BUS_{FMT,ARGS}
macros.
- Add HPSB_VERBOSE() macro to make VERBOSEDEBUG code a
little cleaner.
ieee1394 : - Replace panic() with BUG and return value in dma routine.
- Reset reset_retries on success or loop recover.
- Add RECV_FLUSH to flush buffers on > 1 irq interval or in
buffer-fill mode.
- Probe logic-unit-subdirectories as children of the
unit-dir.
- Fix compile warning in nodemgr thread.
- Replace tightly scheduled timeout loop with a 50ms timer.
- Better return and usage of BUG_ON() in dma handler.
- Calculate timeout expiry interval at change instead of at
every timeout check.
SBP2 : - Fix logical-unit-directory LUN's.
- Remove procfs interface.
- Fix usage of initdata after init.
Host con : - Change irq output to use __irq_itoa() for sparc.
- Do more to notify bus when module is unloaded, to clear
IRM, etc.
ohci1394 : Fix endianess of async stream packet headers.
A recent change moved the tcq init too early in the init sequence, the
queue isn't initialized at this point which causes the task file
executions to kill elevator with a NULL EIP (->add_req_fn()). This
patch fixes it, acked by Bart.
Bob Miller [Mon, 21 Jul 2003 11:10:54 +0000 (07:10 -0400)]
ISDN: [TRIVIAL] Remove un-needed MOD___USE_COUNT from divamnt's init function.
The module load code adds a reference to the owner field before calling
the modules init function so it isn't necessary for the init function
to do a similar action.
Bob Miller [Mon, 21 Jul 2003 11:08:46 +0000 (07:08 -0400)]
ISDN: [TRIVIAL] Remove un-needed MOD___USE_COUNT from divamnt's init fuction.
The module load code adds a reference to the owner field before calling
the modules init function so it isn't necessary for the init function
to do a similar action.
Bob Miller [Mon, 21 Jul 2003 11:07:09 +0000 (07:07 -0400)]
ISDN: [TRIVIAL] Remove un-needed MOD___USE_COUNT from divamnt's init fuction.
The module load code adds a reference to the owner field before calling
the modules init function so it isn't necessary for the init function
to do a similar action.
Bob Miller [Mon, 21 Jul 2003 11:01:30 +0000 (07:01 -0400)]
ISDN: [TRIVIAL] Remove un-needed MOD___USE_COUNT from divasmain's init fuction.
The module load code adds a reference to the owner field before calling
the modules init function so it isn't necessary for the init function
to do a similar action.
Also fixed the racy check_region()/request_region() calls.
This patch exports the kstat per-cpu variable, needed for
hisax, which uses kstat_irqs() during card probing to make sure
that irqs actually work. This could possibly replaced by a
private counter in the hisax ISRs, but that's really just
unnecessary overhead, since the core kernel already does the work
anyway.
Instead of faking a hisax-internal card, just register a card
driven by a submodule directly, which fixes the current crashes
when loading such a driver. This makes use of the just introduced
do_register_isdn() and do_init() helpers.
The MOD_INC and MOD_DEC in lapb are no longer necessary in 2.6 since
the module subsystem will not allow lapb to be unloaded as long as a module
that is referencing the symbols (lapb_register/lapb_unregister) is loaded.