From: Sergei Shtylyov Date: Sat, 5 May 2007 20:03:49 +0000 (+0200) Subject: cmd64x: add/fix enablebits (take 2) X-Git-Tag: v2.6.22-rc1~1027 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7accbffdb8163a59c7bdd3e4eb9a391198979522;p=pandora-kernel.git cmd64x: add/fix enablebits (take 2) The IDE core looks at the wrong bit when checking if the secondary channel is enabled on PCI0646 -- CNTRL register bit 7 is read-ahead disable, bit 3 is the correct one. Starting with PCI0646U chip, the primary channel can also be enabled/disabled -- so, add 'enablebits' initializers to each 'ide_pci_device_t' structure, handling the original PCI0646 via adding the init_setup() method and clearing the 'reg' field there if necessary... Signed-off-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed