aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/build_bug.c
diff options
context:
space:
mode:
authorDamien Le Moal <dlemoal@kernel.org>2025-08-13 18:08:53 +0900
committerDamien Le Moal <dlemoal@kernel.org>2025-08-14 18:42:16 +0900
commit35f6bedccf4c4280f02d48e4f7d194e64e9a62d8 (patch)
tree6e285117afdb7867f62d52ff3efa3a4c87f5b8ce /rust/helpers/build_bug.c
parentMerge tag 'erofs-for-6.17-rc2-fixes' of git://git.kernel.org/pub/scm/linux/ke... (diff)
downloadlinux-35f6bedccf4c4280f02d48e4f7d194e64e9a62d8.tar.gz
linux-35f6bedccf4c4280f02d48e4f7d194e64e9a62d8.zip
ata: libata-eh: Fix link state check for IDE/PATA ports
Commit 4371fe1ba400 ("ata: libata-eh: Avoid unnecessary resets when revalidating devices") replaced the call to ata_phys_link_offline() in ata_eh_revalidate_and_attach() with the new function ata_eh_link_established() which relaxes the checks on a device link state to account for low power mode transitions. However, this change assumed that the device port has a valid scr_read method to obtain the SStatus register for the port. This is not always the case, especially with older IDE/PATA adapters (e.g. PATA/IDE devices emulated with QEMU). For such adapter, ata_eh_link_established() will always return false, causing ata_eh_revalidate_and_attach() to go into its error path and ultimately to the device being disabled. Avoid this by restoring the previous behavior, which is to assume that the link is online if reading the port SStatus register fails. While at it, also fix the spelling of SStatus in the comment describing the function ata_eh_link_established(). Reported-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com> Fixes: 4371fe1ba400 ("ata: libata-eh: Avoid unnecessary resets when revalidating devices") Signed-off-by: Damien Le Moal <dlemoal@kernel.org> Tested-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com> Reviewed-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions
td>sha1_file.c: introduce a null_oid constantbrian m. carlson2-0/+2 2015-12-14ident: fix undefined variable when NO_IPV6 is setJeff King1-1/+1 2015-12-14ident: loosen getpwuid error in non-strict modeJeff King1-8/+22 2015-12-12l10n: vi.po: Updated translation (2477t)Tran Ngoc Quan1-1467/+1692 2015-12-12gitk: sv.po: Update Swedish translation (311t)Peter Krefting1-300/+314 2015-12-12gitk: Let .bleft.mid widgets 'breathe'Giuseppe Bilotta1-2/+6 2015-12-12gitk: Match ttk fonts to gitk fontsGiuseppe Bilotta1-0/+18 2015-12-11rebase -i: remember merge options beyond continue actionsFabian Ruch2-11/+23 2015-12-11completion: remove 'git column' from porcelain commandsSZEDER Gábor1-0/+1 2015-12-11Update release notes to 2.7Junio C Hamano1-65/+1 2015-12-11Prepare for 2.6.5Junio C Hamano2-1/+26 2015-12-11send-email: enable SSL level 1 debug outputJohn Keeping1-0/+7 2015-12-11l10n: git.pot: v2.7.0 round 1 (66 new, 29 removed)Jiang Xin1-1428/+1599 2015-12-10ident: keep a flag for bogus default_emailJeff King1-7/+12 2015-12-10ident: make xgetpwuid_self() a static local helperJeff King3-15/+12 2015-12-10Git 2.7-rc0v2.7.0-rc0Junio C Hamano1-1/+1 2015-12-10Update release notes to 2.7Junio C Hamano1-0/+19 2015-12-10Documentation/git-update-index: add missing opts to synopsisChristian Couder1-0/+1 2015-12-10git-p4: add option to keep empty commitsLars Schneider3-17/+165 2015-12-08Git 2.6.4v2.6.4Junio C Hamano3-2/+18 2015-12-07revision.c: fix possible null pointer arithmeticStefan Naewe1-1/+3 2015-12-04l10n: fr.po: Fix typoAudric Schiltknecht1-1/+1 2015-12-04t3404: fix quoting of redirect for some versions of bashCharles Bailey1-1/+1 2015-12-04git-check-ref-format.txt: typo, s/avoids/avoid/Nguyễn Thái Ngọc Duy1-1/+1 2015-12-04document submodule sync --recursiveStefan Beller1-1/+4 2015-12-04push: follow the "last one wins" convention for --recurse-submodulesMike Crowe2-9/+44 2015-12-04push: test that --recurse-submodules on command line overrides configMike Crowe1-4/+28 2015-12-04Prepare for 2.6.4Junio C Hamano2-1/+49 2015-12-04RelNotes update for 2.7Junio C Hamano1-0/+51 2015-12-01verify_pack: do not ignore return value of verification functionDavid Turner1-1/+1 2015-12-01Make error message after failing commit_lock_file() less confusingSZEDER Gábor4-5/+8 2015-11-28wt-status: correct and simplify check for detached HEADRené Scharfe1-5/+4 2015-11-28ident.c: add support for IPv6Elia Pinto1-4/+27