Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp562245lqr; Wed, 5 Jun 2024 14:09:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkmN2n8O8dVB5GqvehsLNQiXZ3qr5MZMYiGX9q6SH1mjxyBNSAyKviBYgQdi0j8iY4hPIivl8JmnDWr6FMe3oGL+k0g/B8AcliBW8xUA== X-Google-Smtp-Source: AGHT+IEcLIpKRbmk8yFbPdRPeOKUC5jhjyNs+oQHKrEBWSfLMWNP9XgRznT3MhLKdFDZHLQ5ZFwA X-Received: by 2002:a05:6358:88b:b0:199:47ab:d067 with SMTP id e5c5f4694b2df-19c6ca198c3mr443339155d.27.1717621777135; Wed, 05 Jun 2024 14:09:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717621777; cv=pass; d=google.com; s=arc-20160816; b=cEIm5JXLy3o1FbqJcNzM84lPEfzuyK/Lfnw5f4ggPlxRwKjtnr+8c5N2+mbjULHNA6 NlBOskLE3Kp5clDoDLUPDtHc29oCcIugrUN40emcX7waKJ+JACXYglA42u4WpSt4yu/M kXqO+Tb491jmIZXtBvMwpBzpxO0Xl6ZowuX2J/UnAt5RW6ae6njeKebasloH8nbNnCvA wTmG+xam32VjW9E8fepq3fe1OMAtL1htvcuQ3CBHd5PE4vNBD28VCLG9zc5zebZCiOid rlqxrk97L9GSDP973MfN1G2wCG8U0sxIWqRX23ONXdemMdgoQCsrzDnumFp+PyL6V9RD AziQ== 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=uVkHs25vilo3z+pp3Ri0VYtvZiYu2sVXZ8eCs70THnA=; fh=9m9cUyCufFSS8h6UHpaGd7f7zAGik4iX06J85Xd2c80=; b=WFIE6tdm42d7iY8JDD1IoQOgmF11uiBBmejlJf6Vit8/eCYnxAPnneQfiMX2EosG9Q q6CaML8Lj9YwLg1Z6IZFp6HiBs2yrn235PwlxalLAUv6/8LGy5wS0c9Dn6XCGfkirCDc noZ2EWhoUSgiLmgUlK3nOA0WfyjLLqlMI1aG+R4c+/zIabXGoQEwzZgois+yfP6lN31P Is43aRL0J4/3PVmgYfh2swxZAdoAGcCXfvj4QfQswuF62sfiF/D6cbmPgiR7AWPuwfC4 4r5NhLmK8859Ui4W2WkJkvpxxqB2fLq362zBEuBgJjkOIA4AC8zOvssaZFzHKcgpH5dH IYSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AwvY3toI; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-203235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b42cd5csi1068116d6.534.2024.06.05.14.09.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 14:09:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AwvY3toI; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-203235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203235-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D06771C25231 for ; Wed, 5 Jun 2024 21:09:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5EA515F3EF; Wed, 5 Jun 2024 21:09:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="AwvY3toI" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 CBDBD3C28; Wed, 5 Jun 2024 21:09:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717621770; cv=none; b=cvl6J/FxzOm7qZ4W+u4dLHC6thuQ0wl9AlWr8Kp+gb4mYtk+zM1thIpdOsDCy45da09R6BD/cerHWto4BgKPYzyAqN0s2wwKGVJLkaHHSTeOZEBle4Jr2/TtQdp/zMW7tTuJsQVBPzJjXS6lO0bt4Osbf1eQiO/bKkS6PG/sXY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717621770; c=relaxed/simple; bh=F0sdJqJQogsqfRgEL79ZN8i5DBQ9X4eunO6hJWO2kpE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LvLrka/FfLgezhLzrJIV8xP7+JO4mA2n0JX5CdZb1/uVKcFOAW5Bu4Q4cWY2piPqd8UIgKyMzv3aqR6tR/7ow+pTYGe/u+8qDgkVuuHct4zqM1cvZSdE4RYoL0wuZORImCvujE09C12XNvx44jDgKRlTw21B/ihZSG2cpzUk3yA= 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=AwvY3toI; arc=none smtp.client-ip=198.175.65.12 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=1717621769; x=1749157769; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=F0sdJqJQogsqfRgEL79ZN8i5DBQ9X4eunO6hJWO2kpE=; b=AwvY3toIxQeUz/snQN46elPBWshYfZNqBoixiuvJ5xwUJ+oligsIPFyw M8j50zvSdaYGf5RH78c+g6Tx3dxVrJZi+uRnVdmCmlkw4M4SkncOlB9jq KdegEIRzt8oTW47xywtM3+UDOpsQ/PjtBIT8r281YOAleWcwS5RUPujz0 lW/pfaG28tU76XZuRL6txUg8tvxzIhiSnPsfdl1IFYmWzPAjT2ZhVKvfK IQVBwoCsYb4GENuPeiVTz0HWFzhniuyFsRDHiQ9GcyjNw/p9gNJz7klrx 8cvb73XN9tLp2xEaMqYTf3Z3iWf46tKmOdYWwa+cbVk81w0vfduyNl5g9 g==; X-CSE-ConnectionGUID: 3/a5wOnmTk6XVPKx34N4aw== X-CSE-MsgGUID: kdPvk7OQSbaysa5c+HxmGQ== X-IronPort-AV: E=McAfee;i="6600,9927,11094"; a="25662479" X-IronPort-AV: E=Sophos;i="6.08,217,1712646000"; d="scan'208";a="25662479" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2024 14:09:28 -0700 X-CSE-ConnectionGUID: Ysl8GZPtTximfi7eSADCtw== X-CSE-MsgGUID: ORMN+v53TuK0J7QHA6s/lA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,217,1712646000"; d="scan'208";a="68867316" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa001.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2024 14:09:27 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1sExsq-0000000Dy6V-20z1; Thu, 06 Jun 2024 00:09:24 +0300 Date: Thu, 6 Jun 2024 00:09:24 +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 Mon, May 20, 2024 at 12:28:12PM +0300, Andy Shevchenko wrote: > 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. Should I do something about the first two patches or is it fine to get them in? -- With Best Regards, Andy Shevchenko