ieee1394: prevent device binding of raw1394, video1394, dv1394
A message that is not in the archive (sent off-list or not yet received): 005901c84e54$20382930$60a87b90$@com
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 004801c84ed4$6dbec030$493c4090$@com
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 009601c84f1a$386b9de0$a942d9a0$@com
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 006501c8529e$3ce721f0$b6b565d0$@com
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 002201c86f26$b4e6e3d0$1eb4ab70$@com
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 000f01c8720f$18430360$48c90a20$@com
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 003d01c8723f$7bff63a0$73fe2ae0$@com
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 000601c87260$41507d40$c3f177c0$@com
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 ieee1394: prevent device binding of raw1394, video1394, dv1394
These drivers don't need to match any unit_directory type device. They just need the id_table for module autoloading per module alias.
Not binding any of these drivers allows special-purpose drivers with similar or same IDs to bind to devices. This currently only benefits out-of-tree drivers; on the other hand it is in no way detrimental to in-tree drivers.
--- drivers/ieee1394/dv1394.c | 3 +-- drivers/ieee1394/nodemgr.c | 6 +++++- drivers/ieee1394/raw1394.c | 1 - drivers/ieee1394/video1394.c | 3 +-- 4 files changed, 7 insertions(+), 6 deletions(-)
drivers/ieee1394/raw1394.c +0 -1
@@ -2959,7 +2959,6 @@ MODULE_DEVICE_TABLE(ieee1394, raw1394_idstatic struct hpsb_protocol_driver raw1394_driver = { .name ="raw1394" , - .id_table = raw1394_id_table, };/******************************************************************************/
drivers/ieee1394/video1394.c +1 -2
@@ -1315,8 +1315,7 @@ static struct ieee1394_device_id video13MODULE_DEVICE_TABLE (ieee1394, video1394_id_table);static struct hpsb_protocol_driver video1394_driver = { - .name =VIDEO1394_DRIVER_NAME , - .id_table = video1394_id_table, + .name =VIDEO1394_DRIVER_NAME , };
drivers/ieee1394/dv1394.c +1 -2
@@ -2179,8 +2179,7 @@ static struct ieee1394_device_id dv1394_MODULE_DEVICE_TABLE (ieee1394, dv1394_id_table);static struct hpsb_protocol_driver dv1394_driver = { - .name ="dv1394" , - .id_table = dv1394_id_table, + .name ="dv1394" , };
drivers/ieee1394/nodemgr.c +5 -1
@@ -701,7 +701,11 @@ static int nodemgr_bus_match(struct devireturn 0 ; driver = container_of(drv, struct hpsb_protocol_driver, driver); -for (id = driver->id_table; id->match_flags !=0 ; id++) { + id = driver->id_table; +if (!id) +return 0 ; + +for (; id->match_flags !=0 ; id++) {if ((id->match_flags &IEEE1394_MATCH_VENDOR_ID ) && id->vendor_id != ud->vendor_id)continue ;
Signature · 3 lines
Stefan Richter -=====-==--- --=- =--=- http://arcgraph.de/sr/