Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3471196rwa; Tue, 23 Aug 2022 05:25:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR7SipLhH6PMYySVKBd+LJdFPfo3z3de7EpTeoOhq39MSznti+KVhh5BSluiw/IMNYQXcIW5 X-Received: by 2002:a17:906:ef8b:b0:730:e14f:d762 with SMTP id ze11-20020a170906ef8b00b00730e14fd762mr16397896ejb.519.1661257546700; Tue, 23 Aug 2022 05:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661257546; cv=none; d=google.com; s=arc-20160816; b=Sk70RFrTykadHAZXLnkVuUgoOD9HmNF6UdhabmiWJsK1pSkU9rLR6rsgBHL3appJTY hjKpQuPKAD68sG2p3P2hvtoTuDO2gP7yh9gg7seqa/Arggh3cfxPrkii8zBbEX/kWpyR pGaKRCUEOjXjwHFU6Z7BSRaWRl/qZWKj7U7dEKMMiMcrUJ6hqcSdR8xSj7qvJLWUigp7 Hddat7E8fCybA0fHNUiX1TpmmUw5KWE7Wz3FrAVQwg64imikCHya+Q3oPimxniXAs3Mc XxuYHzfJADX10UCMJbwwWpY0tloofK9Ll6D2QNf1KT4rZ7x/CK3VbEdEwL8peo4zmCiH Mm7Q== 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=smiLYBP/YXoaZGyKLVsl8ico2ofBc9LYhsLaTRXcSMA=; b=icPV6sRiVvQD1/u19q6B4DpPVzJSwvElZITldokY/PRBxD63xO0a7/z5EwmeWGChPt CqTxglRXVx9GUQJzNf2wCf4TgRJiK1yWkbuObCtp4/gwv6y2n31agKz/tB7uVcflrrNn iIfVlrkHxW9SaWoRMZAbDeyRbFHB5vygbYtkLLWVnZ6oxw6C30yDS1bvYy9iNLmdU+Hz bCBA9qoH/JmAQPZCaPSpqeSN49Z21b6EJNcDhJMtwSlpQkTNY3prHeITnytmKaJrxK62 dc26v7T+iKrOhdb7zCIxYs8ZHEf7y9DA2/VpRki6nY9/C+AQghbH5TQpkbc6IF5vYKto yr8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Bev3oys3; 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 sa14-20020a1709076d0e00b007316843d58bsi11762827ejc.925.2022.08.23.05.25.21; Tue, 23 Aug 2022 05:25:46 -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=Bev3oys3; 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 S1356137AbiHWKqf (ORCPT + 99 others); Tue, 23 Aug 2022 06:46:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355265AbiHWKkJ (ORCPT ); Tue, 23 Aug 2022 06:40:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46ACFA74C6; Tue, 23 Aug 2022 02:08:05 -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 dfw.source.kernel.org (Postfix) with ESMTPS id B622C615A0; Tue, 23 Aug 2022 09:08:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6E35C433C1; Tue, 23 Aug 2022 09:08:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661245684; bh=ej/8fqZj7Vg0PrkSVCiLU8mYWjPJPW4/aaRQtdEs9uE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bev3oys3W3FyI8bJClIL9obokzcKkKl8PCcxPybUN3OtNGBRCt8GdSJyhuyCJnWZ0 BJDxHlxqlwNsoClIBs78uR567oJPz6C8fOk0BkRI/pnGocm71NhWVqRKKcpG6sTwhf pjF+KOpi1/o/r+VtpccoGtZUuvSIF0PkIi25fdlA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johan Hovold , Sasha Levin Subject: [PATCH 4.19 139/287] USB: serial: fix tty-port initialized comments Date: Tue, 23 Aug 2022 10:25:08 +0200 Message-Id: <20220823080105.170528399@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080100.268827165@linuxfoundation.org> References: <20220823080100.268827165@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 a43263a0edd8..891e52bc5002 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c @@ -757,7 +757,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 b1f0aa12ba39..eb4f20651186 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c @@ -251,7 +251,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 997ff88ec04b..2ebf0842fa43 100644 --- a/drivers/usb/serial/usb_wwan.c +++ b/drivers/usb/serial/usb_wwan.c @@ -463,7 +463,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