The patch titled ieee1394: fix cosmetic problem in speed probe has been added to the -mm tree. Its filename is ieee1394-fix-cosmetic-problem-in-speed-probe.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: ieee1394: fix cosmetic problem in speed probe From: Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx> If ieee1394.h::IEEE1394_SPEED_MAX is bigger than the actual speed of an 1394b host adapter and the speed to another 1394b node was probed, a bigger speed than actually used was kept in host->speed[n]. The only resulting problem so far was sbp2 displaying bogus values in the syslog, e.g. S3200 for actual S800 connections if IEEE1394_SPEED_MAX was S3200. But other high-level drivers which access this field could get into more trouble. (Eth1394 is the only other in-tree driver which does so. It seems it is not affected.) Nodemgr now clips this value according to the host adapter's link speed. A pointer expression in nodemgr_check_speed is also changed for clarity. Signed-off-by: Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx> Cc: Ben Collins <bcollins@xxxxxxxxxx> Cc: Jody McIntyre <scjody@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/ieee1394/nodemgr.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff -puN drivers/ieee1394/nodemgr.c~ieee1394-fix-cosmetic-problem-in-speed-probe drivers/ieee1394/nodemgr.c --- a/drivers/ieee1394/nodemgr.c~ieee1394-fix-cosmetic-problem-in-speed-probe +++ a/drivers/ieee1394/nodemgr.c @@ -71,7 +71,7 @@ static int nodemgr_check_speed(struct no u8 i, *speed, old_speed, good_speed; int ret; - speed = ci->host->speed + NODEID_TO_NODE(ci->nodeid); + speed = &(ci->host->speed[NODEID_TO_NODE(ci->nodeid)]); old_speed = *speed; good_speed = IEEE1394_SPEED_MAX + 1; @@ -1251,6 +1251,7 @@ static void nodemgr_node_scan_one(struct octlet_t guid; struct csr1212_csr *csr; struct nodemgr_csr_info *ci; + u8 *speed; ci = kmalloc(sizeof(*ci), GFP_KERNEL); if (!ci) @@ -1259,8 +1260,12 @@ static void nodemgr_node_scan_one(struct ci->host = host; ci->nodeid = nodeid; ci->generation = generation; - ci->speed_unverified = - host->speed[NODEID_TO_NODE(nodeid)] > IEEE1394_SPEED_100; + + /* Prepare for speed probe which occurs when reading the ROM */ + speed = &(host->speed[NODEID_TO_NODE(nodeid)]); + if (*speed > host->csr.lnk_spd) + *speed = host->csr.lnk_spd; + ci->speed_unverified = *speed > IEEE1394_SPEED_100; /* We need to detect when the ConfigROM's generation has changed, * so we only update the node's info when it needs to be. */ @@ -1300,8 +1305,6 @@ static void nodemgr_node_scan_one(struct nodemgr_create_node(guid, csr, hi, nodeid, generation); else nodemgr_update_node(ne, csr, hi, nodeid, generation); - - return; } _ Patches currently in -mm which might be from stefanr@xxxxxxxxxxxxxxxxx are origin.patch irq-flags-consolidate-flags-for-request_irq.patch irq-flags-firewire-use-the-new-irqf_-constansts.patch lockdep-annotate-ieee1394-skb-queue-head-locking.patch ieee1394-sbp2-enable-auto-spin-up-for-maxtor-disks.patch ieee1394-fix-calculation-of-csr-expire.patch ieee1394-fix-cosmetic-problem-in-speed-probe.patch ieee1394-skip-dummy-loop-in-build_speed_map.patch ieee1394-replace-__inline__-by-inline.patch ieee1394-coding-style-and-comment-fixes-in-midlayer.patch ieee1394-update-include-directives-in-midlayer-header.patch ieee1394-remove-redundant-code-from-ieee1394_hotplugh.patch ieee1394-remove-unused-macros-hpsb_panic-and.patch ieee1394-clean-up-declarations-of-hpsb__config_rom.patch ieee1394-dv1394-sem2mutex-conversion.patch ieee1394-raw1394-remove-redundant-counting-semaphore.patch ieee1394-nodemgr-remove-unnecessary-includes.patch ieee1394-nodemgr-do-not-spawn-kernel_thread-for-sysfs.patch ieee1394-nodemgr-make-module-parameter-ignore_drivers.patch ieee1394-nodemgr-switch-to-kthread-api-replace-reset.patch ieee1394-nodemgr-convert-nodemgr_serialize-semaphore.patch ieee1394-fix-kerneldoc-of-hpsb_alloc_host.patch ieee1394-shrink-tlabel-pools-remove-tpool-semaphores.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html