Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1185225lqm; Thu, 2 May 2024 07:35:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQqrLCRLxvxF7bbXFOuwAXK3b4zaILXHrSZvGb9CiAbe4oWUzWgNe6nWjZqGGV48J1RCxDjH8ErGqouGYKNt5zUAKcJLxhy8dZuO+rvw== X-Google-Smtp-Source: AGHT+IFx7q+huHGPeJy2v+ZUrusR9CnIh3aHXNlUhNJcO4Zq4xXSUDEu3aPpaaJ3qOeqkHHnl1Pa X-Received: by 2002:a05:6a21:1585:b0:1a9:ff21:8862 with SMTP id nr5-20020a056a21158500b001a9ff218862mr2112410pzb.60.1714660523945; Thu, 02 May 2024 07:35:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714660523; cv=pass; d=google.com; s=arc-20160816; b=kNXuSR6EJLPR9Y6MS5pAM4RmN+QGBgArvnI8e9IvIQYl4u4anGLvFDUBb7lA93xk75 +t1Cw6brMOG8TdRkQjLonlIn2EIPZ69zT8dDbPHs6mM+/ck3cebC1+bft4HFcZvhGbVR IPPiZU3choWAbIrwIU473cHmvTDaVdAkkJF+mQRf7q7e7WW0wVzkCp2r+ViPY4957Luw jAUafleBq4tRO1hcJQ2vWoTM7lJZOvd9088YdSLCBaacL9cqrJNP04fsrref84hYJFPO quGZGtiMXJDkL0zF2ZrxXzRGPMWbIzSgd06mbFqnyJxTWq2GWgBMROua2XGbYZtgl+Gu +w6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=RDa63W7gTjqEzSU1lqp84qG1l6qalApWgW+EXv14odE=; fh=mnr5/IRcjd/sFQM6z1PcqF/gZEploTKEu+OO8wldff4=; b=euC9oQeQcUOuGifNxDwLHtCQFxts79z0hssS7JwqK6rAbHjfpdE+oaLtaz3GB3H0vI CqLR4ToW7PEMEQvd8gDSGTWiE4GPRXaNbt7PwBk4RH3b70l7rIxa2eh18Ks2LlbAvDn0 TH9edA+pCHe6u63u2GHLwqSfSEnckHjUxTirkjbMT1I17tsXfQn94kOyBlzxcyOwvse/ 2/S2AO/WWeIm9znDgTAx32vLCnwjPNpfotmpEVOad9zIrPvoTQiZmfH6z+1yEBhQGfC4 RAAFDbc95iiECQ9ys+ZHbO98IlI4wf8ilNHpEJGW+BpkMy9fA79DLE5J3SPE+tibBIbf Qstg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=hoqG6wE2; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-166557-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lm4-20020a056a003c8400b006ecffe7c32asi1195555pfb.15.2024.05.02.07.35.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 07:35:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166557-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=hoqG6wE2; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-166557-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 46949B20A05 for ; Thu, 2 May 2024 14:35:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A58D153571; Thu, 2 May 2024 14:35:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="hoqG6wE2" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 BD1441534F3; Thu, 2 May 2024 14:34:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714660501; cv=none; b=CYaPd1/5ZfEl6sxX7F8/21MSS2s6gFxQtz41RNe74lFGIuZabdJtDr4g8Ylc8GvdooD/135K3ow1+KEBhb4xG4g9hSE5M6FWgddBXuz1814KCPIlvNdbMOtfcq3oPFlq+QySabTiz9DrfPt1XW/MlxVbmt+gs3Vl1l4w67DrkS0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714660501; c=relaxed/simple; bh=az+H6CKJ3JtshNX3ivWDCWH1KSrZJLRxlg2naRmB0/8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OjGcW7zt/Ysqn2rwnV1VGxwJ6XYbKqBNHnqxwxR2F+KPojSrzJ/ZG4mqosdVp0tDtgIRIIKqWbLXSW/KlakL23ZrMWWm48aGffcIq54CaP7Q2iCXRBprBMCqdOmGA/I7K9JQiLuQbTFfZvg8xewSrlFaVWlmYDsGvARzN8JHa2g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=hoqG6wE2; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1714660499; x=1746196499; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=az+H6CKJ3JtshNX3ivWDCWH1KSrZJLRxlg2naRmB0/8=; b=hoqG6wE2d2U2qFoMvn7xDYzY4YZ58ZQJbUhMP3MnXLJqPYNdKJX+oQRD 0fboPx+bWnbvyLbNNohuafcxGdVDEYwBGmMbEpdh9QjUZOLkPVlnkOAvN ETQC6/nCYxhfhlgQt+Ctl8q6k7UJ5iOOyznnaivCF5LMM4iRQYujhD6J2 26+GYJ+ozsXnySo17uKcJ6o8jdM8JSe68kdP7Vji21cN8ZKf3w3Bkw6NE PLQ5xkpyslfpul/W1lmWVdUVogMg8zzw4ZsbjczOdxzR3T36vZsmCtlA4 NOuTD6XXzeSOsHr1lWSwMLJsZ9Zn2YyPSeQjAxAMYxUDf5cOVwAGJk1OC w==; X-CSE-ConnectionGUID: 6Y5bhyOoSXq5FFQlA0lIog== X-CSE-MsgGUID: bmojybWRRfSEIw4Ew2+m2g== X-IronPort-AV: E=Sophos;i="6.07,247,1708412400"; d="scan'208";a="23394532" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 May 2024 07:34:56 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 2 May 2024 07:34:55 -0700 Received: from Lily.microchip.com (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Thu, 2 May 2024 07:34:53 -0700 From: Prajna Rajendra Kumar To: Mark Brown CC: Rob Herring , Krzysztof Kozlowski , , , , , Conor Dooley , Daire McNamara , , Prajna Rajendra Kumar Subject: [PATCH 3/3] spi: spi-microchip-core: Fix the number of chip selects supported Date: Thu, 2 May 2024 15:34:10 +0100 Message-ID: <20240502143410.12629-4-prajna.rajendrakumar@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240502143410.12629-1-prajna.rajendrakumar@microchip.com> References: <20240502143410.12629-1-prajna.rajendrakumar@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain The SPI controller in PolarFire SoC has multiple chip selects, but only one is wired up in the MSS. Therefore, fix the driver to chose one chip select. Fixes: 9ac8d17694b6 ("spi: add support for microchip fpga spi controllers") Signed-off-by: Prajna Rajendra Kumar --- drivers/spi/spi-microchip-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-microchip-core.c b/drivers/spi/spi-microchip-core.c index 71886c27bca3..4289dfba9af5 100644 --- a/drivers/spi/spi-microchip-core.c +++ b/drivers/spi/spi-microchip-core.c @@ -21,7 +21,7 @@ #include #define MAX_LEN (0xffff) -#define MAX_CS (8) +#define MAX_CS (1) #define DEFAULT_FRAMESIZE (8) #define FIFO_DEPTH (32) #define CLK_GEN_MODE1_MAX (255) -- 2.25.1