From patchwork Thu Oct 25 22:22:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Ryazanov X-Patchwork-Id: 989393 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="P/eRff14"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hb8PQEUv"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42h1kb22Ybz9s9m for ; Fri, 26 Oct 2018 09:19:19 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tTLuwKMFb83/52itgM3Nxcr4DXkuh2iqDh5YnItjDMg=; b=P/eRff14jC0ZnJ NDDi60YyCfzH/xzxBgy9W3GmiwIl9+nSUdmY118ezCrwdDPwc+MRBkLuwNxKjSEr61zv4bWzY+2h4 uT9NFBRpNqZgg2SFoDqbyuY1V/jo+yFdERoq6O8Y/VlpHcC+3BL4gIegvl/2efr1scpDYclu8VH0I 41nMIaqIZz6OjVDM8GcHqKlJYZR8KvOAdVNnGfvcoED5fGdmuz74ird8wkL+Jp8tHOvJc4i85ho3B 63igzt+TWPIFJeokb58U6ODFrJEKAJwJ1ZPNIAsNQyn8bP6Ay6//A/MEUKn9stXdt74R6E61XVX5A JyY81B1uGOp3i5NKtbnA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gFny6-0001R4-R2; Thu, 25 Oct 2018 22:19:06 +0000 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gFny3-0001PP-UO for openwrt-devel@lists.openwrt.org; Thu, 25 Oct 2018 22:19:05 +0000 Received: by mail-lj1-x241.google.com with SMTP id u21-v6so9702104lja.8 for ; Thu, 25 Oct 2018 15:18:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=XSmHKck6BSdxbgG7F1KUBWFg4dA9hexinV4ALVIzUSI=; b=hb8PQEUv7h7ggmZ5WsED5oUSr7XHAU8YKK0kUThQSKvhAFS4SBvERog+th2Gsqe2HM XFOEmRhnrXelol/gVODMhzwT4gvubHzB7vweuwXFRNcGFdjonXZvR14OPadHcyKs35zD 2QKlQ5qjryXEzhDELkaNwdOdxGk7u6tlPGNGGL5RCdwp5bIJ+zoZTMzaXM/W4Nw+335G JvOB8BwiQVvtep2vnm0EuyZdCOZ61KjWwyuSlbCd524dTiBh8izK9+0SeZ8cEpwnsfjt 0z5Kvfpw6pH8Xk/+jhD9c+M0xqbBSB5eO6c3cPSU1yLvjj73ohxMrdvsELol8fjEvxRx 3g5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=XSmHKck6BSdxbgG7F1KUBWFg4dA9hexinV4ALVIzUSI=; b=LzY3rrwFARlUH0ihaYqe+8v9WVw6R0I6VTHqiAZiVlcb2LCRZQHtCMsbTA0k+oAFci o9hibvZ7kY2RrLEjukHL238OSpYcl1KPm3wSIiQLbEECCm/orw4zWdsiI445IfroZRNT kCaFJMOPXwlkdzUBU2BOIUj0U2wFUSMf7g2KIl2H04iAW5dOac+wEwChxO3PHxUvT/Jm b7CWrFk71oXp6Of3H5UN1aPeiZz78goDsKG3UDkfq9ixiX0elFhZxCXLL0DgdWraP2tY YyeZchTOmXOYIJxf+TdLew+Abs8Ly3dwoXrS5BVk8mTeL3tLimcGb47ulB8mLhHNgg/k N9Kw== X-Gm-Message-State: AGRZ1gJ9g98t444hm69aHAxpjJBFJLtUHOniHoFmKzhzQaO8jAKra0Mb Gd7j+cwnVX0THtH7Z1R7K481jcWa X-Google-Smtp-Source: AJdET5fLWUtJuxzveV3X+bCTpRp0Vpecx+8EjauC+eEKG3qegkjbi+gZ3I2nex821cAMxqnuMJ8v7w== X-Received: by 2002:a2e:8606:: with SMTP id a6-v6mr563539lji.43.1540505930404; Thu, 25 Oct 2018 15:18:50 -0700 (PDT) Received: from rsa-laptop.internal.lan ([217.25.229.52]) by smtp.gmail.com with ESMTPSA id q2-v6sm1402053lfa.37.2018.10.25.15.18.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 15:18:49 -0700 (PDT) From: Sergey Ryazanov To: OpenWrt Development List Date: Fri, 26 Oct 2018 01:22:37 +0300 Message-Id: <20181025222237.5173-1-ryazanov.s.a@gmail.com> X-Mailer: git-send-email 2.16.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181025_151904_032911_990F82DC X-CRM114-Status: GOOD ( 12.84 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:241 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (ryazanov.s.a[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Subject: [OpenWrt-Devel] [PATCH] ar71xx: fix RouterBOARD Power LED default state X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathias Kresin MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org RouterBOARD(s) bootloader actully turns Power LED off just before it starts the kernel. So we need to set the LED default status to On instead of Keep in order to keep LED on during kernel boot. This change fixes Power LED off during the kernel boot on the RB91x and SXT Lite boards. Fixes: 6cad8ee0bd ("ar71xx: keep the RouterBOARD Power LED in On state") CC: Mathias Kresin Signed-off-by: Sergey Ryazanov --- Mathias, apply this patch to the stable branch too, please. --- target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c | 2 +- target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c index e240c3ad43..9620718962 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c @@ -219,7 +219,7 @@ static struct gpio_led rb711gr100_leds[] __initdata = { .name = "rb:green:power", .gpio = RB91X_GPIO_LED_POWER, .active_low = 0, - .default_state = LEDS_GPIO_DEFSTATE_KEEP, + .default_state = LEDS_GPIO_DEFSTATE_ON, }, }; diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c index d0e6baea49..7eb0e54151 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c @@ -115,7 +115,7 @@ static struct gpio_led rbsxtlite_leds_gpio[] __initdata = { { .name = "rb:green:power", .gpio = SXTLITE_GPIO_LED_POWER, - .default_state = LEDS_GPIO_DEFSTATE_KEEP, + .default_state = LEDS_GPIO_DEFSTATE_ON, }, };