[PATCH] ieee1394: fix cosmetic problem in speed probe
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 2 Jul 2006 22:58:01 +0000 (00:58 +0200)
committerBen Collins <bcollins@ubuntu.com>
Mon, 3 Jul 2006 04:03:59 +0000 (00:03 -0400)
commitd7530a1e767b562c7e071f559d542c132d85fff7
treef607e05022d084fd50ea44f794f33edc49fc14ed
parent29454dde27d8e340bb1987bad9aa504af7081eba
[PATCH] ieee1394: fix cosmetic problem in speed probe

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@s5r6.in-berlin.de>
Signed-off-by: Ben Collins <bcollins@ubuntu.com>
drivers/ieee1394/nodemgr.c