diff options
author | Hannes Reinecke <hare@suse.de> | 2021-12-21 08:20:29 +0100 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-01-04 20:00:57 +0900 |
commit | f8ec26d0f5bcdb864f771fb6d250d9ed3165eb61 (patch) | |
tree | 6729c3d646606f4c012098cd92ee22692ef4a158 /drivers/ata/libata-core.c | |
parent | 4baa5745ec21efdce3470945a3ff6831b3e6c071 (diff) | |
download | lwn-f8ec26d0f5bcdb864f771fb6d250d9ed3165eb61.tar.gz lwn-f8ec26d0f5bcdb864f771fb6d250d9ed3165eb61.zip |
ata: libata: add reset tracepoints
To follow the flow of control we should be using tracepoints, as
they will tie in with the actual I/O flow and deliver a better
overview about what it happening.
This patch adds tracepoints for hard reset, soft reset, and postreset
and adds them in the libata-eh control flow.
With that we can drop the reset DPRINTK calls in the various drivers.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 73020a6d125e..c1946336f81e 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -3656,16 +3656,12 @@ void ata_std_postreset(struct ata_link *link, unsigned int *classes) { u32 serror; - DPRINTK("ENTER\n"); - /* reset complete, clear SError */ if (!sata_scr_read(link, SCR_ERROR, &serror)) sata_scr_write(link, SCR_ERROR, serror); /* print link status */ sata_print_link_status(link); - - DPRINTK("EXIT\n"); } EXPORT_SYMBOL_GPL(ata_std_postreset); |