From patchwork Fri Dec 12 16:08:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 420548 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id F0B4214003E for ; Sat, 13 Dec 2014 03:07:27 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id D74BE28C21A; Fri, 12 Dec 2014 17:05:29 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 11D8E28C21A for ; Fri, 12 Dec 2014 17:05:20 +0100 (CET) X-policyd-weight: using cached result; rate:hard: -7.6 Received: from fudo.makrotopia.org (fudo.makrotopia.org [5.135.190.93]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 12 Dec 2014 17:05:20 +0100 (CET) Received: from local by fudo.makrotopia.org with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.84) (envelope-from ) id 1XzSkD-0004mP-Qy; Fri, 12 Dec 2014 17:07:05 +0100 Date: Fri, 12 Dec 2014 17:08:02 +0100 From: Daniel Golle To: openwrt-devel@lists.openwrt.org Message-ID: <20141212160756.GA13096@makrotopia.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Subject: [OpenWrt-Devel] [PATCH 2/2] oxnas: use libata ledtrig support for kd20 hdd leds X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Daniel Golle --- target/linux/oxnas/config-3.14 | 1 + target/linux/oxnas/config-3.18 | 1 + target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts | 2 ++ target/linux/oxnas/files/arch/arm/mach-oxnas/Kconfig | 1 + 4 files changed, 5 insertions(+) diff --git a/target/linux/oxnas/config-3.14 b/target/linux/oxnas/config-3.14 index 473a2bf..a065363 100644 --- a/target/linux/oxnas/config-3.14 +++ b/target/linux/oxnas/config-3.14 @@ -345,3 +345,4 @@ CONFIG_ZBOOT_ROM_TEXT=0 CONFIG_ZLIB_DEFLATE=y CONFIG_ZLIB_INFLATE=y CONFIG_ZONE_DMA_FLAG=0 +CONFIG_ATA_LEDS=y diff --git a/target/linux/oxnas/config-3.18 b/target/linux/oxnas/config-3.18 index 56dce65..b9172d9 100644 --- a/target/linux/oxnas/config-3.18 +++ b/target/linux/oxnas/config-3.18 @@ -364,3 +364,4 @@ CONFIG_ZBOOT_ROM_TEXT=0 CONFIG_ZLIB_DEFLATE=y CONFIG_ZLIB_INFLATE=y CONFIG_ZONE_DMA_FLAG=0 +CONFIG_ATA_LEDS=y diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts index 2db15ea..79442be 100644 --- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts +++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts @@ -107,6 +107,7 @@ hdd1blue { label = "kd20:blue:hdd1"; gpios = <&GPIOA 27 0>; + linux,default-trigger = "ata1"; }; hdd1red { label = "kd20:red:hdd1"; @@ -115,6 +116,7 @@ hdd2blue { label = "kd20:blue:hdd2"; gpios = <&GPIOB 6 0>; + linux,default-trigger = "ata2"; }; hdd2red { label = "kd20:red:hdd2"; diff --git a/target/linux/oxnas/files/arch/arm/mach-oxnas/Kconfig b/target/linux/oxnas/files/arch/arm/mach-oxnas/Kconfig index eb96f1b..6bdf3f6 100644 --- a/target/linux/oxnas/files/arch/arm/mach-oxnas/Kconfig +++ b/target/linux/oxnas/files/arch/arm/mach-oxnas/Kconfig @@ -18,6 +18,7 @@ config MACH_OX820 select PINCTRL_OXNAS select PINCTRL select RESET_CONTROLLER_OXNAS + select ARCH_WANT_LIBATA_LEDS help Include support for the ox820 platform.