Message ID | 20221123110759.1836666-12-brgl@bgdev.pl |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2724668wrr; Wed, 23 Nov 2022 03:15:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf5eufkBQ//WJGKXWJzFgnC7CZ7u2PX1PszafGTIbxckiDEGHj4FjpUmpB28w3B5VAgErVeE X-Received: by 2002:a17:906:a889:b0:7ad:bd02:f491 with SMTP id ha9-20020a170906a88900b007adbd02f491mr24238744ejb.703.1669202141691; Wed, 23 Nov 2022 03:15:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669202141; cv=none; d=google.com; s=arc-20160816; b=qe2bQidJkoIxszfvkwAptDQB0ycIowrenQYcWwshMKEuJFlYpRjFyfP/7OMjrTeQgk QtYbhK4xkJmOg3IZ7PdS7NwqFnHq0bOPQMJMFRMs6WeZ4ituu4voWEOFiwzVbUbyxsxK wTNOB4O0Hsl2ulNTCqJQDEZ1UE6WfNE44gBfcYDUNKCHh1FEVw+UA8XRNUUl1Isr0fjW T9m8ld1AWzI7OzMFXMHGeDLiA8ovnZqJs/G8LtHZlyw5zKbsAUBluogzWFx8ZsqwpVJ+ jiMD4L227BOdTrAgQo0cl4h+reowfLM8CWTUN1k7yd04G/EBe9HenuOaqb8SWPE4NmLp EepQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yBSJ9X9pr9Z0i2+NFcnle+eN9VzlxNW46WoYTtGtQAo=; b=DYtcFLHToIi2yTgTHwY0yA7tpPMJydx/gP0xkg98qPWUrIsHtJcfmn+eky6njcjh1E UuXEgh7qPggvDXWZo77gZXO6dq4cfx6YMb3R9UjL8Hln+PvqYmwGYBk7FUOrRSWpIZUx RAYv1mt3FLrBOK7XQA2GG3xbDD9ZyOKS4ZlWnNvfBNQVmQrwe3/8mjWZOln27EYddNJX ROte0aeU5P9wHFUk8IRodg9YnysbnVES8y9f0RIPYBWDtnqe1dcu1jO12pyW7ikf3MdW OnwiUGSDpHNkefl0Xb6fH1oroBc5zlWyiGML7Q8fqgQzHfno644ANRwfhloCKoqP+GX3 rYGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=ja4+W1jE; 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 dd14-20020a1709069b8e00b0077d562462f5si3892648ejc.381.2022.11.23.03.15.17; Wed, 23 Nov 2022 03:15:41 -0800 (PST) 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; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=ja4+W1jE; 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 S237305AbiKWLJu (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Wed, 23 Nov 2022 06:09:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237649AbiKWLIe (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 23 Nov 2022 06:08:34 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 991B7AF086 for <linux-kernel@vger.kernel.org>; Wed, 23 Nov 2022 03:08:15 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id o7-20020a05600c510700b003cffc0b3374so1072907wms.0 for <linux-kernel@vger.kernel.org>; Wed, 23 Nov 2022 03:08:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yBSJ9X9pr9Z0i2+NFcnle+eN9VzlxNW46WoYTtGtQAo=; b=ja4+W1jEpsH8IErFm7dMfOR6osTp3PvRK/79rIXT0E+hHFA5TgZynARrHm1/8P3WnR EJt1uCTQKkJxt2DdA4lpEzHSNSq/FUNk/JGIwbSIl7yzE1uR5W+Z9l+a69RC63LmUHl1 n5ZmZ/4m51Z7+ZZPJTkVwcooV7FndRr4kiiCUZ7OD+bxCO7pgWDapJgVH7fkdi8A3RFd 510VYT98Hik+yO6mhv5z3eP7DEAjnKnJKmlDIW/gnF6lIlC/5FYtzZJX8fDE0/+rhRky w7dhyStbmJyQ7C8Ah+mhPXG8g/8h3GQ37ubmGb8n+w1ZJH0IFf9B+sJa6DHBWZN3vr8a s66A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yBSJ9X9pr9Z0i2+NFcnle+eN9VzlxNW46WoYTtGtQAo=; b=ghGdsO6mRNq6Yf5aQM7BZTKJBsyIUjxA8LhrWA8OXOeprZSf3jIJewJoC+dSy1Qe9E wxQ16Qh1l2yx4tf6XPKSZqWU+XDEaVKYY01ff2QmzeIDDhla4mo7Fx6w8uK81TTTF468 Vj7yU11uMP9EoVGLAq7UsT+Nqycra6jIVWs5+e0GYfGxZ/w5ER2vVtVIXJyB1EUeIzXn mcUn26cG+s7cjqAb1iwcc89n/ZG3eStYM9k8UtJDP3bMjDp3PGkUxNzx1GXxi9sNTk6Y ceOk5zkrP0bWpRxyG43q9vBjSd1Jbc8MLE4WzyI2T2J/Ge2cFtRCoAXNo8kG9mj66r+O v0Qg== X-Gm-Message-State: ANoB5pkm2TJ84GvarDyKsWpz67xhgV0JKGoIauIpZ9n4m06qRERJN4mF nutd/mC15woghV3gFNydekPynw== X-Received: by 2002:a05:600c:654c:b0:3d0:110c:d25f with SMTP id dn12-20020a05600c654c00b003d0110cd25fmr13782378wmb.125.1669201695202; Wed, 23 Nov 2022 03:08:15 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:ae74:d94f:4677:3378]) by smtp.gmail.com with ESMTPSA id f13-20020a05600c4e8d00b003c6c182bef9sm2560406wmq.36.2022.11.23.03.08.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 03:08:14 -0800 (PST) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@somainline.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jiri Slaby <jirislaby@kernel.org>, Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Vinod Koul <vkoul@kernel.org>, Alex Elder <elder@kernel.org>, =?utf-8?q?Ilp?= =?utf-8?q?o_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, Bartosz Golaszewski <bartosz.golaszewski@linaro.org>, Konrad Dybcio <konrad.dybcio@linaro.org> Subject: [PATCH v3 11/13] tty: serial: qcom-geni-serial: stop operations in progress at shutdown Date: Wed, 23 Nov 2022 12:07:57 +0100 Message-Id: <20221123110759.1836666-12-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221123110759.1836666-1-brgl@bgdev.pl> References: <20221123110759.1836666-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750285304529847436?= X-GMAIL-MSGID: =?utf-8?q?1750285304529847436?= |
Series |
serial: qcom-geni-serial: implement support for SE DMA
|
|
Commit Message
Bartosz Golaszewski
Nov. 23, 2022, 11:07 a.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> We don't stop transmissions in progress at shutdown. This is fine with FIFO SE mode but with DMA it causes trouble so fix it now. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> --- drivers/tty/serial/qcom_geni_serial.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c index 036231106321..82242a40a95a 100644 --- a/drivers/tty/serial/qcom_geni_serial.c +++ b/drivers/tty/serial/qcom_geni_serial.c @@ -865,6 +865,9 @@ static void get_tx_fifo_size(struct qcom_geni_serial_port *port) static void qcom_geni_serial_shutdown(struct uart_port *uport) { + qcom_geni_serial_stop_tx(uport); + qcom_geni_serial_stop_rx(uport); + disable_irq(uport->irq); }