]> err.no Git - linux-2.6/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)
commitcd36beec0b83d28dceb85696a23542bf1b97cc8c
treef1e58d5e9f12334349020b07e7c7a01fd77d9b41
parent6ae4adf50380d0fc5176a76d98d324f8fa491a8f
[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