aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/libata-core.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 40d16124cc9f..3f1aa77621fd 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -5181,7 +5181,15 @@ static void ata_host_init(struct ata_port *ap, struct Scsi_Host *host,
5181 ap->hw_sata_spd_limit = UINT_MAX; 5181 ap->hw_sata_spd_limit = UINT_MAX;
5182 ap->active_tag = ATA_TAG_POISON; 5182 ap->active_tag = ATA_TAG_POISON;
5183 ap->last_ctl = 0xFF; 5183 ap->last_ctl = 0xFF;
5184 ap->msg_enable = ATA_MSG_DRV; 5184
5185#if defined(ATA_VERBOSE_DEBUG)
5186 /* turn on all debugging levels */
5187 ap->msg_enable = 0x00FF;
5188#elif defined(ATA_DEBUG)
5189 ap->msg_enable = ATA_MSG_DRV | ATA_MSG_INFO | ATA_MSG_CTL | ATA_MSG_WARN | ATA_MSG_ERR;
5190#else
5191 ap->msg_enable = ATA_MSG_DRV | ATA_MSG_ERR;
5192#endif
5185 5193
5186 INIT_WORK(&ap->port_task, NULL, NULL); 5194 INIT_WORK(&ap->port_task, NULL, NULL);
5187 INIT_WORK(&ap->hotplug_task, ata_scsi_hotplug, ap); 5195 INIT_WORK(&ap->hotplug_task, ata_scsi_hotplug, ap);