From patchwork Mon Jun 5 13:08:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 10300 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2684348vqr; Mon, 5 Jun 2023 06:25:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ46tx2nlrtsratnK2OfEpNIpssUv2LwgYIBUGSfbGk347M2rmsK5YyKVqL7uBdmFNIHQ6dw X-Received: by 2002:a17:90b:1d82:b0:258:8731:4e3f with SMTP id pf2-20020a17090b1d8200b0025887314e3fmr3644233pjb.44.1685971499758; Mon, 05 Jun 2023 06:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685971499; cv=none; d=google.com; s=arc-20160816; b=RD6A53UL2I5zYqI/QFQjd73SQi5/F3nSKjJBGHcd8yu2uIxUuI/TtcfYNIzjZ9pLj2 Jf4D/v2JOtOXd8Lms4zvyC/M3H0QrzDitwxaTPDdt54G6KEYmaSH+N7g0jR0yCg5MAsY DDJXxHPR0qOutQ50juDH2sOmWh4/aTuoKUlyW8Xj6kKzyWJ4F/RZWtBPYR5dbSPTTXPd n8cOu/GTS2UVlMwHrvRhNGCEW95fHtm8cNMca2RoBBDXhCxhNX/R52B1FbMZlE0H3yuj krerQ3uxYhmZTZbe3D287XGcRpWCc3N3cinM6jrKB34mCzXKyLt2QIoHknhD7X08PLhW RzIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=LNysAruWDVJ+BOTna02unIM/BTUKZ7GQuRCvCUAmD/A=; b=h6S1kwXoRZTViBJv4oKkJ5+cRR++95nvPq1iDR4cjuFFtFFZn0yR8R+zO6BcKwmtiQ 1CX/e3tDKlFPT3aIP8fw1xvZAaTRfBtYh09rhp+IXr2XO6C/U0/zE29L0QeQPOW61AyN 4Cu/10f9WbrPUJi37utUx406S9n0Vlbtz5dgiaYnIdEZWKkOT+enbjIklrkfAUrAI4Ad O8k52BB1xPVXDFSYE1Rf7M+m3+XAdR4AJOQYn22WAZnN61icjA2hpLwuPnrorDwa/KFG q6nWhw/XUMQEFaPJLFDOltAM/kHrDrJVeejntn/wPlKQ0wc/QEYkp3aLD/9RtVHzOBFO TB+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 11-20020a17090a198b00b0025983055d94si195720pji.97.2023.06.05.06.24.44; Mon, 05 Jun 2023 06:24:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232575AbjFENKR (ORCPT + 99 others); Mon, 5 Jun 2023 09:10:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233976AbjFENJv (ORCPT ); Mon, 5 Jun 2023 09:09:51 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AC0611A for ; Mon, 5 Jun 2023 06:09:44 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q69xM-0001WH-KH; Mon, 05 Jun 2023 15:09:08 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1q69xF-005HiL-NM; Mon, 05 Jun 2023 15:09:01 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1q69xE-00BOyI-UI; Mon, 05 Jun 2023 15:09:00 +0200 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Greg Kroah-Hartman , Michael Ellerman Cc: kernel@pengutronix.de, Jiri Slaby , Andy Shevchenko , =?utf-8?q?Ilpo_J=C3=A4?= =?utf-8?q?rvinen?= , Kumaravel Thiagarajan , Nicholas Piggin , Christophe Leroy , Tharun Kumar P , Rob Herring , Helge Deller , Randy Dunlap , Geert Uytterhoeven , Matthew Gerlach , Liang He , linuxppc-dev@lists.ozlabs.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] serial: 8250: Apply FSL workarounds also without SERIAL_8250_CONSOLE Date: Mon, 5 Jun 2023 15:08:55 +0200 Message-Id: <20230605130857.85543-1-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1598; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=efED1NBBshJCjtXaXpvTEIOYQwFkMPcUlShlRdzjsnY=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBkfd5jaEVvCEZommSXyTG8Eotcw/vYwgq1ooqwJ +LAQzQ3pFmJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZH3eYwAKCRCPgPtYfRL+ TmwrCACC5YJ4ou0Bm0/ZORk01u+NPrk7NEQRTwKiRveCNvUqIgkJq5nkbm4JH/fUBh8nt6j8Sog y5Fm+vyV2+4B8hY4dmrRXD3GYbJzpbmBklsuWSiLE8xJvmXJAWyfcn3JiOaiwQwdtyAETBCaqTJ DIK4OX5t9hevZ1Zy0hQbvhL+rIn28McI95kOHiwXlm0AiH0uNzfomg+thLKcIhPfkWaYbiLShxo X5oKuhC2OvdjB6E++At3yQPVM0/InkgF/Uw1Q/vaFgQOL8cgn4V+wIDz5aIXX1J22l+vJGh+mFT kyuN8lADoLdvK3avgRsPKqAn0R5Fsn7Drbm1zUPU/eCfDxTa X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767869251248486085?= X-GMAIL-MSGID: =?utf-8?q?1767869251248486085?= Hello, this is v3 of the series that now also copes for arch/powerpc/kernel/legacy_serial.c using fsl8250_handle_irq(). For kernel configurations that already before were correctly using the Freescale workarounds, this is the case with this series applied, too. So in all cases the situation doesn't get worse. The upside is that even with the 8250 driver compiled as a module (or built-in but without console support) the workarounds are now applied for all devices but for the ones instantiated in arch/powerpc/kernel/legacy_serial.c. (And even for these there might not be a problem as they might benefit from enabling the workarounds in drivers/tty/serial/8250/8250_of.c. Not sure though.) Patch #1 is new here. Patch #2 only changed lightly: I restored alphabetic order in drivers/tty/serial/8250/Kconfig. As patch #1 is needed for patch #2 to not introduce a build failure, both patches should be taken together. I suggest to add them to Greg's serial tree, but the changes pending there should not conflict with this series such that taking them both via powerpc works, too. Best regards Uwe Uwe Kleine-König (2): powerpc/legacy_serial: Warn about 8250 devices operated without active FSL workarounds serial: 8250: Apply FSL workarounds also without SERIAL_8250_CONSOLE arch/powerpc/kernel/legacy_serial.c | 14 +++++++++----- drivers/tty/serial/8250/Kconfig | 2 +- drivers/tty/serial/8250/Makefile | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) base-commit: ac9a78681b921877518763ba0e89202254349d1b