diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-03-26 19:36:50 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-04-29 18:00:30 -0400 |
commit | 70093cfde8af52b0b9030d90f9004cbde38f2ff8 (patch) | |
tree | f9230ca354e78b129898298095a6ee887c40a16d /drivers/ieee1394/config_roms.h | |
parent | e00f04a70fa387b3accc81b5c346200f836e2a52 (diff) |
ieee1394: eth1394: don't autoload by hotplug when ohci1394 starts
Until now, ieee1394 put an IP-over-1394 capability entry into each new
host's config ROM. As soon as the controller was initialized --- i.e.
right after modprobe ohci1394 --- this entry triggered a hotplug event
which typically caused auto-loading of eth1394.
This irritated or annoyed many users and distributors. Of course they
could blacklist eth1394, but then ieee1394 wrongly advertized IP-over-
1394 capability to the FireWire bus.
Therefore
- remove the offending kernel config option
IEEE1394_CONFIG_ROM_IP1394,
- let eth1394 add the ROM entry by itself, i.e. only after eth1394 was
loaded.
This fixes http://bugzilla.kernel.org/show_bug.cgi?id=7793 .
To emulate the behaviour of older kernels, simply add the following to
to /etc/modprobe.conf:
install ohci1394 /sbin/modprobe eth1394; \
/sbin/modprobe --ignore-install ohci1394
Note, autoloading of eth1394 when an _external_ IP-over-1394 capable
device is discovered is _not_ affected by this patch.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/ieee1394/config_roms.h')
-rw-r--r-- | drivers/ieee1394/config_roms.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/ieee1394/config_roms.h b/drivers/ieee1394/config_roms.h index 02a21871bdaf..1f5cd1f16c44 100644 --- a/drivers/ieee1394/config_roms.h +++ b/drivers/ieee1394/config_roms.h | |||
@@ -6,11 +6,14 @@ struct hpsb_host; | |||
6 | int hpsb_default_host_entry(struct hpsb_host *host); | 6 | int hpsb_default_host_entry(struct hpsb_host *host); |
7 | int hpsb_init_config_roms(void); | 7 | int hpsb_init_config_roms(void); |
8 | void hpsb_cleanup_config_roms(void); | 8 | void hpsb_cleanup_config_roms(void); |
9 | int hpsb_add_extra_config_roms(struct hpsb_host *host); | ||
10 | void hpsb_remove_extra_config_roms(struct hpsb_host *host); | ||
11 | 9 | ||
12 | /* List of flags to check if a host contains a certain extra config rom | 10 | /* List of flags to check if a host contains a certain extra config rom |
13 | * entry. Available in the host->config_roms member. */ | 11 | * entry. Available in the host->config_roms member. */ |
14 | #define HPSB_CONFIG_ROM_ENTRY_IP1394 0x00000001 | 12 | #define HPSB_CONFIG_ROM_ENTRY_IP1394 0x00000001 |
15 | 13 | ||
14 | #ifdef CONFIG_IEEE1394_ETH1394_ROM_ENTRY | ||
15 | int hpsb_config_rom_ip1394_add(struct hpsb_host *host); | ||
16 | void hpsb_config_rom_ip1394_remove(struct hpsb_host *host); | ||
17 | #endif | ||
18 | |||
16 | #endif /* _IEEE1394_CONFIG_ROMS_H */ | 19 | #endif /* _IEEE1394_CONFIG_ROMS_H */ |