Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pata_cs5535: no need to program PIO0 timings during device init

Core libata code takes care of it nowadays.

Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

authored by

Bartlomiej Zolnierkiewicz and committed by
Jeff Garzik
73222c2d f4c6ae50

-12
-12
drivers/ata/pata_cs5535.c
··· 67 67 68 68 #define CS5535_CABLE_DETECT 0x48 69 69 70 - #define CS5535_BAD_PIO(timings) ( (timings&~0x80000000UL)==0x00009172 ) 71 - 72 70 /** 73 71 * cs5535_cable_detect - detect cable type 74 72 * @ap: Port to detect on ··· 186 188 }; 187 189 const struct ata_port_info *ppi[] = { &info, &ata_dummy_port_info }; 188 190 189 - u32 timings, dummy; 190 - 191 - /* Check the BIOS set the initial timing clock. If not set the 192 - timings for PIO0 */ 193 - rdmsr(ATAC_CH0D0_PIO, timings, dummy); 194 - if (CS5535_BAD_PIO(timings)) 195 - wrmsr(ATAC_CH0D0_PIO, 0xF7F4F7F4UL, 0); 196 - rdmsr(ATAC_CH0D1_PIO, timings, dummy); 197 - if (CS5535_BAD_PIO(timings)) 198 - wrmsr(ATAC_CH0D1_PIO, 0xF7F4F7F4UL, 0); 199 191 return ata_pci_bmdma_init_one(dev, ppi, &cs5535_sht, NULL, 0); 200 192 } 201 193