Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2331704lqo; Mon, 20 May 2024 02:28:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUrv4siezPWPI2KQghOl3wvyPQcYt+Xr/pi0+w74jeyWMKaiXacEXG0GvOPaPhW7NHAZ+iSU3n6IqUv3KlYCJ5tprsWmKLwR3iHjuqrvw== X-Google-Smtp-Source: AGHT+IHvtmjfVtHo/hElxwiubR7fArD9zyGtu7MQvEkZqRAXsIV3OiISzhSZDQf7sUFpLLqwX3AY X-Received: by 2002:a17:90b:90:b0:2bd:5eea:6335 with SMTP id 98e67ed59e1d1-2bd6038c382mr7880746a91.7.1716197303438; Mon, 20 May 2024 02:28:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716197303; cv=pass; d=google.com; s=arc-20160816; b=V2MyU0FnkznfXhqTADZOegSXh00zhcEQ+7D2IQKxIuzY1WFmJKvJ3nKFllUl+w3Jm4 udcL3KYc0VwD4eJAaXOtbDP3w+63oTUYz68NHzZ7uTc57jvC/Zr1u2mqK5DmltujgzsL zO7G/PjQHW/fp45+PsRlWJDIzdeTSmVSIY35lsibVEcDKjbh473Lv0rpG8X3CgPPEV2t 7khG5gJ/BdNQdjoxhjOV8m8dQOQVnK8RkFE8dDU9DN+pCyU1VBN4Gq/zHnkNEuabuMOa m9b8wlmUm5O175JnbqgIsuh5M758yuQLCXvuq444zpn3Qdvu48Wm9k6IpgCnnYUMIe7P JBHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=Mfwr86nzSvKemN1pREcuwq8V38ByRLcg5V6wuQPimek=; fh=9m9cUyCufFSS8h6UHpaGd7f7zAGik4iX06J85Xd2c80=; b=a9vsS9bz5RqumC4Jd7Yn9phjabbF3l0SrSVA8mBB6rGSVJeMZvucSCuqiV56egWWPb A6xJT4tW2zty0m/gY1n3Kv9Rr7WrEk/2L3AUIc6+1Oc161opsXAQVVgyVWZB3MG3Ikd6 rhF4tnwFj66PwQXJjwuEf39sTSnXW+dF86LRnztDeK73Xs1vitWjrleCtmERyY9bxDWJ GH+a0lxxJuuZypcQhHQ+HHlIILae6Znt61EPpy6tG5wsuQmFyd9lOh3/LoeQYbuWyQl3 tp92j+LHzRdrF9aM6iwkEsbc37IX/pnm2cJmaMDXXedwIq/V2blpz333GM3mthSBcZDm U9Hw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="CDl0IY6/"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-183533-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183533-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bd6117024esi4029837a91.1.2024.05.20.02.28.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 02:28:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183533-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="CDl0IY6/"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-183533-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183533-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id AC49D281833 for ; Mon, 20 May 2024 09:28:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45A241CD32; Mon, 20 May 2024 09:28:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="CDl0IY6/" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3AEAB1C6A0; Mon, 20 May 2024 09:28:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716197297; cv=none; b=dtp1ftIw+nRe9C4+aQu59j52wxp/ff5e07A9lONnYoynzDvy/6B71+/vl0ItMwrH8CIamOkty+2phaQAQDdtKp94fOSNV/nHfBt7NR1+LMbAPc8OADAJZk/CyAsBFftLqGJiEQE22N7vM/kf9FHjxIuuUgJtRqsKOOQmtXxCfu8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716197297; c=relaxed/simple; bh=Bd9Ol7WDLyoUFzO18lNW2BQjTjzDoyfGTWntjvtcMeI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=o9ifCuyzfsO8II3GvxgcIcvxiGdDt4StVQsz/COJHs6YEZDVS9NxZA9G9KTScHXOjEf7nB3TC+csF1n3ieJwMkxNh0fYUkD2udx3LVa1Drn4PJ+RvPtyVMYqUZITbY605omIL5Ntqwywqkb0LsrqkZ1OyVxtoHstVyApiu5AbPQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=CDl0IY6/; arc=none smtp.client-ip=198.175.65.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716197296; x=1747733296; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Bd9Ol7WDLyoUFzO18lNW2BQjTjzDoyfGTWntjvtcMeI=; b=CDl0IY6/wepRUiBSXUC4nhXiGEqiKiLRSWHromQF9OZxRlvqmnLw6ekd L/ZR2Sz7VMBmWMD+EUJz9Xsrg+9lrezZhWMO/d5C0Ux5AsE6oiVye/yC9 WNSnHNMC+8eGhOVXnUOkrQl7Dos7liDm0TrUHQuuRNgcA2vLxzF7ZeCNf zzn22u9lYZNUpNGQZfPGrBcq1NDxl9jr65FqsP7YATaV5X4Ac9ngzZC+4 gQ6Kwp4DAUwkxngsIDYjt0Exit+0pxEMXokD4lDjggkuWx5szYuL1d6P+ dcEQNhvTiNzLuT4yUnAkgHWNgii+IoPlQHatr4HkpCkOpdZIFKTXQwJJK g==; X-CSE-ConnectionGUID: 1065IZf3RQWsg/MzLYRU6A== X-CSE-MsgGUID: jP39yEVwTR61kJ6V3XjRng== X-IronPort-AV: E=McAfee;i="6600,9927,11077"; a="12486100" X-IronPort-AV: E=Sophos;i="6.08,174,1712646000"; d="scan'208";a="12486100" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 02:28:16 -0700 X-CSE-ConnectionGUID: CFuHf44XSjqzuWfRSwz2xQ== X-CSE-MsgGUID: Le+yFCqcSlaLzh05vJmv1A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,174,1712646000"; d="scan'208";a="55710236" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 02:28:13 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1s8zJU-00000009GJ0-3MQl; Mon, 20 May 2024 12:28:12 +0300 Date: Mon, 20 May 2024 12:28:12 +0300 From: Andy Shevchenko To: Mark Brown Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 3/3] spi: gpio: Make num_chipselect 8-bit in the struct spi_gpio_platform_data Message-ID: References: <20240517194246.747427-1-andriy.shevchenko@linux.intel.com> <20240517194246.747427-4-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Fri, May 17, 2024 at 10:55:55PM +0100, Mark Brown wrote: > On Fri, May 17, 2024 at 10:42:03PM +0300, Andy Shevchenko wrote: > > There is no use for whole 16-bit for the number of chip select pins. > > Drop it to 8 bits. > > because...? To make the type stricter, but since there is no other benefits and this one likely won't help to catch the (incorrect) use of big numbers I think we don't need it. > It's the only field in the struct so it's not like it makes > any meaningful different to struct layout. -- With Best Regards, Andy Shevchenko