Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3504829rwa; Tue, 23 Aug 2022 06:00:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR53wlWTzE6bpCggSS/yTIo8hbp8VScxgWMGsYP99+D0zLTS98bw/OTJ6Moh+9HABuOXTQyw X-Received: by 2002:a17:90a:7f89:b0:1fa:ad33:7289 with SMTP id m9-20020a17090a7f8900b001faad337289mr3107217pjl.173.1661259622646; Tue, 23 Aug 2022 06:00:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661259622; cv=none; d=google.com; s=arc-20160816; b=LCqDIhi9j1y3Br8dUuEJKeXsIXIwnSKcfHrYOL7uFfLO3RHjFgcQ/bBRKVxYlt/lrP HyWbcFCe7qT3U41G8fhnh8OBCODby3TmcOBMT7uynSYLohnrfDYseayAH1vXAENcofEe y/+dRbzCkDeEtCW0PdAZIM0v7MQkbNU8P7N3WPDy27Wq/6PHywvW528qsZgh8tUdwUII uq1BqPQdP5tG0mug0v+D1+BYaLBG/9ecKdaisNfATjEwlEwHWmhtMOmvaX6Yziw7xCuP QOCmmHo3WxkAr/hAFf94j2N6UoCoZvjq1/E02Oik7bd2uFJIp9qtoZW0FNYhio2h1PLU XFMw== 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=50O2xo5D8dJgypX1j0N4+J6kLmpsTSdLXDyhbNc7ljc=; b=ZXPX5yz4JGRLjAad94/zHWohOPxtZLVOcLnG84d9v0h+BcbeUTOP5CkRdETCTsdNnj NwVfjGclzLBjtwldAh1KuhiCuZwCfyDRYCFBx0HaNVCWfO6xRdBmXBsmmiA9Efck1ypV CTTl65OC1xOqXga3KYRD/vRa+gtKRL/a1klnce5HXJ8MtZDZhusjlR0M+CB+mHPVuVmy OiWqcg+deNRUC7OjwKQVQEVRk6WYeJ+KaTc2B18C3GSzw/CxanntAldPz6bYrWHEjKxd eG4jd32crNDLrQ+ws6aJbXnJZwxvS8P4o4uWXHb3f31IgI6r+UWjFljmJzehF9Exmvb0 TBdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1RuCOaJq; 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 u7-20020a170902a60700b001614cd997a6si14429691plq.481.2022.08.23.06.00.11; Tue, 23 Aug 2022 06:00:22 -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=1RuCOaJq; 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 S1358037AbiHWLkc (ORCPT + 99 others); Tue, 23 Aug 2022 07:40:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241903AbiHWLet (ORCPT ); Tue, 23 Aug 2022 07:34:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8AE5C6E8B; Tue, 23 Aug 2022 02:27:14 -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 747FC61321; Tue, 23 Aug 2022 09:27:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64437C433D6; Tue, 23 Aug 2022 09:27:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661246832; bh=06WiK+Q++lIczkn7ND7xiLRX3czC6B9CkexQnaYSWdA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1RuCOaJqagkQ1QejaEk2YjpC7QwjavfshaZCAxzDVe3/YpJ/7RPiZxgC8/U3+isXn uGEC+hMvvXoJAewvQHXaaYRdeAn19K0wtTjmQDkUkC7X3UoIhmmrdJ3eofC1hSG0y5 BbdEwcokHjfWFuuQZeJs0oGQFEL0o3wIZ+eZLRvQ= 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.4 194/389] USB: serial: fix tty-port initialized comments Date: Tue, 23 Aug 2022 10:24:32 +0200 Message-Id: <20220823080123.729112581@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080115.331990024@linuxfoundation.org> References: <20220823080115.331990024@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 dc7a65b9ec98..2a2469b76cc5 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c @@ -254,7 +254,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 b2285d5a869d..628a75d1232a 100644 --- a/drivers/usb/serial/usb_wwan.c +++ b/drivers/usb/serial/usb_wwan.c @@ -435,7 +435,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