Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2853201ybh; Mon, 16 Mar 2020 10:58:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs/gD0K7FU/0ymT6j2iBAvCtxsgHVBhyj7exVKuJCCeRTfYiFumbECTDePa55BGyHVOCk6i X-Received: by 2002:a05:6830:1358:: with SMTP id r24mr318644otq.337.1584381488820; Mon, 16 Mar 2020 10:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584381488; cv=none; d=google.com; s=arc-20160816; b=F6nLUL0enAQ6NvsfbSjG4vOmuaQqyPdsfd3QOQRkoLN4/HBG3N4+JVsOeIIcMTigP8 QcYlybHpjAzMNTRfEognHWRefFCmaExQKdwZ0ZzAhhrVdWfTijr3QBVykLZWMrzv1oZ6 EYqwryngJ4NV99OK7b28CoMdqd3+sT9cYnfZRRu2VcDj9FsHV9e8+KA6Zs/PicVRjFoO +hudhmWsMespEEsK+RLUU/DgrTLZUUE9+sqvZFrmRbbczn+MQsgtrztMsVqasaM8jGPA /NqRupUQJivurb4PkWj2yfZgN2JgeZvLupIgm4BnAoCi6KnccxHLTq/FD8AFB3IgbjhH 55Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=y2Kd4TE6UO55m6P+gqiknz16qTQ+UJhgoGPrT0zGvfc=; b=shCaxHRw+2Wvr2yQiKrI9zyJD3E9waAuS8pzMi4Z1ePT97/j9oyYDruKiSv8Lut7Ox SqE6qDYqFKmoffLVh9ttAdiWvvGqqybjyYMJ9Y2TRsES79rmpIAra810gwiSKxe82QK5 ahq2qwu249QmuxtbJEEjJzOS66kPqVJm79J35Pkw1X8i0LZLfzutAwbl3n9fovidkaGJ y8X0NAbvitxaYoG9P6DOSawEHFO/a4tZJqXakhD4uIXfIAod/BV5dZdsm5jC+bCjOjSb 1xgyEqHPaXgDSAM8fKMdNDGwQble9rbc8O8wPAie26kxBZO7jFZH0EnHBgdmjjnMEZS9 ejTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UeVDrQE3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c23si318212oic.53.2020.03.16.10.57.56; Mon, 16 Mar 2020 10:58:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UeVDrQE3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732211AbgCPR5k (ORCPT + 99 others); Mon, 16 Mar 2020 13:57:40 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:38368 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732056AbgCPR5i (ORCPT ); Mon, 16 Mar 2020 13:57:38 -0400 Received: by mail-pl1-f194.google.com with SMTP id w3so8358924plz.5 for ; Mon, 16 Mar 2020 10:57:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=y2Kd4TE6UO55m6P+gqiknz16qTQ+UJhgoGPrT0zGvfc=; b=UeVDrQE395mmEkElu79pTTFh+bwZ/PBoqyZNZfqMpjrEs3+R7+ittS0/ZEJSOX/aXQ eUsZegOIunpxfZffe6Dt/HoK9AHmP1I0yWNc4pewzczh7CPSS31yD94roMfMbStZ8zlb oM0Std+omZCX4OL/A3GvBdXcA7R89KAz3nT80= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=y2Kd4TE6UO55m6P+gqiknz16qTQ+UJhgoGPrT0zGvfc=; b=l3ueh24QNQfRnM3e748umkBV73JSBBvGi2/ffABVKcetnicb6ndK2jssXE2vHlxDXT b0nfLE7is3rSuDV4IjqmhXIsGCPtzlDoAdpIFZyjrCD6eNbZtIzVrtfJukFT0It2Zr36 J9kVwkXAX5iy7Gq4C/O3ovUXkUnJiOeaf7HWEwqKb+Rf44LifbFlpXfBryWyMAdH7YVi VMLV9hk/TUlRyZwApd9rldh8laR2JiYv8lVT2CEWEpWJLsAEIyXWYf+Sd9Qf6FIL9eSK gseibI548o/RFPjgNU2fKXF5yW646F+mT8n4rjvDHnwuq0ToJ2FvA+ujOpMtdeNt9mEv X9Hw== X-Gm-Message-State: ANhLgQ3/KhST4Ik8FaB6RfyG3+Xk9F0C2s8HycL3UZW3aVfoghEVhEnF OP6oypHqNywHoDFQo8bC8TPPZw== X-Received: by 2002:a17:90a:d103:: with SMTP id l3mr752589pju.116.1584381456977; Mon, 16 Mar 2020 10:57:36 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id 5sm538423pfw.98.2020.03.16.10.57.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Mar 2020 10:57:36 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20200313134635.1.Icf54c533065306b02b880c46dfd401d8db34e213@changeid> References: <20200313134635.1.Icf54c533065306b02b880c46dfd401d8db34e213@changeid> Subject: Re: [PATCH 1/2] tty: serial: qcom_geni_serial: No need to stop tx/rx on UART shutdown From: Stephen Boyd Cc: mka@chromium.org, ryandcase@chromium.org, bjorn.andersson@linaro.org, akashast@codeaurora.org, skakit@codeaurora.org, rojay@codeaurora.org, mgautam@codeaurora.org, Douglas Anderson , Andy Gross , Doug Anderson , Girish Mahadevan , Jiri Slaby , Karthikeyan Ramasubramanian , Sagar Dharia , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org To: Douglas Anderson , gregkh@linuxfoundation.org Date: Mon, 16 Mar 2020 10:57:35 -0700 Message-ID: <158438145518.88485.3909168358047756949@swboyd.mtv.corp.google.com> User-Agent: alot/0.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Douglas Anderson (2020-03-13 13:46:51) > On a board using qcom_geni_serial I found that I could no longer > interact with kdb if I got a crash after the "agetty" running on the > same serial port was killed. This meant that various classes of > crashes that happened at reboot time were undebuggable. >=20 > Reading through the code, I couldn't figure out why qcom_geni_serial > felt the need to run so much code at port shutdown time. All we need > to do is disable the interrupt. >=20 > After I make this change then a hardcoded kgdb_breakpoint in some late > shutdown code now allows me to interact with the debugger. I also > could freely close / re-open the port without problems. >=20 > Fixes: c4f528795d1a ("tty: serial: msm_geni_serial: Add serial driver sup= port for GENI based QUP") > Signed-off-by: Douglas Anderson > --- Matches what is described in Documentation/driver-api/serial/driver.rst Reviewed-by: Stephen Boyd