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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 810FDC678DB for ; Tue, 7 Mar 2023 18:46:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231300AbjCGSqe (ORCPT ); Tue, 7 Mar 2023 13:46:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233227AbjCGSqA (ORCPT ); Tue, 7 Mar 2023 13:46:00 -0500 Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6ABEAF743 for ; Tue, 7 Mar 2023 10:35:28 -0800 (PST) Received: by mail-il1-x12b.google.com with SMTP id i4so8949001ils.1 for ; Tue, 07 Mar 2023 10:35:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1678214082; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=8RhnCKRU3FrFy7owXRxJ4GDyF7xXRyM56M4QHIhHLjc=; b=kORW+pIlMebspso2CmKvb21/4EqcQ8FIywmJ6n2OsiGtF9JQJZfIrSK27w18Y2LbKd mlqKKcA3pIoJ70sfqa9x8lfSHzGwjs6SqxIzgUlgN7XYNAXNfvBMJKFFS2ZKP6g/2FFM f8MMJ/XDDlw95a2zcZraK7Av6SQkPt3YHSYaY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678214082; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8RhnCKRU3FrFy7owXRxJ4GDyF7xXRyM56M4QHIhHLjc=; b=CpgOO1bd5phi9I8hp3BTEORunfh8pnx9fyBLQz4XW5hKHQfITf8T3AxsiieZtqU+5q BDsCdNMefs7LtJ8ImFM6qezYtmMzOxuJxYUDwvvWjhjVHO0yuDkgfUwFn09knQtMfswv k0few+CrA5hbzqA4wCYP1X7Yp6K2ppjRinatWBoGQvTXqb369MDP2EphkGnYMamq5jcQ wzUAud3nrJmViggw7C29f7JYKPJcm2xDlmcJBEUqScWG/eDSZ5CTQFXvCZanlIwDvrVF Yj2eopamSk6Ff0UpNPzxziWUeNRCrppJC0tnkDTieuIOK/OkN28PPUVDKV5gwxt6HAeP 9RKQ== X-Gm-Message-State: AO0yUKVQIDn4IQGBNPw7eF1bHUFF9ms2uzfnB2PkPJLcLAYeJkvS/i9z cO2DngPWtQimOwnYOd88owuWSIW78CzGaatpn8k= X-Google-Smtp-Source: AK7set+Pq1g3mJndUWuap25wMt4skhYaIgVOvVpRlzBK2Ro1ybmsV1ld6AleKVbcjku8jHAR22hM1Q== X-Received: by 2002:a92:8e0d:0:b0:318:d56e:9efa with SMTP id c13-20020a928e0d000000b00318d56e9efamr8869262ild.24.1678214082419; Tue, 07 Mar 2023 10:34:42 -0800 (PST) Received: from mail-il1-f173.google.com (mail-il1-f173.google.com. [209.85.166.173]) by smtp.gmail.com with ESMTPSA id x25-20020a02ac99000000b003b443977af0sm4341684jan.7.2023.03.07.10.34.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Mar 2023 10:34:41 -0800 (PST) Received: by mail-il1-f173.google.com with SMTP id k9so8416029ilu.13 for ; Tue, 07 Mar 2023 10:34:41 -0800 (PST) X-Received: by 2002:a05:6e02:1241:b0:316:f93f:6f83 with SMTP id j1-20020a056e02124100b00316f93f6f83mr7914002ilq.6.1678214081396; Tue, 07 Mar 2023 10:34:41 -0800 (PST) MIME-Version: 1.0 References: <20230307164405.14218-1-johan+linaro@kernel.org> <20230307164405.14218-2-johan+linaro@kernel.org> In-Reply-To: <20230307164405.14218-2-johan+linaro@kernel.org> From: Doug Anderson Date: Tue, 7 Mar 2023 10:34:29 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/4] serial: qcom-geni: fix console shutdown hang To: Johan Hovold Cc: Greg Kroah-Hartman , Bjorn Andersson , Andy Gross , Konrad Dybcio , Jiri Slaby , Bartosz Golaszewski , Daniel Thompson , linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Mar 7, 2023 at 8:43=E2=80=AFAM Johan Hovold wrote: > > A recent commit added back the calls top stop tx and rx to shutdown() > which had previously been removed by commit e83766334f96 ("tty: serial: > qcom_geni_serial: No need to stop tx/rx on UART shutdown") in order to > be able to use kgdb after stopping the getty. > > Not only did this again break kgdb, but it also broke serial consoles > more generally by hanging TX when stopping the getty during reboot. > > The underlying problem has been there since the driver was first merged > and fixing it is going to be a bit involved so simply stop calling the > broken stop functions during shutdown for consoles for now. > > Fixes: d8aca2f96813 ("tty: serial: qcom-geni-serial: stop operations in p= rogress at shutdown") > Cc: Bartosz Golaszewski > Signed-off-by: Johan Hovold > --- > drivers/tty/serial/qcom_geni_serial.c | 4 ++++ > 1 file changed, 4 insertions(+) I'm fine with either this change or my change [1] landing. Reviewed-by: Douglas Anderson [1] https://lore.kernel.org/r/20230307073155.1.Iaab0159b8d268060a0e131ebb27= 125af4750ef99@changeid