]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] via82cxxx: fix cable detection
authorBartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Sat, 6 Jan 2007 00:36:21 +0000 (16:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 6 Jan 2007 07:55:21 +0000 (23:55 -0800)
commit325fb725379378fbe2b60c2521ac232c20ee19d0
treef1e58d5e9f12334349020b07e7c7a01fd77d9b41
parent0af060be52474c9182182bc05e6da6501fbb3ee8
[PATCH] via82cxxx: fix cable detection

This patch fixes 2.6.15 regression, is straightforward and tested.

Cable detection got broken probably while converting the driver to support
multiple controllers.  Cable detection is done by examining how BIOS
configured the attached devices.  The current code is broken in that it
examines the status *after* modifying Clk66 configuration ending up
detecting 40c cables as 80c.  This patch fixes it.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/ide/pci/via82cxxx.c