Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1734766ioo; Mon, 23 May 2022 01:54:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwY97m45J13R2jkPe+nVE7IoR8FhT3lfBI5PG9XEWdl7WUJUxGTyPhu1zVAQI1SbZcPFPfn X-Received: by 2002:a17:90a:9109:b0:1cb:a814:8947 with SMTP id k9-20020a17090a910900b001cba8148947mr25595219pjo.52.1653296081421; Mon, 23 May 2022 01:54:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653296081; cv=pass; d=google.com; s=arc-20160816; b=gr27rcvOm/qWFCMW6ZZTZTikavs5h4YwXVw+PqGVGpv19UgLSL+qkojZ8Zy/qeH/s9 phW9ChxZWPcFtI3JYEjij+OoOjGjhmFfBfc6TWPp4Jss4N8lhzXvVyUfAYsgbKBAtsL9 zuAMQhbyKdndMttdfYDGEc/QA6qIM7CC50Op9EbVR/hrX5uUuHC5dOum976lQbDParJ6 /DXG4oDzY5HgWRoryBAskYumdBhTAhOGOgTW/+WtSOy6Po18mP0M/a9CGaGXPQ9MJRDq IPcqSDGyaoafMsthLlxDF4ho+4cJ30OpPpzDPdus0n7BT426jdN1Yvy3CASnyBHlvvuN JPkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :document_confidentiality:msip_labels:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :cc:to:from:dkim-signature; bh=u8NaZfv9g1t1SM+/N1F3hLZ71WT31oQu7+zPIgj35PQ=; b=OuhG0onphbs8re6XkA2UMWKdhsIvybK94j8nal1XsZDuD+H2iLQlaUz2f+hTOvBbq6 FoCjx00/5yukNSuK8riZjP9j6S109moKNMs87wyE78LQSLxf6428WB312Ttwp4ROxUjp xIL7cuXfPBVtNcwkIkCHfmhl5xqltP5ACdtjnoQS+ecE85TdCur+AZitUR5LSWq7tacZ PqKhzklCl1GOyVTOqcIi/GE6i+1JWkTraF5viKkgcncbalEV/8BINLRETivqHpxohNpV LFGNuQPsczxVYKqyhRXABuB4kwG/wodRa6UFhBRCkfJCK+EgXr7CsMUkvhQSKDg9ziwH 7oqQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=elaHU8nk; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); 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=siemens.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id cq14-20020a056a00330e00b0050e0a5f4d8esi4194723pfb.317.2022.05.23.01.54.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 01:54:41 -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=@siemens.com header.s=selector2 header.b=elaHU8nk; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); 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=siemens.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AABA52195; Mon, 23 May 2022 01:45:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232073AbiEWIp1 (ORCPT + 99 others); Mon, 23 May 2022 04:45:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232027AbiEWIpT (ORCPT ); Mon, 23 May 2022 04:45:19 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60080.outbound.protection.outlook.com [40.107.6.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBA5B3B6; Mon, 23 May 2022 01:45:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UpJ6TvVp6G7QnglLWnBpoHVqMOKEg6thgeXfKmi3m0SlKSIk09lRTGvbkVEGqu4q6CuEIGyQW+9RHCMaEceiaG7PRO96sFbYmE/kGRXJ0eMmsKk6Lad2wvzMx+/rZCWOx5t7R49vMmxumyYeMo17/NNMs6Wt+8LO5MET8lmofkkGl6GYaUo1hJ1LQvZbOu53DKx39K+Yrqv4kbZX7IKU/T6kanoGnNRbo8n92PbOLdCYG4WYEP2M0+An1UMKP+BmQ6XnwUs7qe1czLNSk+SEwO9YWR7aHv90t9iUAwFbHWI7uAOCyxxSfPy8/zLuBmU9QgvwKW5xAC4nYRLwGrDxAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=u8NaZfv9g1t1SM+/N1F3hLZ71WT31oQu7+zPIgj35PQ=; b=bBbgSsqg7c+h2w4VsvdQDvxY9K2ELVnyDTO5UQX5WdtfRLzp/OuZRehsW/MDD3ZaUnndFO8Q5TpX3/0GhganMuuof7fATgbDfdRrYbMhvbjtoO2W/3XLhl11Qbxem90586dfEJHbitT8UIwcELdUuav6hi+sp+pTk5tZerpI5mWSYzSEBfBIxykgqJH+aSqejaRtstX662nEFufzCQ9u2gJjpK9GbnzqjQLrSgxMn7FQrsquBEQtojw2AFdYE8OXo7cq3s+/J8tnsGCegRPvHhb/N6AoOFbrOiVnfBESss9wwjjISor2wXIvvdGkyBVZnxidH2+7Ob9dGrPAwVTyfg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u8NaZfv9g1t1SM+/N1F3hLZ71WT31oQu7+zPIgj35PQ=; b=elaHU8nke54MIWmJn3gbMZHgk7lLFL2i5d5pLLxTHlk5dzOLjNC3nghgVcYu447NKzCoyMioo4l5mHn1EIydOtWc4likdD4PbmHorRUh7LUf/TwF1jJR0BxHBM2tNCHoUiv4dBH9IU0Uaufnt3/sHD1Ub4SNdZqIaIlEBp7D5nJX7DyuSuDz4NyNX25vAKET8zGwpiEE8sAOd07YGubLqDo722Snxqxqwt0J+tRbVaaX2fRNQojHk88n0doFvOybkOIRX62qry3xJHUEps62CJYRMVV2MLvDcz2nwfhiSRsCIYYbsvbhjC8CrvrDikd0ZihyJjbW+OVqxjMDoIjS4Q== Received: from DB9PR10MB5881.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:395::21) by AM5PR10MB1746.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:206:1f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.16; Mon, 23 May 2022 08:45:06 +0000 Received: from DB9PR10MB5881.EURPRD10.PROD.OUTLOOK.COM ([fe80::7479:206e:9e85:df85]) by DB9PR10MB5881.EURPRD10.PROD.OUTLOOK.COM ([fe80::7479:206e:9e85:df85%4]) with mapi id 15.20.5273.022; Mon, 23 May 2022 08:45:06 +0000 From: "Starke, Daniel" To: Greg KH 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 Thread-Topic: [PATCH v2 1/9] tty: n_gsm: fix user open not possible at responder until initiator open Thread-Index: AdhugKHBS/ZYBUgVSK6qwAv9Jt72TQ== Date: Mon, 23 May 2022 08:45:06 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_a59b6cd5-d141-4a33-8bf1-0ca04484304f_Enabled=true; MSIP_Label_a59b6cd5-d141-4a33-8bf1-0ca04484304f_SetDate=2022-05-23T08:45:04Z; MSIP_Label_a59b6cd5-d141-4a33-8bf1-0ca04484304f_Method=Privileged; MSIP_Label_a59b6cd5-d141-4a33-8bf1-0ca04484304f_Name=restricted-default; MSIP_Label_a59b6cd5-d141-4a33-8bf1-0ca04484304f_SiteId=38ae3bcd-9579-4fd4-adda-b42e1495d55a; MSIP_Label_a59b6cd5-d141-4a33-8bf1-0ca04484304f_ActionId=ff95e4bf-bd7d-49f4-819c-0307094518f2; MSIP_Label_a59b6cd5-d141-4a33-8bf1-0ca04484304f_ContentBits=0 document_confidentiality: Restricted authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 67236463-9e6d-475b-eed5-08da3c988948 x-ms-traffictypediagnostic: AM5PR10MB1746:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yotImCHIDHoMCRob2cGwzAqaJ6po8HQiH0tjHpFEMEX5KtNCVJnaEDThwiaOpq9yWZFPyiTkeW9LR2RTs2wWUBTx+RY5A3QxBftx+bniCAj9gk5HUzM8aVw3wBSPPoI5iArAcXnTqW4fWKkJydwinhSEsJ3M4UdYRsOI6zCR4LyKaztNt5mc3n6EDzfneXAqlOlw52d5OmV6Gh58qkvjuWRl0wMyicGlEvAtmA/HweahXf4uoE01yXfkVqBfOmcuNQa09jC6TAKhRp2g39DPp4ulkhbGQyWIX2jB1ExYBBvuasg9y29nTVKckq+8mFlLGPANYwUwij9+4SRHcT7/AiHHjEJ4v0x4oNMEvL8rWU1JJ+cJ7KOBssWKi2haqCGG63SmsbkYX/w5YMPFdTR3VOBTooK4FFS7oi7DH59b/OrYD7Zq3kX2FqzX38P+W6GPIJxCfi06JrmDNOgfkH5CQutaG/MI2mLUqsGOn2glblxpvvcLLvU50ZhlQ4q8ta4eWdiBlV4ThFBDWywuKB+yribi6EmFyUw7ngR2fLGryRLwifc9bLk81pVrcgCt/X+UcvW91YiV4yj9kWYb0XFDiBGpsrkJM4e74ZrMq3/ksNzbsahN3NLXpyohMvunenHFCVgE+Seb8II3NS5caV9vNQVaKSdojfqzJx3bG8+F4pyleZjXdvQNdS/Mi4jvNlDCHkwfAtw5z/CQlM6ZiN8+pA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR10MB5881.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(5660300002)(4744005)(316002)(55016003)(122000001)(8936002)(82960400001)(7696005)(52536014)(508600001)(8676002)(33656002)(4326008)(83380400001)(55236004)(64756008)(86362001)(186003)(66556008)(54906003)(71200400001)(38070700005)(38100700002)(26005)(6916009)(66946007)(66476007)(6506007)(76116006)(9686003)(2906002)(66446008);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?oX5XAkeA83qAmhYaatNAXCNW2DUMvv5dpai3pj3hzSLRpObzbdOWoHOnT60q?= =?us-ascii?Q?E+u9WvykZU5vFvb0+WtLt3p4fF5Fdknk1DKHj2RE2IntQVlo3QjrSzUD9ysz?= =?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5nqXKKUsQL6vstsBwOBVWCXT0r?= =?us-ascii?Q?sxn+dd6aV0E0P7TJOLKeK75SCN+5GEQg3PWfIyoa7gz/xR9g4GX4/OVM9JfM?= =?us-ascii?Q?3xN4zGihp5I4M7iZMw0AGyfmc7nE0aRk+fIwEKJ+HhR0UxQP2Fad+b8Njls6?= =?us-ascii?Q?huq23r2u3eJ2p4M7aMMbkAJLMLjvWvwjlo7vcKqx6+7VhcMmXRsqfQXf81Pp?= =?us-ascii?Q?fwm2bpPvJAnAoOkd1Apmjos3YR3AbK24RintXBNzrLs6DJSD6Hed6rH5LMC2?= =?us-ascii?Q?AuUA4hz8D8/864gdbNszNu7Vhsvmh3LmKcaJGT07W2leuIWTJH6QXjq0ZCKj?= =?us-ascii?Q?aqOXPmHKAP5kPR3cCb/Mw9xQDpjJiwmCw40yMbFFc2szTg4Je6js6S/VyT7j?= =?us-ascii?Q?OwTcdaY46LH1Ltb0VBzhLqPYLnYSCyVTHGU6S3lFFCxgbv1+28LrB72iMWFA?= =?us-ascii?Q?dD6dZLC8aGJ1U0fOTlNzpJY9V5N+2iGz0K/UMGk9EPuUkzt6YhBYz19wCHjZ?= =?us-ascii?Q?u53oaL168y00hc8xyBXHcMo6PAFUkXjcESVfFb8l5LFMo5OXOmnP/bWE1XyY?= =?us-ascii?Q?wFwakV0ZYocVIIr8R6B5NqijMy7cTiB1OI/dzfYXPw5tn4xq46+TjkZp5cOV?= =?us-ascii?Q?1MM3BxTJwSLOBeD6f8YWAGExXsX3AWIyTkK6DYAPD6kQtD9HKKSunNtqqhkO?= =?us-ascii?Q?6CGujt/xJPQIOUU6uDttf1/RLzhLlk+sdKnCzGGOqXFOQT+bC6+1Ku5FTeI+?= =?us-ascii?Q?W6+0vLuTcD90b+3OBdLR0VTlvV63kmY=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DB9PR10MB5881.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 67236463-9e6d-475b-eed5-08da3c988948 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2022 08:45:06.1987 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 0Xtje3hVuYFMGHOjv1YjROQr+vYp9sph8Sg9WyKHQHMDp8ClJk7sDEAv1S+9Lhm5rkL8vpoBT7CiKLj0PVDiZa+xMjVtLaWaWN6wUGWo2pg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR10MB1746 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,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=no 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 > > +/** > > + * gsm_dlci_wait_open - wait for channel open procedure > > + * @dlci: DLCI to open > > + * > > + * Wait for a DLCI opening from the other side. Asynchronously wait un= til > > + * 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 =3D DLCI_OPENING; > > + break; > > + default: > > + break; > > + } > > +} >=20 > 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. Best regards, Daniel Starke