From patchwork Fri Feb 21 17:47:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 11397041 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AB36A930 for ; Fri, 21 Feb 2020 17:48:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 073FC206E2 for ; Fri, 21 Feb 2020 17:48:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="oR/pbx7d"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=walle.cc header.i=@walle.cc header.b="GOT/7lSk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 073FC206E2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:MIME-Version:Message-Id:Date:Subject: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=mk6v63U/0tBiZi6zQjJqfA+B2coOK5R5LhAIurBvS18=; b=oR/pbx7dxLCOml b+eN3qM1OtDxvYuHpYRJAd4SCNkqmYuIYlk5myVPULAJIF6etj4Jb99hPWd74o8ugmfVQytvgggXa AIhN0b22ZPqjhiwH+Pfh3nUqyYIoaoLrvM5gBqfeMQJlFeGaqKik1PLfOYugap3S6W3DXCyDkx60w tUc976Wiq7RDmiHTbX0u60lamw7Q5YRp24Or3KAi7oulrjoeGV1NlTjkN26opm0u0H7pmNVpFoGJf dU3SrEsHZr+ImUswIfg4a5ATCRmMYCl/9NmHrhr5G7qk07CVnEj4JDW36uFvTQlB+flWdvu429lVU +qRjPGHTqwRL7Yz5Vgew==; 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 1j5CQ1-0000Gi-F1; Fri, 21 Feb 2020 17:48:53 +0000 Received: from ssl.serverraum.org ([176.9.125.105]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j5CPX-000866-0Q for linux-arm-kernel@lists.infradead.org; Fri, 21 Feb 2020 17:48:24 +0000 Received: from mwalle01.sab.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 2574C23D09; Fri, 21 Feb 2020 18:48:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1582307292; 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; bh=bC6qDTC4k9cKBmVPiBFXfJbFBlREttiFm87AHMXXcFQ=; b=GOT/7lSkX4I/ogNMgucjXNWWlAjUnQ+RQKD+h91JIsKRY/i8hRs20skUQHa5Jcc4ajA1CU ITxjiXgFFElpSebBnKGuHsxu0o7TkdsgUnLg64U9L9n8MoknT8syV+AtLNcWG84PEgMpgv umf5vs0EfJx0Xuk79S/56pURAmgwbKA= From: Michael Walle To: linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 0/9] tty: serial: fsl_lpuart various fixes and LS1028A support Date: Fri, 21 Feb 2020 18:47:45 +0100 Message-Id: <20200221174754.5295-1-michael@walle.cc> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Spamd-Bar: ++++++ X-Spam-Level: ****** X-Rspamd-Server: web X-Spam-Status: Yes, score=6.40 X-Spam-Score: 6.40 X-Rspamd-Queue-Id: 2574C23D09 X-Spamd-Result: default: False [6.40 / 15.00]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[dt]; MIME_GOOD(-0.10)[text/plain]; BROKEN_CONTENT_TYPE(1.50)[]; NEURAL_SPAM(0.00)[0.764]; DKIM_SIGNED(0.00)[]; RCPT_COUNT_TWELVE(0.00)[13]; MID_CONTAINS_FROM(1.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12941, ipnet:213.135.0.0/19, country:DE]; SUSPICIOUS_RECIPS(1.50)[] X-Spam: Yes X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200221_094823_227129_1B965B17 X-CRM114-Status: GOOD ( 12.40 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [176.9.125.105 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_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 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Peng Fan , Greg Kroah-Hartman , Li Yang , Michael Walle , Rob Herring , Vabhav Sharma , Jiri Slaby , Shawn Guo Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org These are various fixes for problems I found during development of the LS1028A support for the LPUART. Sorry for the quick v2, but I didn't thought I could fix the DMA issue that fast. Also, I'm not sure if this series should be split between the "tty: serial: fsl_lpuart" patches and the devicetree patches. So unless someone tell me otherwise I keep them together to avoid mention any dependencies. Changes since v1: - DMA support fixes. New patches: tty: serial: fsl_lpuart: fix DMA mapping arm64: dts: ls1028a: add "fsl,vf610-edma" compatible Modified patches: arm64: dts: ls1028a: add missing LPUART nodes - add dma phandles Michael Walle (9): Revert "tty: serial: fsl_lpuart: drop EARLYCON_DECLARE" tty: serial: fsl_lpuart: free IDs allocated by IDA tty: serial: fsl_lpuart: handle EPROBE_DEFER for DMA tty: serial: fsl_lpuart: fix DMA mapping dt-bindings: serial: lpuart: add ls1028a compatibility tty: serial: fsl_lpuart: add LS1028A support tty: serial: fsl_lpuart: add LS1028A earlycon support arm64: dts: ls1028a: add "fsl,vf610-edma" compatible arm64: dts: ls1028a: add missing LPUART nodes .../devicetree/bindings/serial/fsl-lpuart.txt | 10 +- .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 75 ++++++- drivers/tty/serial/fsl_lpuart.c | 201 +++++++++++++----- 3 files changed, 226 insertions(+), 60 deletions(-)