Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6198778iob; Tue, 10 May 2022 12:37:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGz6Xu4U8gI35a5E0jBUNB5fpUTe2V9c97mBDkChwx2o8qEBiL4xH23Y/1oIB/HS59Vt9Z X-Received: by 2002:a17:903:1c5:b0:15e:a42b:7b4a with SMTP id e5-20020a17090301c500b0015ea42b7b4amr22023396plh.111.1652211454480; Tue, 10 May 2022 12:37:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652211454; cv=none; d=google.com; s=arc-20160816; b=bf/U6J18W3GoYKEfxB1vi/JUc6fsKVVVjjkPRX8S+p9VzqDCdt15tC5+6b76kZ28sj ikOKuhLN+nCdbyUf1mKW0Tax+dq4HgUyTBAh+SchcVEtLMFBVji8CechA1hlGGe8+wrt xe2LrB2S7t2kG+lG44Uwc3/VK6M/3cTGm0pP2nseAF4TlK78G9RLjomz06i91CXruIHh OHcE26o4B2SU9FQ+G27mDZfnNiwGTh3picrG+YWPzEAX9JKT5WQN3B4pb3Aq2Wo0yulW ZvSvmLcEPE3OdnAhQew1xTfLNCg4Umo7GYw7kDIHvH36MCppTN6OPu9hUibxjavV5LaZ Qk+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date; bh=2GX2hHIYr57EyeQ/twU1AZRmywrTTsIcHy2f9ldbqb0=; b=t5q6CN77BUXMI5VrBIvrf9pJm9jy37OtV5CLCHqMHi7DZar0RhbYowCL0Z7OPUJCDc eoaMYj/cXxkvWNNpibOYd4PtqSpcrhZTHXPLztQoa8y0X07VD/rF8Cqx17wVioVP2L4G xw36a00hy/P/u0CDVkyYckF1kZS1fyy9IlR9bt4tCcg6nxHcIUi2r255p2fW9m3wHj0t EpOLcK9RrN1ndCbwyFAI5bIdRtiZoydg3144suJbrI+1DlR23Kat4mFvxPg5W0g65/i/ +VM2NcfEQ7DS4sV+KWEXk0ZlupZIELdFjxJidbUf0U8Ghg6mnkk4qvbvyG7k9Hu4YlSa LCDA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y16-20020a170902b49000b0015f0a785c7esi3856055plr.341.2022.05.10.12.37.18; Tue, 10 May 2022 12:37:34 -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 S242838AbiEJOh7 (ORCPT + 99 others); Tue, 10 May 2022 10:37:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344440AbiEJOfG (ORCPT ); Tue, 10 May 2022 10:35:06 -0400 Received: from mail.pcs.gmbh (mail.pcs.gmbh [89.27.162.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B48342DD1F4 for ; Tue, 10 May 2022 06:54:02 -0700 (PDT) Received: from mail.csna.de (mail.csna.de [89.27.162.50]) by mail.pcs.gmbh with ESMTPA ; Tue, 10 May 2022 15:54:00 +0200 Received: from EXCHANGE2019.pcs.ditec.de (mail.pcs.com [89.27.162.5]) by mail.csna.de with ESMTPA ; Tue, 10 May 2022 15:53:59 +0200 Received: from EXCHANGE2019.pcs.ditec.de (192.168.8.214) by EXCHANGE2019.pcs.ditec.de (192.168.8.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 10 May 2022 15:54:00 +0200 Received: from lxtpfaff.pcs.ditec.de (192.168.9.96) by EXCHANGE2019.pcs.ditec.de (192.168.8.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22 via Frontend Transport; Tue, 10 May 2022 15:54:00 +0200 Date: Tue, 10 May 2022 15:54:00 +0200 From: Thomas Pfaff To: Greg Kroah-Hartman , Jiri Slaby CC: Thomas Gleixner , Subject: [PATCH] tty: Remove pointless synchronize_irq() in uart_port_shutdown() Message-ID: <4fe2d4a1-fc6a-c7fa-d884-5ebd01bebd3@pcs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-KSE-ServerInfo: EXCHANGE2019.pcs.ditec.de, 9 X-KSE-AntiSpam-Interceptor-Info: white sender email list X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 10.05.2022 10:11:00 X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Pfaff Calling synchronize_irq() after free_irq() is pointless, the context to the irq is already lost. It was noticed while creating the bugfix "genirq: Synchronize interrupt thread startup". Signed-off-by: Thomas Pfaff --- diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index 57840cf90388..b76e76e650ba 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c @@ -1704,12 +1704,6 @@ static void uart_port_shutdown(struct tty_port *port) */ if (uport) uport->ops->shutdown(uport); - - /* - * Ensure that the IRQ handler isn't running on another CPU. - */ - if (uport) - synchronize_irq(uport->irq); } static int uart_carrier_raised(struct tty_port *port)