]> www.infradead.org Git - users/willy/pagecache.git/commit
ata: fix debounce timings type
authorSergey Shtylyov <s.shtylyov@omp.ru>
Sat, 29 Jul 2023 20:17:49 +0000 (23:17 +0300)
committerDamien Le Moal <dlemoal@kernel.org>
Mon, 31 Jul 2023 00:47:39 +0000 (09:47 +0900)
commit4a1a34da4911c9ab9a56e06e13e2999dae6568af
treedd827aa4eb3295f711f3b948379df39f327ed314
parent8f660d3fad806a23b174fef07b89a19632434963
ata: fix debounce timings type

sata_deb_timing_{hotplug|long|normal}[] store 'unsigned long' debounce
timeouts in ms, while sata_link_debounce() eventually uses those timeouts
by calling ata_{deadline|msleep}( which take just 'unsigned int'.  Change
the debounce timeout table element's type to 'unsigned int' -- all these
timeouts happily fit into 'unsigned int'...

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
12 files changed:
drivers/ata/ahci.c
drivers/ata/ahci_qoriq.c
drivers/ata/ahci_xgene.c
drivers/ata/libahci.c
drivers/ata/libata-core.c
drivers/ata/libata-sata.c
drivers/ata/libata-sff.c
drivers/ata/sata_highbank.c
drivers/ata/sata_inic162x.c
drivers/ata/sata_mv.c
drivers/ata/sata_nv.c
include/linux/libata.h