Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Hannes Reinecke and committed by
Damien Le Moal
898a276d 41d4c60f

-28
-28
drivers/ata/sata_dwc_460ex.c
··· 20 20 21 21 #ifdef CONFIG_SATA_DWC_VDEBUG 22 22 #define VERBOSE_DEBUG 23 - #define DEBUG_NCQ 24 23 #endif 25 24 26 25 #include <linux/kernel.h> ··· 294 295 return "unknown"; 295 296 } 296 297 } 297 - 298 - #ifdef DEBUG_NCQ 299 - static const char *get_dma_dir_descript(int dma_dir) 300 - { 301 - switch ((enum dma_data_direction)dma_dir) { 302 - case DMA_BIDIRECTIONAL: 303 - return "bidirectional"; 304 - case DMA_TO_DEVICE: 305 - return "to device"; 306 - case DMA_FROM_DEVICE: 307 - return "from device"; 308 - default: 309 - return "none"; 310 - } 311 - } 312 - #endif 313 298 314 299 static void dma_dwc_xfer_done(void *hsdev_instance) 315 300 { ··· 732 749 dev_err(ap->dev, "failed to get qc"); 733 750 return; 734 751 } 735 - 736 - #ifdef DEBUG_NCQ 737 - if (tag > 0) { 738 - dev_info(ap->dev, 739 - "%s tag=%u cmd=0x%02x dma dir=%s proto=%s dmacr=0x%08x\n", 740 - __func__, qc->hw_tag, qc->tf.command, 741 - get_dma_dir_descript(qc->dma_dir), 742 - get_prot_descript(qc->tf.protocol), 743 - sata_dwc_readl(&hsdev->sata_dwc_regs->dmacr)); 744 - } 745 - #endif 746 752 747 753 if (ata_is_dma(qc->tf.protocol)) { 748 754 if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_NONE) {