Home
last modified time | relevance | path

Searched hist:"305 f8db7" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/ata/
H A Dpata_hpt37x.c305f8db7 Sun May 15 15:41:23 CDT 2022 Sergey Shtylyov <s.shtylyov@omp.ru> ata: pata_hpt37x: move claculating PCI clock from hpt37x_clock_slot()

hpt37x_init_one() incorrectly calls an averaged f_CNT register value 'freq'
and hpt37x_clock_slot() takes that value as the 'freq' parameter -- rename
the former variable to 'fcnt' and move the actual code calculating the PCI
clock from hpt37x_clock_slot() to hpt37x_init_one(), along with adding the
frequency clamping code, in preparation for the factoring out the PCI clock
detection, so that this driver would become more like the 'pata_hpt3x2n'
driver...

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>