diff options
author | 2024-08-01 18:04:22 +0900 | |
---|---|---|
committer | 2024-08-02 09:29:55 +0900 | |
commit | bf1807c6ee1f66608c7835f6f9d9139c9c477942 (patch) | |
tree | 18162cb5508fe55efe223a58af25b77e13f43545 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | ata: libata: Remove ata_noop_qc_prep() (diff) | |
download | wireguard-linux-bf1807c6ee1f66608c7835f6f9d9139c9c477942.tar.xz wireguard-linux-bf1807c6ee1f66608c7835f6f9d9139c9c477942.zip |
ata: libata: Print device quirks only once
In ata_dev_print_quirks(), return early if ata_dev_print_info() returns
false or if we already printed quirk information. This is to avoid
printing a device quirks multiple times (that is, each time
ata_dev_revalidate() is called).
To remember if ata_dev_print_quirks() was already executed, define the
EH context flag ATA_EHI_DID_PRINT_QUIRKS and set this flag in
ata_dev_print_quirks().
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Fixes: 58157d607aec ("ata: libata: Print quirks applied to devices")
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions