Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5553916rwr; Mon, 24 Apr 2023 06:04:51 -0700 (PDT) X-Google-Smtp-Source: AKy350Z0kfbkLhx3zjAGriQ3nYGk1p8ffV50hbjQxrlDKW5fYSO+XxEyujeozBKjz+Bv3BknWmrJ X-Received: by 2002:a67:ee01:0:b0:40e:5d46:d297 with SMTP id f1-20020a67ee01000000b0040e5d46d297mr5708590vsp.17.1682341491018; Mon, 24 Apr 2023 06:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682341491; cv=none; d=google.com; s=arc-20160816; b=u23sqDWeA7W25UiFdQpTTvtZG45ERrspl+a6HkoQzL1t2FlOHGsQ7rVfAgpIjQbzD3 SI2LvN99XnfCVJ9gX9VQkrcq2YiaxTwki/idZofLSENfSE0qWcd5IJVCuDRd6YFt/poA lOD9vihKFHpM1zbWBXGCceMwF5U51SVZW1usToGAfNvRAAouoOzOOj9nQYxzttn7kNgD J7gMz78gPeWDPzb6sZF5uL8FzZySWf5b/ctqAlE167akyqc0B477hXT90J7UdikXznzo M4JsKXXr/cf4Q0zrePpESbZXh/PkkoGD3co/i7G89RL+PE1rONZpcBpdOO8I2yZEnXnO WSUQ== 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=0xo/wZKnTB1JRpYayC7lrqS8zQxvBw4xsF67+ZJ3bI8=; b=KWREDRB74WTDjhXohGJMNq/S8zWHjuDfJ26NTtg5x9WUwmH/HmVQVEnjPEb+ZBuW5t aBLg+mlfWKjcrTKNepsZf04ARauFaTOq/rUivM2qe+91xT0WgPDqZU1fq6xoGJZMENxe A381OMZOuh/JxFSUKhC7tU2PWnzcqwvTdY7oWOimBBCJGhvUjCERSWzxDXUahoer+z0w mEaMceXgJyxFX2rusoGyT6ytjIsp//unylbqctAtddt4vfGWUmnHpXAVep8X7j53bRwN kaN/pDW52gKKSi7Ox1TtD1wT9GykV4J2t2IboNJgkNPTyWiHV7MBuckfeJgpBFU3GFiJ mEEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UbwXbXHi; 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 k13-20020a0561023f0d00b0042e52fdb04csi1988895vsv.259.2023.04.24.06.04.14; Mon, 24 Apr 2023 06:04:50 -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=UbwXbXHi; 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 S231481AbjDXMy4 (ORCPT + 99 others); Mon, 24 Apr 2023 08:54:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231717AbjDXMym (ORCPT ); Mon, 24 Apr 2023 08:54:42 -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 C09A9DB; Mon, 24 Apr 2023 05:54:41 -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 5C2A561F45; Mon, 24 Apr 2023 12:54:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C11AC433D2; Mon, 24 Apr 2023 12:54:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1682340880; bh=kjIOJqt6fDyIyHZ3y0G83AnvzhtK3rSWAYbassPvJf8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UbwXbXHiYRuiBQRy0DWoQMrt5zHCF37csuY/HY2uIaWlnzCG3lMHEGJ4uy6cruSUq XIbEO55bMzI47Cg2YkI5jDpXz2DC2GSxoTJlnEankQ77n3lLzLDVARznEwVUQXp0h/ 8v7ELqUGWXvzv6aFoc9KS3edrIFEXZvditIfQ5kY= Date: Mon, 24 Apr 2023 14:54:38 +0200 From: Greg KH To: "Starke, Daniel" Cc: "linux-serial@vger.kernel.org" , "jirislaby@kernel.org" , "ilpo.jarvinen@linux.intel.com" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 1/8] tty: n_gsm: add restart parameter to DLC specific ioctl config Message-ID: <2023042459-humbly-confusing-9721@gregkh> References: <20230424075251.5216-1-daniel.starke@siemens.com> <2023042438-whole-cannot-1945@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 On Mon, Apr 24, 2023 at 11:03:26AM +0000, Starke, Daniel wrote: > > > --- a/include/uapi/linux/gsmmux.h > > > +++ b/include/uapi/linux/gsmmux.h > > > @@ -58,7 +58,8 @@ struct gsm_dlci_config { > > > __u32 priority; /* Priority (0 for default value) */ > > > __u32 i; /* Frame type (1 = UIH, 2 = UI) */ > > > __u32 k; /* Window size (0 for default value) */ > > > - __u32 reserved[8]; /* For future use, must be initialized to zero */ > > > + __u32 restart; /* Force DLCI channel reset? */ > > > > Why are you using a full 32 bits for just 1 bit of data here? Why not > > use a bitfield? > > The ioctrl guide states: > Bitfields and enums generally work as one would expect them to, > but some properties of them are implementation-defined, so it is better > to avoid them completely in ioctl interfaces. > > Therefore, I tried to avoid them here. Then use a u8? > > And what happened to the request to turn the documentation for this > > structure into proper kerneldoc format? > > That applied to patch 2/8 and is unrelated to this patch. Another patch > will need to fix this. > > Link: https://lore.kernel.org/all/20230424075251.5216-2-daniel.starke@siemens.com/ It's kind of related in that the format is not right :) As it's a few weeks before I am allowed to even apply this, please rework the series a bit. thanks, greg k-h