From mboxrd@z Thu Jan 1 00:00:00 1970 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 E6B79CD4F4C for ; Sun, 8 Sep 2024 09:11:07 +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=/gNzw4sLO5OwQYehDseOZcIx2jfb86y7Omm19QJL7xY=; b=GGsFrnDjoIYzRaHRAUw/WanRqe c/dTWKIljikkF37ZG9umHLUyNXTufRpBEvXaEYh2Y+7aSR+ulK98a1M8jMp8zEc7Px5h7PT134a7X DiZM4EU+UjyQAuz+45mCeXvY3/XPkcAa/qyoJP2Ac8e6oDlEPCdYstFfQ4+Dm3ZaYSinXAKMhCofZ +1ulE4S6CI42UlHYF9AGh2xYgNOAHObD6RFO2PglOKIzzJAVdVs/Pf51IpHS1eTWOYfe/8AK0FnLC jNGlhdb5f+9yGbIzhZjUTQUL1zPr4F0usS1+rv4nL49xamMtCTrUnBnIZ1hgd8behWnbaDrdosi9Y lgEBGv2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snDwe-0000000GSas-2d0c; Sun, 08 Sep 2024 09:10:56 +0000 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snDvd-0000000GSNn-1kP0 for linux-arm-kernel@lists.infradead.org; Sun, 08 Sep 2024 09:09:55 +0000 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-71798a15ce5so1982461b3a.0 for ; Sun, 08 Sep 2024 02:09:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725786592; x=1726391392; 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=/gNzw4sLO5OwQYehDseOZcIx2jfb86y7Omm19QJL7xY=; b=hQB8Zx2HRNdt8TKyAJDZztiPAkBoRx7kuG3I+tsRvf0Op9t9kxxg47jlJW7MJyIwbb eKXoB2RAq9s6DkD2Ta5zn6NeB9zhxp/nOcsGLTSKsQZ27SEtyCWUBBt7iMK1H2H2mZCm jCmmshkWTenf7c9kyjTgbSswYtH+gU89iD61iBUC9crkSSCnR35pZxDo4A2t9IwEXz7Z Xo955UTq+NpSfbpSF3io/7CkL6UMCUbmLEocQWd0mJAEN9UFBZudSenKRGLopxn+J3yO Rnaxx0skVRvTaPMPSOGcrEBKUTzAdpRqA2QqOwHRbs54CIdFEd8ymrT+7LXpXaiGZd07 S2fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725786592; x=1726391392; 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=/gNzw4sLO5OwQYehDseOZcIx2jfb86y7Omm19QJL7xY=; b=ZtlFPvgfQ8DpJtRlpU4dSdxZyL2j+qG3UzFq8Lp+3E4KBj0ds7xbFDwsBJuQyM9dXe ryBZ0FM8HZnR2nm/jkxSjDQyILxnhBd0iIqxMXseb75L24x6b3ZYXdIzoypyKCrV77SY GPKad2xi4VrFVIyA9JGuvoktAeoqEuxioFl7Z2nWDzR6Po971/6i762Px92jcxkOXwF0 PyO2A6NYpUHOmeiMrREyGozzXZpBs/YKF0Y80XIzxTZEH7wIgsadDMTJraiWyHCb8P44 StVJ29h6E46/aDL0M7d95DJ/pIrlnJspxxV/Kd4RgBbymfcdm5at0krqyKoOa+YTOcFh Tkcg== X-Forwarded-Encrypted: i=1; AJvYcCUhp76hyti7zluTCyRQwBEatBNji8WZjcQBe54XzM9b+/w2vGbBwEPyN26QVdXgrRSc8HbK0d1J49JBOI7vuQpC@lists.infradead.org X-Gm-Message-State: AOJu0YwI+EbGZXCwwsx24B9dcZQyCtRoMO2qIQcs+hj4tRaNGO2Iv72c ynacXDOi6DpTpUSDBZYid04wlpRiU6sMIR/rPiBAX2bdp6Q+461U X-Google-Smtp-Source: AGHT+IHx8m5Rh7j/5EvSb8iyw4iqFyvGjBYIsaCoOfj5/TDhu7GqeDaaSEwRT+ZXgw+5d4BzV8yi4Q== X-Received: by 2002:a05:6a21:31c7:b0:1cf:351c:ff8b with SMTP id adf61e73a8af0-1cf351d000dmr3644660637.21.1725786592145; Sun, 08 Sep 2024 02:09:52 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-718e5896e10sm1821439b3a.31.2024.09.08.02.09.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2024 02:09:51 -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 v3 0/3] tty: serial: samsung: Serial fixes for Apple A7-A11 SoCs Date: Sun, 8 Sep 2024 17:05:09 +0800 Message-ID: <20240908090939.2745-1-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240908_020953_482346_9A899AD0 X-CRM114-Status: GOOD ( 13.18 ) 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 v3: - v2 did not declare itself as v2 in subject line... resend as v3. 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 v2: https://lore.kernel.org/linux-samsung-soc/20240908075904.12133-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 -- 2.46.0