From patchwork Sun Sep 8 07:50:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13795342 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 29807E6FE49 for ; Sun, 8 Sep 2024 08:00:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=1vxC7/1i8CwujpweZ1wTUP4heu2CRN+sI53b8o2l2Nw=; b=epaRX7eZWmwX4les70SVJfuAbT 5NOoS9Iu98tlFgFaU3A+WTfSnWJjKcL4qJ7TnvGyGi23DF0DyoUuyFSuwoa/wN9aT4LxHTi7fQ37U j3hw6WMBTRU0XzaERjI4WV/BiFmD/Jec9GKxl2jIjeou93hT71iz7gpgPWGnFbT5dAYScP4SGGSoc ONW4WhP24PY319uhvs1QneNzFAf3p98GV0FbSsNrFURW/aOrfTuhReRLz4xV1oUHP3UVH+wm+tdhH mVNW8Uf0OQehWE4Ur6PMjN3H/VsVNh7Vj3t5C8twwsWWcaHTYGKW8Q8UAhLuLnnEQuU+dJdGaGQfd oV1pXbQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snCqb-0000000GLpy-1v2z; Sun, 08 Sep 2024 08:00:37 +0000 Received: from mail-oo1-xc2f.google.com ([2607:f8b0:4864:20::c2f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snCpa-0000000GLbW-3FxB for linux-arm-kernel@lists.infradead.org; Sun, 08 Sep 2024 07:59:36 +0000 Received: by mail-oo1-xc2f.google.com with SMTP id 006d021491bc7-5e1bf327af8so629370eaf.2 for ; Sun, 08 Sep 2024 00:59:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725782373; x=1726387173; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1vxC7/1i8CwujpweZ1wTUP4heu2CRN+sI53b8o2l2Nw=; b=VQxar00FBZj1NqxWwjx8YhUIqMWwWt+ZFjb2qwe4kmV7nYc5kpX+35bzSp6r8JmxDx 8cCH/9QyyNtD4dlblXD5TwMsowLmVgaNqF98aX6Bm6d9bXU7WPSppNafKUdvw0jmqZCM QeIa3AcEn7wBJ8r0xMjzdcOlROYyGxQcphtgaiLBNlsRPAmwzdTj+BcXtnUDjaKHQEuC hzLFCSD4vXq1i1QeSOSGa4JAfkFOVh6IWb/VjvcqWZDolJ2DhcCYSvEbzSNSFa4tgksi EvaRVafN9/8SOEOQVBq7QVbeiijpk0RVTCAiDEeiVfHqyNAhAPzRrdxDLdMF6IX9bCQy SkZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725782373; x=1726387173; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1vxC7/1i8CwujpweZ1wTUP4heu2CRN+sI53b8o2l2Nw=; b=va0HASJ4/R97Abu13313ZR6l+2uzevAK1MXHXaP/hyxjQkhFlqHwbShjagbjQuEI4p xPS/eOR8yakO4XkjSBFi07MX2CAP0F3HL0hQGYhncNEw11SML/CEyWmvB8eBz08hFtjN 9SeiEi5k6zC9lM9Li+WvhIaZXv6wCOT41sz8F8as6QW8wkhCoRUiNOeCnPL28BJ3d7wf XhCtKXYTcGz55r7ZA/ZJjgAuI6Y2uZ1+9d4kxQgrVwNr3kw33XqRu52bx07Sa+lGXYml hDTuH1aNaU5LK6q9QcY4Fo82kaxCKrEW706F3C1ld9KiMgZ1F5iA9gIn8vSSgXIDvLRq BIoA== X-Forwarded-Encrypted: i=1; AJvYcCVwxoCBzvZi6QPqjD/t5oiunQI5CrwZKcAdWdTOyv1bVu5rSmamLzm7zL1d8so1r5+W7bZjBQIj9tK5s5OYnOwV@lists.infradead.org X-Gm-Message-State: AOJu0YxR31Jg1SlRRABVc/iQ99p2awpC5X1IaiAB+CJBj7xH7lHYI+2g 1VdqIlcxi/DthPk1pxQSxWy/HMUC/30SCvKFzYGCCGTVVrqCvAh2 X-Google-Smtp-Source: AGHT+IG2oi15GFOnc4iepyTdQsMnqiBXkibBTS5arEx2FbGWXrLqY9KDnKuLXcROgxDP2ZZUq7RAjw== X-Received: by 2002:a05:6820:2213:b0:5da:a2fd:5af9 with SMTP id 006d021491bc7-5e1a9da272cmr7835288eaf.8.1725782372868; Sun, 08 Sep 2024 00:59:32 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id 41be03b00d2f7-7d8255dc1c6sm2012690a12.68.2024.09.08.00.59.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2024 00:59:32 -0700 (PDT) From: Nick Chan To: Krzysztof Kozlowski , Alim Akhtar , Greg Kroah-Hartman , Jiri Slaby , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Cc: asahi@lists.linux.dev, Nick Chan Subject: [PATCH 0/3] tty: serial: samsung: Serial fixes for Apple A7-A11 SoCs Date: Sun, 8 Sep 2024 15:50:47 +0800 Message-ID: <20240908075904.12133-1-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240908_005934_836946_A0AB92AA X-CRM114-Status: GOOD ( 12.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This series fixes issues with serial on A7-A11 SoCs. The changes do not seem to affect existing M1 and up users so they can be applied unconditionally. Firstly, these SoCs require 32-bit writes on the serial port. This only manifested in earlycon as reg-io-width in device tree is consulted for normal serial writes. Secondly, A7-A9 SoCs seems to use different bits for RXTO and RXTO enable. Accessing these bits in addition to the original RXTO and RXTO enable bits will allow serial rx to work correctly on those SoCs. Changes in v2: - Mention A7-A11 in the comment about changing register accesses to MMIO32. - Use BIT() macro for new entries, and change the existing APPLE_S5L_* entries for consistency. v1: https://lore.kernel.org/linux-samsung-soc/20240907111431.2970-1-towinchenmi@gmail.com Nick Chan --- Nick Chan (3): tty: serial: samsung: Use BIT() macro for APPLE_S5L_* tty: serial: samsung: Fix A7-A11 serial earlycon SError tty: serial: samsung: Fix serial rx on Apple A7-A9 drivers/tty/serial/samsung_tty.c | 22 ++++++++++++++++------ include/linux/serial_s3c.h | 24 ++++++++++++++---------- 2 files changed, 30 insertions(+), 16 deletions(-) base-commit: 9aaeb87ce1e966169a57f53a02ba05b30880ffb8