From patchwork Sat Mar 9 08:44:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Heimpold X-Patchwork-Id: 1053827 X-Patchwork-Delegate: wigyori@uid0.hu 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=none (p=none dis=none) header.from=heimpold.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="D22WU2bT"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=heimpold.de header.i=@heimpold.de header.b="ORDhHMpy"; 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 44GdH56Ps3z9s00 for ; Sat, 9 Mar 2019 19:45:21 +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=bHzmII2YO76sg1F287Ow+8/IV+NYdtkvUG1A35ZAPvY=; b=D22WU2bTLNuEtl R8K1ktH5OqiS7f9nRXQnvxkoRXTLACKPBOuPRXy1TnGUfSmEwdS+Mpawe6UWUYLfwrgMIXkNPbMi9 PTwazGLuJJrzYg/2oILXRBHDrzWtkJySsVqv15+u0gloZhY1UmtipOG/f464bL2I7skHs1l68ingn GGbKkmRiBooBq9CmjEVtHMANaPl/pvHqMFveZkGtdvW779ZOC1DciLb3Y/GmON45shXLvN4xM6/ua rhjZY9z/Dow0BeGpg2AxbESQmSHxhPtP9FC+HZm8Yk3tQIT6G0yTSJWaRyVf1E+ySq88GnDirpFMF a2bFCEz/Ml9tj9lamg6g==; 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 1h2XbK-0007uZ-Rx; Sat, 09 Mar 2019 08:45:02 +0000 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::9]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2XbF-0007rT-Pf for openwrt-devel@lists.openwrt.org; Sat, 09 Mar 2019 08:45:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1552121090; s=strato-dkim-0002; d=heimpold.de; h=Message-Id:Date:Subject:Cc:To:From:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=4wy3IRe0EPmr+XR8hiREJX1wAhoWTtQRzPOmaDLf62A=; b=ORDhHMpyPAs5xGa81pNfr/B6gUySGCsgBKVlElUzcL6gHlsf9Gg7gNeCEdf+9Irb3R zweRR9b7K+dBr8UED5LIZn/A84oHn9W2IHwYt6ero2ijFwgZgyPD4YgBQtihxn2HuS6a 0oSFkz9Ae9ByTpFFd5c5rqdnYJtF2lV7TcsQjec6FDnqGm7XSAAtgo2S6Lxz7AuLhXoL ysGTYMIl0R6LT7oDCzOBWELD2e1PMXnUJ+cLDJv38Z8W651tWY2WrC53vNVeuEUlrOqE 3r572glgSJgGsCA6u3/hq9bfhzY/Kg7k5FmGVddBlH1z6jpB9PzqFiAa/NQwZ1Fg2Q0m 7Keg== X-RZG-AUTH: ":O2kGeEG7b/pS1EW8QnKjhhg/vO4pzqdNytq77N6ZKUSN7PfdWTGQORRBv+ASfYPl1MvEOoX1beyjAOsqJ6TAH/3kiROR1GdmmSgT+A==" X-RZG-CLASS-ID: mo00 Received: from tonne.mhei.heimpold.itr by smtp.strato.de (RZmta 44.13 AUTH) with ESMTPSA id 6073a7v298inKeP (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sat, 9 Mar 2019 09:44:49 +0100 (CET) Received: from kerker.mhei.heimpold.itr (kerker.mhei.heimpold.itr [192.168.8.1]) by tonne.mhei.heimpold.itr (Postfix) with ESMTP id 3D3F0149621; Sat, 9 Mar 2019 09:44:48 +0100 (CET) From: Michael Heimpold To: openwrt-devel@lists.openwrt.org Date: Sat, 9 Mar 2019 09:44:35 +0100 Message-Id: <20190309084435.10111-1-mhei@heimpold.de> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190309_004458_429874_72A3BBF3 X-CRM114-Status: UNSURE ( 7.99 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.2 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 [2a01:238:20a:202:5300:0:0:9 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO 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] mxs: disable unused serial drivers 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: Michael Heimpold , wigyori@uid0.hu MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org This disables PL010 and 8250 serial support for this platform as both drivers are not used: the debug UART is PL011 and the application UARTs use a dedicated MXS specific driver. The kernel size reduction is neglectable, but it also removes the non-working (confusing) /dev/ttyS0 and /dev/ttyS1 devices in a running system (which generate errors when trying to use): root@OpenWrt:~# echo "hello world" > /dev/ttyS0 ash: write error: I/O error root@OpenWrt:~# Signed-off-by: Michael Heimpold --- target/linux/mxs/config-4.14 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/target/linux/mxs/config-4.14 b/target/linux/mxs/config-4.14 index 43d6a59bae..abad1807cd 100644 --- a/target/linux/mxs/config-4.14 +++ b/target/linux/mxs/config-4.14 @@ -262,9 +262,7 @@ CONFIG_RTC_MC146818_LIB=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y # CONFIG_SCHED_INFO is not set # CONFIG_SCSI_DMA is not set -CONFIG_SERIAL_8250_FSL=y -CONFIG_SERIAL_AMBA_PL010=y -CONFIG_SERIAL_AMBA_PL010_CONSOLE=y +# CONFIG_SERIAL_8250 is not set CONFIG_SERIAL_AMBA_PL011=y CONFIG_SERIAL_AMBA_PL011_CONSOLE=y CONFIG_SERIAL_MCTRL_GPIO=y