From patchwork Thu Mar 5 16:32:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sungbo Eo X-Patchwork-Id: 1249718 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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=gorani.run Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=nkOP5ncl; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gorani.run header.i=@gorani.run header.a=rsa-sha256 header.s=MBO0001 header.b=WotA/zg0; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48YGX573xPz9sPK for ; Fri, 6 Mar 2020 03:33:25 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9ncdIl+4wB03xsj0oYnpiCyFkVSrP/KhVA5lAx4J494=; b=nkOP5nclp7mYLM WSq39itTZZmm/I5nRZg2fCavTp2JVXBJmMXejYaLTRnBjgz/emA11W6LZyt7zjgaq4Wqz7YWnHwHF 7CcVjd/Go2tQcvWtS1k0sBUVygodG8YCHxLsoNd4827IqeMZMGpLCgHO6IrtJ6PCAJFRXG4QMq+zR THoTXYDVfvrK/xSr0QotAe0WyFHLj+FKqFYB5DfeMw1rUNrsLEVSpxEUXMWdmA8lg2hJpRCQ377iY C+LfRjW2VyYal08JleIQ1xlPd+rhtiIsma8aE046Dz51Um/2yQ1YqwyHuVPL+vePp+LeEioWdOBPg r1Xin7CrZAsqHI6tDr+A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j9tR3-00043J-GS; Thu, 05 Mar 2020 16:33:21 +0000 Received: from mout-u-204.mailbox.org ([91.198.250.253]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j9tQu-0003uA-Tt for openwrt-devel@lists.openwrt.org; Thu, 05 Mar 2020 16:33:14 +0000 Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [91.198.250.252]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 48YGWq57VDzQlGJ; Thu, 5 Mar 2020 17:33:11 +0100 (CET) Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 48YGWq4NCfzKmhQ; Thu, 5 Mar 2020 17:33:11 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gorani.run; s=MBO0001; t=1583425989; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=93ik3dGw86R9+8aYV0IjK+r13G9yb962/Uj6bmQ8S2M=; b=WotA/zg0Qeo8Z2xvDvfpMYgeZjEOEInj3YcEEmQlDlsl4IYwaacnoxwLKwZvbjf0+wBtUL 6T/fiQXUP9YPQ9rRI18kV20pbVL2hIcp4LwgzqAxVE8c8M14rNUTbcuSwx7VfFeByWe2QE 82GiDa7dRbxuaaEP5DlJbgWoHZcq3f6eHg0TUNwwfRs/l+wB8yNC8QocQXlTXac1WQ+Y3T w0V+L1R89v6z4yVbj4QVqupvl29LVmyL0Pk/s8VEcKe0qo6K11S8S2oU2f1wbTEZTBZ6VD Udldm7q28ch4cgOh7J6uquf6uyXoJZXrD8WL37QKafTd5XNPFQI4Fw7/4/4RlQ== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id HSBgbrgG-1kW; Thu, 5 Mar 2020 17:33:05 +0100 (CET) From: Sungbo Eo To: openwrt-devel@lists.openwrt.org Date: Fri, 6 Mar 2020 01:32:45 +0900 Message-Id: <20200305163248.361572-2-mans0n@gorani.run> In-Reply-To: <20200305163248.361572-1-mans0n@gorani.run> References: <20200305163248.361572-1-mans0n@gorani.run> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200305_083313_114930_B9BFD9AC X-CRM114-Status: UNSURE ( 9.78 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [91.198.250.253 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain Subject: [OpenWrt-Devel] [PATCH 1/4] Revert "ar71xx: fix Arduino Yun enabling of level shifters outputs" X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sungbo Eo Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org This reverts commit 077253dd666a30ae5231c3748222d4b5b138593d. The output enable pins should be disabled by default, and only enabled when used. Otherwise unwanted conflicts might occur between MCU and SoC pins. Signed-off-by: Sungbo Eo --- target/linux/ar71xx/files/arch/mips/ath79/mach-arduino-yun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-arduino-yun.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-arduino-yun.c index e92f68f490..5873248edf 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-arduino-yun.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-arduino-yun.c @@ -141,7 +141,7 @@ static void __init ds_setup(void) // enable OE of level shifter if (gpio_request_one(DS_GPIO_OE, - GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, "OE-1") != 0) + GPIOF_OUT_INIT_LOW | GPIOF_EXPORT_DIR_FIXED, "OE-1") != 0) printk("Error setting GPIO OE\n"); if (gpio_request_one(DS_GPIO_UART_ENA, @@ -150,7 +150,7 @@ static void __init ds_setup(void) // enable OE of level shifter if (gpio_request_one(DS_GPIO_OE2, - GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, "OE-2") != 0) + GPIOF_OUT_INIT_LOW | GPIOF_EXPORT_DIR_FIXED, "OE-2") != 0) printk("Error setting GPIO OE2\n"); } From patchwork Thu Mar 5 16:32:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sungbo Eo X-Patchwork-Id: 1249719 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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=gorani.run Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=Jk7gj+JB; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gorani.run header.i=@gorani.run header.a=rsa-sha256 header.s=MBO0001 header.b=H3WGfjgH; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48YGXP4GK5z9sPK for ; Fri, 6 Mar 2020 03:33:41 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SjAgBBx6cMKexfPKOn7WhijWcKkMfJmpmMAS35xH9/U=; b=Jk7gj+JBhTcwnl IZoQqL8ZvISNzdAVvb3QoWs096jRShnbekgO+f0FU/kBS0cG5ceHhoYMuKC1KrRQAB1DloS+YZLPy qmVPjJ4VtpaytU+L7YWDiSfmoYj4/ALeKF2zvoVHK4CutoHou0nsyZQwYU13aOLFdKpu1RBuH3edH KHZXB1YNT4Ac4Oq5OFekzsuU3uud5bIxAQC6Amyu5r96Yq0eIkqD2MbQy38LbMMK/FaqnQvVYfryj 14XsoLpBhiX/nelZjRpM5D9UclLc6LFVP0V76ki7wCG4qj/GVPjofWiofuAS8IxBooPTGhZd9dSfM T87dZ127ZKDOj+g03kUg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j9tRE-0004JE-MC; Thu, 05 Mar 2020 16:33:32 +0000 Received: from mout-u-204.mailbox.org ([2001:67c:2050:1::465:204]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j9tQv-0003uC-Kd for openwrt-devel@lists.openwrt.org; Thu, 05 Mar 2020 16:33:15 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 48YGWq67t3zQlGK; Thu, 5 Mar 2020 17:33:11 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gorani.run; s=MBO0001; t=1583425990; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rkHCMA9i7kFOlOxrQeJzTWASCUlwagqnKnbaVItwvMI=; b=H3WGfjgH7PCLHXyN0ayXvSwUYtXjSH+zKL9RBa3IBdMOlhLIF3Fl+oxEfmxLTkUIuk5RoI l3SzV9bMCnlqHqQLGMrd+T1bCAbqHwb2fxREVWS9sZtAxRTlaY3Vlz1XBQHm7vwaf93Opt uIXSi/5TtDqMOQKfGOWigMQ8ncxia40q+Q4Q/0EEreCF0GqC2rypiwnfdetCyEp7ExhEOb eEdBKEmBC3r0aX8sIjodToFo8AsUnGc21RX1HCZPDlOjvT4hxBXXmkWA97Wn7Tyv3LXSs7 ly6+kZzftor3QLlE8+IaFhslbMNPJt4w6HhR9YAqLIY8s5Nz8CLwsYZJFzr/jQ== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id MvM4vPFjqWyi; Thu, 5 Mar 2020 17:33:09 +0100 (CET) From: Sungbo Eo To: openwrt-devel@lists.openwrt.org Date: Fri, 6 Mar 2020 01:32:46 +0900 Message-Id: <20200305163248.361572-3-mans0n@gorani.run> In-Reply-To: <20200305163248.361572-1-mans0n@gorani.run> References: <20200305163248.361572-1-mans0n@gorani.run> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200305_083313_842078_F1BACE20 X-CRM114-Status: UNSURE ( 9.99 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain Subject: [OpenWrt-Devel] [PATCH 2/4] ar71xx: fix sysupgrade for Arduino Yun X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sungbo Eo Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Commit bb46b635df48 changed its partition scheme, but sysupgrade image validation still uses the old format. This commit fixes it so that force flag is not needed for sysupgrade. Fixes: bb46b635df48 ("ar71xx: move Arduino Yun to generic building code") Signed-off-by: Sungbo Eo --- target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index a76842bdde..a376452838 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -217,6 +217,7 @@ platform_check_image() { archer-c60-v2|\ archer-c7-v4|\ archer-c7-v5|\ + arduino-yun|\ bullet-m|\ bullet-m-xw|\ c-55|\ @@ -346,7 +347,6 @@ platform_check_image() { ap152|\ ap91-5g|\ ap96|\ - arduino-yun|\ bhr-4grv2|\ bxu2000n-2-a1|\ db120|\ From patchwork Thu Mar 5 16:32:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sungbo Eo X-Patchwork-Id: 1249721 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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=gorani.run Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=Ed8A3NBS; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gorani.run header.i=@gorani.run header.a=rsa-sha256 header.s=MBO0001 header.b=csA9+ogN; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48YGXb5lr6z9sPK for ; Fri, 6 Mar 2020 03:33:51 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QFsCnxuvyPNFLCF0vcyiyfxoDT/ENKrN66xH39rOAVQ=; b=Ed8A3NBSO592vc Xwk601M9EBNbzCkgcHh9DWTk1xkCcoFDSHTiLG9oI8TOaMeNpGVs9yOVcIYkh9tQsuO17eL50+THD kLMn9A7rO0GdlEE1F5vxMvl0OnMY4+eCMNFnVaV3XAaFS+86FwAS9ul9QW2s6YChdvD4agbJuXWnV ZbfDAKrefpHC9yQKI3Miq4qzJm7tSSnYeYpgRMH3GfU+b8RAeTNr6ZOcp4RN436l7ikAn4teZNtAV ljpTjuNuSiDZAz0DDr5y6BOrkzh1ZTyODv1OKI9Epjqx7UwCAE0p3T8jfih+bLQqeCSGHW4yLKleR jJabDrOnv9zzdV1cMA2g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j9tRU-0004an-Oo; Thu, 05 Mar 2020 16:33:48 +0000 Received: from mout-u-204.mailbox.org ([91.198.250.253]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j9tQy-0003wS-S5 for openwrt-devel@lists.openwrt.org; Thu, 05 Mar 2020 16:33:18 +0000 Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [91.198.250.252]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 48YGWv4GV4zQlGH; Thu, 5 Mar 2020 17:33:15 +0100 (CET) Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 48YGWv3VCnzKmhQ; Thu, 5 Mar 2020 17:33:15 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gorani.run; s=MBO0001; t=1583425993; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Hn6lXYHX3QGS6brIcmJ9TFd226+AKfOgITWkaHfmvco=; b=csA9+ogN6TLxrlbqSs/iVFoEUGQQfZETqRD6h4809ILt8fTf2xp63Z0Oj9oEDzn3eOv/7r sTXcyLOsNjTK1T50v3hOynETdhPjvFYkcdG74bIDHd8ivj/l9gshim8w8DTk+rQ7t3rTgv huj4QK9M6aHTfHH2MFN9U732CbZs3XajqIi46pPRcLxfxUv2E2crG0R8L0QY3PZd5YQeZT U21+CJskuSB3ANxXi9ei9tymhCqt6RkJn+yOBiUT+h12a3wd0YwprX7bovgnqVAwDUU+o3 PTsA3sVouOgFuKn2Q5s5NrybcxByzA33UV0YP8f9cf6Z+m7c/h6Q8v35bWi2lg== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id s15dYdeUyFiY; Thu, 5 Mar 2020 17:33:12 +0100 (CET) From: Sungbo Eo To: openwrt-devel@lists.openwrt.org Date: Fri, 6 Mar 2020 01:32:47 +0900 Message-Id: <20200305163248.361572-4-mans0n@gorani.run> In-Reply-To: <20200305163248.361572-1-mans0n@gorani.run> References: <20200305163248.361572-1-mans0n@gorani.run> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200305_083317_083731_571A7C15 X-CRM114-Status: GOOD ( 11.27 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [91.198.250.253 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain Subject: [OpenWrt-Devel] [PATCH 3/4] ar71xx: enable ethernet LED of Arduino Yun X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sungbo Eo Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Commit 05d73a2a7379 enabled GPIO on ethernet LED, but proper LED setup was not added then. This commit fixes it by reverting the change on the LED. Fixes: 05d73a2a7379 ("ar71xx: Arduino Yun board 'WLAN RST' button support") Signed-off-by: Sungbo Eo --- target/linux/ar71xx/files/arch/mips/ath79/mach-arduino-yun.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-arduino-yun.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-arduino-yun.c index 5873248edf..8ab07d514b 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-arduino-yun.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-arduino-yun.c @@ -117,8 +117,7 @@ static void __init ds_setup(void) ath79_gpio_function_disable(AR933X_GPIO_FUNC_ETH_SWITCH_LED0_EN | AR933X_GPIO_FUNC_ETH_SWITCH_LED1_EN | AR933X_GPIO_FUNC_ETH_SWITCH_LED2_EN | - AR933X_GPIO_FUNC_ETH_SWITCH_LED3_EN | - AR933X_GPIO_FUNC_ETH_SWITCH_LED4_EN); + AR933X_GPIO_FUNC_ETH_SWITCH_LED3_EN); //Disable the Function for some pins to have GPIO functionality active // GPIO6-7-8 and GPIO11 From patchwork Thu Mar 5 16:32:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sungbo Eo X-Patchwork-Id: 1249722 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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=gorani.run Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=O3ps2YGM; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gorani.run header.i=@gorani.run header.a=rsa-sha256 header.s=MBO0001 header.b=Wxb+VU6b; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48YGXt48bJz9sPg for ; Fri, 6 Mar 2020 03:34:06 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=uEX4oZr5Pm//JiQEnPz5GLvzVsKH974czcyv8I/vjVY=; b=O3ps2YGMKE5iKL mQxKwReL41LneA7KadSYK6NnwSXsUzNChCl2F82NJ1sDKxpxY6JkuffOSgVUbBFnWLjLz4dmQ8A9Z Q5ZX4RwZiDxRDTHIs+RM+lVmtTz7PVXX5x3l9jFw4KGr8gwSQhrfgpMeKINyMh5uKvmqOWASmA9Bf Qy62h3/ZC/bcSGkXeWvy7T8HR6cE+lQdXfLf0MoVmD3lZoxtjNz6yj7UMVb3oiv0xPfjUYWgyiEm+ nUYJMfMJuDRpzgNcgPTXyg9N8kQlwjaTN4QaqjqlqHuzbw6CVz7LcR7xdTh/+edl0fcChoKK/qhjH 48zlpifj2mXFqpmmnPAQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j9tRi-0004q9-Q8; Thu, 05 Mar 2020 16:34:02 +0000 Received: from mout-u-204.mailbox.org ([91.198.250.253]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j9tR2-00042B-ON for openwrt-devel@lists.openwrt.org; Thu, 05 Mar 2020 16:33:22 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 48YGWz38LGzQlGJ; Thu, 5 Mar 2020 17:33:19 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gorani.run; s=MBO0001; t=1583425997; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BOM+CZa2ZCnv1jGMZMP2YP+Wvne5UJTTSGqrkX2s9YI=; b=Wxb+VU6bR02U5lpRWiClMh/rUMAQsBwpNiLz+UiLmJfb9cMvDzJBhBDtGvvmpRpRhdwBw0 Dr3gsKmLSbkuPcQeWnIKoxV6lghADFFzM3seORdRN3/DLJcgkIccM70hLfD3M1tg8UUZWP tC1T8SauOXz9b1uM5ws3bqV3AeSOSfSmOAOnz2mg0P6feitOQx0Auk9Xnm0a/nI9HiQxMY kOUSVOipVnTwsp7HYRsw14l+SfihmoX3n5nDyUebj/eBcJmWU+ekiBCHVxW6k9d4QPwB3S MvJH28giiJg5v/2ZW3FpHXKh8ThJtFG9Fn443GZtjhywFdljJYXOX5qICo3BhA== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id a3jHI3bCHk0C; Thu, 5 Mar 2020 17:33:16 +0100 (CET) From: Sungbo Eo To: openwrt-devel@lists.openwrt.org Date: Fri, 6 Mar 2020 01:32:48 +0900 Message-Id: <20200305163248.361572-5-mans0n@gorani.run> In-Reply-To: <20200305163248.361572-1-mans0n@gorani.run> References: <20200305163248.361572-1-mans0n@gorani.run> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200305_083321_140978_B0644038 X-CRM114-Status: GOOD ( 19.16 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [91.198.250.253 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain Subject: [OpenWrt-Devel] [PATCH 4/4] ar71xx: restore support for boot console with arbitrary baud rates X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hauke Mehrtens , Sungbo Eo Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Commit 1bfbf2de6df9 ("ar71xx: serial: core: add support for boot console with arbitrary baud rates") added support for arbitrary baud rates which enabled 250000 baud rate for Yun. But the patch was not ported to kernel 4.9, and since then the kernel set its baud rate to 9600. This commit ports the patch to kernel 4.14, thereby restoring the serial console of Yun. Cc: Hauke Mehrtens Signed-off-by: Sungbo Eo --- ...support-for-boot-console-with-arbitr.patch | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 target/linux/ar71xx/patches-4.14/821-serial-core-add-support-for-boot-console-with-arbitr.patch diff --git a/target/linux/ar71xx/patches-4.14/821-serial-core-add-support-for-boot-console-with-arbitr.patch b/target/linux/ar71xx/patches-4.14/821-serial-core-add-support-for-boot-console-with-arbitr.patch new file mode 100644 index 0000000000..23b6d73959 --- /dev/null +++ b/target/linux/ar71xx/patches-4.14/821-serial-core-add-support-for-boot-console-with-arbitr.patch @@ -0,0 +1,54 @@ +From 4d3c17975c7814884a721fe693b3adf5c426d759 Mon Sep 17 00:00:00 2001 +From: Hauke Mehrtens +Date: Tue, 10 Nov 2015 22:18:39 +0100 +Subject: [RFC] serial: core: add support for boot console with arbitrary + baud rates + +The Arduino Yun uses a baud rate of 250000 by default. The serial is +going over the Atmel ATmega and is used to connect to this chip. +Without this patch Linux wants to switch the console to 9600 Baud. + +With this patch Linux will use the configured baud rate and not a +default one specified in uart_register_driver(). + +Signed-off-by: Hauke Mehrtens +[rebased to 4.14, slightly reworded commit message] +Signed-off-by: Sungbo Eo +--- + drivers/tty/serial/serial_core.c | 6 +++++- + include/linux/console.h | 1 + + 2 files changed, 6 insertions(+), 1 deletions(-) + +--- a/drivers/tty/serial/serial_core.c ++++ b/drivers/tty/serial/serial_core.c +@@ -232,6 +232,8 @@ static int uart_port_startup(struct tty_ + if (retval == 0) { + if (uart_console(uport) && uport->cons->cflag) { + tty->termios.c_cflag = uport->cons->cflag; ++ tty->termios.c_ospeed = uport->cons->baud; ++ tty->termios.c_ispeed = uport->cons->baud; + uport->cons->cflag = 0; + } + /* +@@ -2072,8 +2074,10 @@ uart_set_options(struct uart_port *port, + * Allow the setting of the UART parameters with a NULL console + * too: + */ +- if (co) ++ if (co) { + co->cflag = termios.c_cflag; ++ co->baud = baud; ++ } + + return 0; + } +--- a/include/linux/console.h ++++ b/include/linux/console.h +@@ -145,6 +145,7 @@ struct console { + short flags; + short index; + int cflag; ++ int baud; + void *data; + struct console *next; + };