.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Libata driver for the highpoint 37x and 30x UDMA66 ATA controllers. |
---|
3 | 4 | * |
---|
.. | .. |
---|
961 | 962 | |
---|
962 | 963 | if ((freq >> 12) != 0xABCDE) { |
---|
963 | 964 | int i; |
---|
964 | | - u8 sr; |
---|
| 965 | + u16 sr; |
---|
965 | 966 | u32 total = 0; |
---|
966 | 967 | |
---|
967 | 968 | pr_warn("BIOS has not set timing clocks\n"); |
---|
968 | 969 | |
---|
969 | 970 | /* This is the process the HPT371 BIOS is reported to use */ |
---|
970 | 971 | for (i = 0; i < 128; i++) { |
---|
971 | | - pci_read_config_byte(dev, 0x78, &sr); |
---|
| 972 | + pci_read_config_word(dev, 0x78, &sr); |
---|
972 | 973 | total += sr & 0x1FF; |
---|
973 | 974 | udelay(15); |
---|
974 | 975 | } |
---|