2021-02-13 19:26:25 +00:00
|
|
|
From 49fc8ed68c36250c9edf04593e1c7430ffa1b14c Mon Sep 17 00:00:00 2001
|
2018-03-01 01:15:12 +00:00
|
|
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
Date: Sun, 25 Feb 2018 16:34:33 -0700
|
2021-02-13 19:26:25 +00:00
|
|
|
Subject: [PATCH 2/6] ata: sata_mv: Add SATA activity LED trigger support
|
2018-03-01 01:15:12 +00:00
|
|
|
|
|
|
|
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
|
2021-02-02 00:23:02 +00:00
|
|
|
index 664ef658a955..ca920c7ce0e5 100644
|
2018-03-01 01:15:12 +00:00
|
|
|
--- a/drivers/ata/sata_mv.c
|
|
|
|
+++ b/drivers/ata/sata_mv.c
|
2019-07-10 01:56:00 +00:00
|
|
|
@@ -59,6 +59,7 @@
|
2018-03-01 01:15:12 +00:00
|
|
|
#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"
|
2019-07-10 01:56:00 +00:00
|
|
|
@@ -1162,6 +1163,8 @@ static void mv_start_edma(struct ata_port *ap, void __iomem *port_mmio,
|
2018-03-01 01:15:12 +00:00
|
|
|
{
|
|
|
|
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)
|
|
|
|
--
|
2021-02-02 00:23:02 +00:00
|
|
|
2.30.0
|
2018-03-01 01:15:12 +00:00
|
|
|
|