From: Tejun Heo Date: Tue, 19 Jun 2007 09:52:56 +0000 (+0900) Subject: ahci: fix PORTS_IMPL override X-Git-Tag: v2.6.22-rc6~45^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3d2cc5e742f82a87fdf9e2b730f41ff381c0a73;p=pandora-kernel.git ahci: fix PORTS_IMPL override If PORTS_IMPL register is zero, ahci initialize it to full mask corresponding to nr_ports in the CAP register. hpriv->cap, which is initialized at the end of the function, is incorrectly used as value of CAP causing ahci to always override PORTS_IMPL to 0x1 if it's zero. Fix it. This fixes a bug where early ich6 ahci can only access the first port. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed