From patchwork Thu Mar 7 19:47:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13586197 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 11420C54E58 for ; Thu, 7 Mar 2024 19:51:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ORJlep2hicWDKU6l9ASUIed7rGGE5PZwskkVxw3nHwo=; b=u5z39U6LAOHVJP btwXq7KuDCloTw/v+1n2qMMrDhTEv6N3f0IilpCve1WZrxOc8KZD0ppUx16zO8piDeKnQJUebvuwx ttG5OfXJiOXsmrV3ESp6I3fqIPoJZgaNtMF8Y2EynyMCtPHS1ZQEl5wGfSP4M1CgyUTbbgdD/LzHF tOFMx8qhZ3Ox4RSV0zibCB+b7GkgrhL499C/2T34/SMQcxK0tEbuhdoVu8t2TT0MmpjCPcgQEjsCa 2LeeWjZJeBHq0r8JRUN+VvczjUk8su+2gnKWjSbDxc0wG1L9mApar8yeVfatsSgsj9AlkjAA2JvU5 e1HwB/xK3YbmTTVT4CXg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1riJlq-000000068jt-0pN6; Thu, 07 Mar 2024 19:51:14 +0000 Received: from mgamail.intel.com ([198.175.65.21]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1riJlh-000000068f6-2gV4 for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2024 19:51:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709841065; x=1741377065; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MvxOQpEMNaOWjzxyVQp/CL/dEEEmFaDsVhleVV905Oo=; b=eVIcFKq6RMBb3iwI23iYzShg0Hv6ftMbL5Gw8DpPv/8K2TgnbXxVaDqe al/SNHjLYC3ptbUwaNm3D0ekUyVij2WkNQcddmd8szgm2Mjb+8HJNUGQQ ahdTeXqZctCvsh2WJO0gEfme/P6DTqR5oKXHxMzM/RUGaRpHy1MqfL/hY 3QSyncBpxDuc0kJiT7NHzIC/8Bg7OwgQNhJeRACbLFhSCBJYQ3f3iUHSI ubGl/hE46YDV2SfKul1CtA25DU2xPc6mbTutHQEJMX0yV6kSW2PNJjFEm aa5WODaoqj8udRl/k1EEg9C2f4Cx1Nynk/NvGb3Ui9lHM99A2k+eU1e3i Q==; X-IronPort-AV: E=McAfee;i="6600,9927,11006"; a="4457044" X-IronPort-AV: E=Sophos;i="6.07,107,1708416000"; d="scan'208";a="4457044" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2024 11:51:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11006"; a="937046513" X-IronPort-AV: E=Sophos;i="6.07,107,1708416000"; d="scan'208";a="937046513" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 07 Mar 2024 11:50:59 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 164B3152; Thu, 7 Mar 2024 21:50:58 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , Arnd Bergmann , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Mark Brown , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King Subject: [PATCH v3 2/3] spi: pxa2xx: Make num_chipselect 8-bit in the struct pxa2xx_spi_controller Date: Thu, 7 Mar 2024 21:47:46 +0200 Message-ID: <20240307195056.4059864-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20240307195056.4059864-1-andriy.shevchenko@linux.intel.com> References: <20240307195056.4059864-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240307_115105_840792_3CEE2498 X-CRM114-Status: GOOD ( 15.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There is no use for whole 16-bit for the number of chip select pins. Drop it to 8 bits. Acked-by: Arnd Bergmann Signed-off-by: Andy Shevchenko --- Documentation/spi/pxa2xx.rst | 2 +- include/linux/spi/pxa2xx_spi.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/spi/pxa2xx.rst b/Documentation/spi/pxa2xx.rst index 19479b801826..0997d8eaf190 100644 --- a/Documentation/spi/pxa2xx.rst +++ b/Documentation/spi/pxa2xx.rst @@ -24,7 +24,7 @@ arch/.../mach-*/board-*.c as a "platform device". The host controller configurat is passed to the driver via a table found in include/linux/spi/pxa2xx_spi.h:: struct pxa2xx_spi_controller { - u16 num_chipselect; + u8 num_chipselect; u8 enable_dma; ... }; diff --git a/include/linux/spi/pxa2xx_spi.h b/include/linux/spi/pxa2xx_spi.h index 56aba2f737b1..e5a4a045fb67 100644 --- a/include/linux/spi/pxa2xx_spi.h +++ b/include/linux/spi/pxa2xx_spi.h @@ -17,7 +17,7 @@ struct dma_chan; * (resides in device.platform_data). */ struct pxa2xx_spi_controller { - u16 num_chipselect; + u8 num_chipselect; u8 enable_dma; u8 dma_burst_size; bool is_target;