Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3091746rwb; Mon, 15 Aug 2022 17:55:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ROmdYaXjLE7cl3H2Ru08Lz8tTNF53FbYB9Lj7XG1++1Dkos0UlDad3urKK3Wd9O57fSd1 X-Received: by 2002:aa7:c1d0:0:b0:43c:f89f:a134 with SMTP id d16-20020aa7c1d0000000b0043cf89fa134mr16438879edp.4.1660611341683; Mon, 15 Aug 2022 17:55:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611341; cv=none; d=google.com; s=arc-20160816; b=RRoAOpSwuZPubhBpShP325tZ6zo9j8SulHQwEemvr2ht1zGDwyJqzkn20jLAMnC05F mcnIrx0QadCNLy19Umy5Av+E9BfwGBWgJb4JXwC3qTKn6X9LWYidRVAr083Zolljg6Zh 3nEGwl4DKqMJM9XyEY+juGbxb6umU67Iejo+CK8EBwUGAWUR8rWTzRZP3I5jAN8IUYau nB9WnCcbzLDdjuFccdNWogBE6Ho+v2vZHels+Q/gKvMMJcQDj61kc8pPFtyyISiNzSWO u16b7tHX9VY5pwmsLlf9Rqddz0x0spKbGGGxZ2dtL1x1Qt22UYkCEHXI3okzw0+WHPt0 90Cw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WgetT4FXgI2FkcmLfG0znQhivFc6GBOoq1zSD5QbIJg=; b=BzPtZNwNzAelXmcolFozrfxnOA6Pw4q93tgbBKtTBPPhx0Q9y5gPXhFIQdEFByw0ds RSjG9LZZaNwziSu5yF46qUnSfEHJxBFt2UrNFW6xT6Gza70fUhudzzOTO0sMkVu6AvLC rCN/X6Vfh73cNzz5V5ifJ6zEYOtSWYaaFXwpmlD2cuDYSvUBK9Z9DxZIsGqJTOoEEo+U LNff4l9GxgvAlDGJ9T26zflVpKv2YFKFlFZNK+oCYZmyQg2E/2S/mPexcG0IzLFpvYBs 6FyY2muJ+qor/pTOZDXt1rljjif8rXmQMMBt/Fpg+WyMxurmZ/fZoyyd5gr1StcqkiFb yhlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HhbQli6j; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh34-20020a1709076ea200b007317ad1f9a4si10041701ejc.310.2022.08.15.17.55.15; Mon, 15 Aug 2022 17:55:41 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HhbQli6j; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345376AbiHPAcb (ORCPT + 99 others); Mon, 15 Aug 2022 20:32:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346372AbiHPAaf (ORCPT ); Mon, 15 Aug 2022 20:30:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB9FB37F8F; Mon, 15 Aug 2022 13:35:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3F468B80EB1; Mon, 15 Aug 2022 20:35:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8795AC433D6; Mon, 15 Aug 2022 20:35:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595711; bh=l1DpSV+JZmB6Uto3+hA8ft5nZq/mq6tTv8aWI1ilAHQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HhbQli6j7QwsG9WJzNJddfb/Aq+l04CxIXC2iNsZa5B4s9OTebuO3depz/+vtpAL7 BJ34kJFNc0cLekq/lI8eoXlkxu7hrgWNXhwLaCHTUey1xkihszBt1FITyLJdICRCaA JYXU7ZX/8avtpmVLlN9BfOvB4m9TcdAtsuSYcag0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johan Hovold , Sasha Levin Subject: [PATCH 5.19 0850/1157] USB: serial: fix tty-port initialized comments Date: Mon, 15 Aug 2022 20:03:26 +0200 Message-Id: <20220815180513.486785921@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: Johan Hovold [ Upstream commit 688ee1d1785c1359f9040f615dd8e6054962bce2 ] Fix up the tty-port initialized comments which got truncated and obfuscated when replacing the old ASYNCB_INITIALIZED flag. Fixes: d41861ca19c9 ("tty: Replace ASYNC_INITIALIZED bit and update atomically") Reviewed-by: Greg Kroah-Hartman Signed-off-by: Johan Hovold Signed-off-by: Sasha Levin --- drivers/usb/serial/sierra.c | 3 ++- drivers/usb/serial/usb-serial.c | 2 +- drivers/usb/serial/usb_wwan.c | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index 9d56138133a9..ef6a2891f290 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c @@ -737,7 +737,8 @@ static void sierra_close(struct usb_serial_port *port) /* * Need to take susp_lock to make sure port is not already being - * resumed, but no need to hold it due to initialized + * resumed, but no need to hold it due to the tty-port initialized + * flag. */ spin_lock_irq(&intfdata->susp_lock); if (--intfdata->open_ports == 0) diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 24101bd7fcad..e35bea2235c1 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c @@ -295,7 +295,7 @@ static int serial_open(struct tty_struct *tty, struct file *filp) * * Shut down a USB serial port. Serialized against activate by the * tport mutex and kept to matching open/close pairs - * of calls by the initialized flag. + * of calls by the tty-port initialized flag. * * Not called if tty is console. */ diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c index dab38b63eaf7..cc81ab7ef4da 100644 --- a/drivers/usb/serial/usb_wwan.c +++ b/drivers/usb/serial/usb_wwan.c @@ -388,7 +388,8 @@ void usb_wwan_close(struct usb_serial_port *port) /* * Need to take susp_lock to make sure port is not already being - * resumed, but no need to hold it due to initialized + * resumed, but no need to hold it due to the tty-port initialized + * flag. */ spin_lock_irq(&intfdata->susp_lock); if (--intfdata->open_ports == 0) -- 2.35.1