2018-04-18 02:07:27 +00:00
|
|
|
From 7a0a9c7737c5490ea192603c0d6facb49788006f Mon Sep 17 00:00:00 2001
|
2018-02-27 01:43:53 +00:00
|
|
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
Date: Sun, 25 Feb 2018 16:34:33 -0700
|
|
|
|
Subject: [PATCH 5/9] ata: sata_mv: Add SATA activity LED trigger support
|
|
|
|
|
|
|
|
Signed-off-by: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
---
|
|
|
|
drivers/ata/sata_mv.c | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
|
|
|
|
index 42d4589b43d4..cd3cdd5efc8b 100644
|
|
|
|
--- a/drivers/ata/sata_mv.c
|
|
|
|
+++ b/drivers/ata/sata_mv.c
|
|
|
|
@@ -72,6 +72,7 @@
|
|
|
|
#include <scsi/scsi_cmnd.h>
|
|
|
|
#include <scsi/scsi_device.h>
|
|
|
|
#include <linux/libata.h>
|
|
|
|
+#include <linux/leds.h>
|
|
|
|
|
|
|
|
#define DRV_NAME "sata_mv"
|
|
|
|
#define DRV_VERSION "1.28"
|
|
|
|
@@ -1175,6 +1176,8 @@ static void mv_start_edma(struct ata_port *ap, void __iomem *port_mmio,
|
|
|
|
{
|
|
|
|
int want_ncq = (protocol == ATA_PROT_NCQ);
|
|
|
|
|
|
|
|
+ ledtrig_sata_activity(ap->port_no);
|
|
|
|
+
|
|
|
|
if (pp->pp_flags & MV_PP_FLAG_EDMA_EN) {
|
|
|
|
int using_ncq = ((pp->pp_flags & MV_PP_FLAG_NCQ_EN) != 0);
|
|
|
|
if (want_ncq != using_ncq)
|
|
|
|
--
|
2018-04-18 02:07:27 +00:00
|
|
|
2.17.0
|
2018-02-27 01:43:53 +00:00
|
|
|
|