diff options
author | Hannes Reinecke <hare@suse.de> | 2021-12-21 08:21:29 +0100 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-01-05 11:33:03 +0100 |
commit | 898a276d4304263e83edffa0bc1792aa8116cc90 (patch) | |
tree | 66a3882108a5e771a57d31d9805bd1e201572cde /drivers/ata | |
parent | ata: libata-scsi: rework ata_dump_status to avoid using pr_cont() (diff) | |
download | linux-898a276d4304263e83edffa0bc1792aa8116cc90.tar.xz linux-898a276d4304263e83edffa0bc1792aa8116cc90.zip |
ata: sata_dwc_460ex: drop DEBUG_NCQ
Obsolete, and has been converted to tracepoints.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/sata_dwc_460ex.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c index c33dc98e0d9d..448d88cf1b38 100644 --- a/drivers/ata/sata_dwc_460ex.c +++ b/drivers/ata/sata_dwc_460ex.c @@ -20,7 +20,6 @@ #ifdef CONFIG_SATA_DWC_VDEBUG #define VERBOSE_DEBUG -#define DEBUG_NCQ #endif #include <linux/kernel.h> @@ -296,22 +295,6 @@ static const char *get_prot_descript(u8 protocol) } } -#ifdef DEBUG_NCQ -static const char *get_dma_dir_descript(int dma_dir) -{ - switch ((enum dma_data_direction)dma_dir) { - case DMA_BIDIRECTIONAL: - return "bidirectional"; - case DMA_TO_DEVICE: - return "to device"; - case DMA_FROM_DEVICE: - return "from device"; - default: - return "none"; - } -} -#endif - static void dma_dwc_xfer_done(void *hsdev_instance) { unsigned long flags; @@ -750,17 +733,6 @@ static void sata_dwc_dma_xfer_complete(struct ata_port *ap, u32 check_status) return; } -#ifdef DEBUG_NCQ - if (tag > 0) { - dev_info(ap->dev, - "%s tag=%u cmd=0x%02x dma dir=%s proto=%s dmacr=0x%08x\n", - __func__, qc->hw_tag, qc->tf.command, - get_dma_dir_descript(qc->dma_dir), - get_prot_descript(qc->tf.protocol), - sata_dwc_readl(&hsdev->sata_dwc_regs->dmacr)); - } -#endif - if (ata_is_dma(qc->tf.protocol)) { if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_NONE) { dev_err(ap->dev, |