From: Tejun Heo Date: Mon, 19 Nov 2007 09:06:11 +0000 (+0900) Subject: pata_jmicron: fix disabled port handling in jmicron_pre_reset() X-Git-Tag: v2.6.24-rc4~102^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0706efd61edfcf958c2c19669aa65c2180ec3ba0;p=pandora-kernel.git pata_jmicron: fix disabled port handling in jmicron_pre_reset() There are two bugs in disabled port handling. * test in PORT_PATA0 is reversed * ->prereset should return -ENOENT for disabled ports not 0 The first bug makes the PATA channel considered disabled but the second bug saves the day by returning 0. The net result is that cable is always left at ATA_CBL_UNKNOWN. This results in false 80c configuration and thus transfer errors. This patch fixes both bugs. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed