Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1863786ioo; Mon, 23 May 2022 05:09:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX2cr54rTvbXIYVbl3kM/KT0xQ4lRmEzd3TmLE2ITFex4+J1YUB9QgOSAZmPb5qHPv2K7G X-Received: by 2002:a17:903:32c2:b0:162:6a4:e81 with SMTP id i2-20020a17090332c200b0016206a40e81mr11526299plr.129.1653307797578; Mon, 23 May 2022 05:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653307797; cv=none; d=google.com; s=arc-20160816; b=LHjwwi9F9/f5shj1COjVd7WnBMzjlJRAvQAa54SasFVe+enGZFnQxZPlR20+d5AgUW c+Q42Rc72ANulHezkwW3ujQFzfJVV30RL66BClDcLd7FT6Qjmki7ECxS6YJJaG/x/ZgK xUG7guhC+yJqwmM2C6W+tYaYf7gNf3VcnExVcHVdpXhDx6nwu7/Wq2FUUweO6EYzy89d 3iLFRFKtr9gNQUwkS9HSmsrxf3LYcUc2fXBMKbXlkx8vjWxTeyBJi1kkZ6CYDxi0kyIM 71lOS25Ui1R/fOiMbxa46vUK+N7QYg7TT4Hd9ZqC69dtneDjSNRW7P7u9pImWTY3WZPy 2SQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2FgMox2hGY+2xigInpmxSZCtIFZ/sygO2bPxJpvUaCM=; b=YtkgsYOlTPVFtNsBNNkiuxh3SuVgGBGoyxtkiP9qHLNP71shk40SWy5arRB0ORfrHO H/7p5Z8hwkaOlMxKA3AFpsbbxWzMeTBjkyUly67Vy2wrlh6FdayPHAnLX2/S+SYxVO1t /KQRO7TXcAE+PQU1M1tVYlmxqDa8GgCVV/plfGqPzXtS4JanSRor2GixuRS/ZkG6k9T6 m54bL6bkcl10gXMFsoUz+qZoUwoAlx19TjSkuHK9mzHw/nZf2bWa6xHB4xSO//CjDAbV Tn+YHUT9xqj+0s9vheGRnV+rSnTq5cFNwXzcrJgHdH/BRa6vYgdL5f49OShg2Zi6Iots Yckg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Sb61cDQj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y18-20020a056a00191200b004f784a59a59si14424957pfi.0.2022.05.23.05.09.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 05:09:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Sb61cDQj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EAB1E35DDA; Mon, 23 May 2022 05:09:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235204AbiEWMJt (ORCPT + 99 others); Mon, 23 May 2022 08:09:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235148AbiEWMJr (ORCPT ); Mon, 23 May 2022 08:09:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EB1E22BE5; Mon, 23 May 2022 05:09:46 -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 EA799B8109E; Mon, 23 May 2022 12:09:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA54AC385A9; Mon, 23 May 2022 12:09:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653307783; bh=p6rZ2zM1FC2efZwGYkFt1sj3JIxc0Nuo/u+VEVyj3TE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Sb61cDQjor/fhDAPSF3q0F2C208ENaXhk99lb3vfIBTeph/QlRiS9yMB7Bq20m1qV VpfNUOh7tpoYaBsGwl9+cJDqyOiRGk7ylIxaQ82ofK1DQK8nkWmH/nZb5HkLmbnMBf sK/JgsECwIZ/PMi3hTQTJG9PoddQLXSR+6rkRFRE= Date: Mon, 23 May 2022 14:09:39 +0200 From: Greg KH To: "Starke, Daniel" Cc: "linux-serial@vger.kernel.org" , "jirislaby@kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 1/9] tty: n_gsm: fix user open not possible at responder until initiator open Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Mon, May 23, 2022 at 08:45:06AM +0000, Starke, Daniel wrote: > > > +/** > > > + * gsm_dlci_wait_open - wait for channel open procedure > > > + * @dlci: DLCI to open > > > + * > > > + * Wait for a DLCI opening from the other side. Asynchronously wait until > > > + * we get a SABM and set off timers and the responses. > > > + */ > > > +static void gsm_dlci_wait_open(struct gsm_dlci *dlci) { > > > + switch (dlci->state) { > > > + case DLCI_CLOSED: > > > + case DLCI_CLOSING: > > > + dlci->state = DLCI_OPENING; > > > + break; > > > + default: > > > + break; > > > + } > > > +} > > > > The documentation for this function is odd, you are not waiting for > > anything. You are just changing the state. This makes no sense as-is, > > sorry. > > Thank you for your comment. I have prepared a new version. I will send it > after the other 8 patches have been commented. No, please fix up and resend the series, it is long gone from my review queue. thanks, greg k-h