Message ID | 20240124-spi-multi-cs-max-v2-1-df6fc5ab1abc@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-37065-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp984901dyi; Wed, 24 Jan 2024 05:24:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1y9sGyZnUqYQok5/jf1vtuDq0FRq2dZ69qjSn31xGMKOf1dLrIj5Vl626XKeiD6nUnXPk X-Received: by 2002:a17:906:4bcb:b0:a2e:9835:d2e6 with SMTP id x11-20020a1709064bcb00b00a2e9835d2e6mr1025196ejv.144.1706102696834; Wed, 24 Jan 2024 05:24:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706102696; cv=pass; d=google.com; s=arc-20160816; b=nMiw6lHF3qabZo3GW3J6s/sqT7eATmLPiUm7e4K8pPPscLqyvU0wZSCowPkryoMyia oKW4etu3qAwdSKXYkkXZHLtYru2DmlnDZ2LD66t4Xq16eJoIBmoMe7vvySwjwYTEJOLS wDl/+l19C3/LYUyZQTVIPwgOgoGaY063DYJHGmymKdfDXyj371A0pBEa0hOfh+D0uT/T Fu74HCp4/13hPkOt6+4IJxKefz2MHhNLon5NocGcCV0IcemNhUkrmZO1LvaXyJXYVydy ZEbLpsle4YbBBf1UDx5L+LA3XbxAHu8YsrkhOoUKBjU7REhBBwt+yzzQJ1ppPyDzn2gr gO8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=r5uqtGo0o+sQ2yqkkzfwfYe/Z2ovr/MPhKFPi3k7Io0=; fh=ZBz9K1vZaQsohcWtG87JGZXLhZT3CyDuKlZHRh8ztmU=; b=P+XSUyk8DmoHgXuhcKIF24AhCokAnCBosoyedfqJ7z3iFfyVJN6G93b0S2KHfB7QTA NjXQj/mfHtWvYgrk+W8/qc7ZH8/WJLHvCnkx4wQd1XKAu63PmovKRZ6kNFByxCPI6dcv bZ254X6RQ3UlhSQTo2L7PkNxK7weYgOxlBLtE8jJHjxSHlAnwwh/ptXrTwW6xiR8nGt5 UZ6kj/l/0dBuwCnoVJ40ZodKocapiB2GW4PPy7LJgAMBgLj3idAZG5/sPPZ+q6Pc10gr zLsbkCcJInPE60j4hBoXBDPRbC0k9UEzHPPi4+NfrfEzcC4iF/bSv2LY+zudzEf8vz28 Q4Zg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=plhq9YRZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-37065-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37065-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q22-20020a170906361600b00a31091fcc67si859197ejb.469.2024.01.24.05.24.56 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 05:24:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37065-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=plhq9YRZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-37065-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37065-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4474B1F2BD1D for <ouuuleilei@gmail.com>; Wed, 24 Jan 2024 13:24:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8AB9277F26; Wed, 24 Jan 2024 13:24:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="plhq9YRZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DE637182DB; Wed, 24 Jan 2024 13:24:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706102676; cv=none; b=rPI2PqDyPcqcooUNoS0pH8tFa7FvHfvbQg3oxK5ojW3DJzVfrAxwB4j0AZE44j5cqhY97M4GEe24An6C3cQ1QLjzvZEdG18PrL7iSpVYeIYBCG7kyRnJXD8R5czzGytzfpp3lsZhBQzo6C5iLk2OUFfnsgLCnmb6zyL6614ZH/A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706102676; c=relaxed/simple; bh=sjW5Y3vFQ/yglaRJzi06dluiBf7NKLTHdsB2pVl+oQk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=gCSztrD6uvWseDUsGNSjKQiu9Ms2hViENuIsvl4VYbIv2V1yeFL77HymhPr3g5JcWoHjcvb76LsuGrkbTq1/uhrHDZIBN0k7mbkbmsJXCyeR3oaR0ww1aQmB85xnQW0m2hO/d8cuLslw2d8swK5M2ZSMoBWH/cYKqjzFYWUeZ7E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=plhq9YRZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC00AC433C7; Wed, 24 Jan 2024 13:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706102675; bh=sjW5Y3vFQ/yglaRJzi06dluiBf7NKLTHdsB2pVl+oQk=; h=From:Date:Subject:To:Cc:From; b=plhq9YRZNJJr0+rZArm50xpyDcIfz2qqW3WJ/xySksJZoghk/wud3cn4A6e6miUZP OWjy0HWxelMiH+NFHwYwiWWhqkIuGCw/CcvF4l6skCUj44QmtfnMoNY6Rd7FW4UrOX 3/UIAcvNB2omZpJrsweSbe+o0yOD0+ByyIPag0dTFL0DRdH+Lhv8Kw5bby8FLa/1Ku NG/31xXjXSIa1razHbSV5TAl5s9oEIZ+6h6nyu777hFroLhzFWqnt6OsEumH/RtYXA 5Hso3wIirSJhqjhggu8ydcSkxa0Qf59kMnjs3Li1vEIpUaq1splgXwAUg9B5dCUaLi VGYVcp1IZdwTg== From: Mark Brown <broonie@kernel.org> Date: Wed, 24 Jan 2024 13:24:24 +0000 Subject: [PATCH v2] spi: Raise limit on number of chip selects Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240124-spi-multi-cs-max-v2-1-df6fc5ab1abc@kernel.org> X-B4-Tracking: v=1; b=H4sIAIcPsWUC/2WNyw6CMBBFf4XM2jF0lIes/A/DgrQDTARKWiQY0 n+3krhyeU5yz93BsxP2UCU7OF7Fi50i0CkB3TdTxygmMlBK11SRQj8Ljq9hEdQex2ZDunBJulS Zzg3E2ey4le1IPurIvfjFuvfxsKqv/cXoP7YqVNgUfCu1ydpcF/cnu4mHs3Ud1CGED/V434yxA AAA To: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>, Guenter Roeck <linux@roeck-us.net> Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown <broonie@kernel.org> X-Mailer: b4 0.13-dev-0438c X-Developer-Signature: v=1; a=openpgp-sha256; l=1289; i=broonie@kernel.org; h=from:subject:message-id; bh=sjW5Y3vFQ/yglaRJzi06dluiBf7NKLTHdsB2pVl+oQk=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlsQ+QVOH1FyQrc76jnfYnEVQFjrK6lU8TqDVwx j64TSNT9PaJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZbEPkAAKCRAk1otyXVSH 0OImB/9Xuvi2Sw8kECn6Zj6oiMkiaf7uWyysbMNm4DVPEyfVlnWXu+hgPXg44oimKhXadk7R4hu QIBaKRECNVuKFLFHO566WXtxycztXd7IHP4B3ofgjAF7h3Q8w0nXtOlBLvS9Amzng4I6yBF/0C2 D6d8B9G7PtbpKDjTbytrDfExSc5YGO/mKb24d8eXGom0cGgtnwqmXfw/JTtRRfcyZFhns2jiHkj gzLeoJ4r0W6bfcJ+LLLH57uubsk5NUQWWzhlsDvkJk6bHplAF/cVED3TwEX1pQ2XvIwnIpAijP9 YNi0BQuNcox5XB9mtMfaJV5wQuVMfm3CioG19TOoqKl1rUcy X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788978341134574013 X-GMAIL-MSGID: 1788978341134574013 |
Series |
[v2] spi: Raise limit on number of chip selects
|
|
Commit Message
Mark Brown
Jan. 24, 2024, 1:24 p.m. UTC
As reported by Guenter the limit we've got on the number of chip selects is
set too low for some systems, raise the limit. We should really remove the
hard coded limit but this is needed as a fix so let's do the simple thing
and raise the limit for now.
Fixes: 4d8ff6b0991d ("spi: Add multi-cs memories support in SPI core")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Suggested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
Changes in v2:
- Raise the limit further, the highest I've seen thus far is 12.
- Link to v1: https://lore.kernel.org/r/20240122-spi-multi-cs-max-v1-1-a7e98cd5f6c7@kernel.org
---
include/linux/spi/spi.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
base-commit: 65163d16fcaef37733b5f273ffe4d00d731b34de
change-id: 20240121-spi-multi-cs-max-23e82c815c6d
Best regards,
Comments
On Wed, 24 Jan 2024 13:24:24 +0000, Mark Brown wrote: > As reported by Guenter the limit we've got on the number of chip selects is > set too low for some systems, raise the limit. We should really remove the > hard coded limit but this is needed as a fix so let's do the simple thing > and raise the limit for now. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: Raise limit on number of chip selects commit: 2f8c7c3715f2c6fb51a4ecc0905c04dd78a3da29 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 471fe2ff9066..600fbd5daf68 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -21,7 +21,7 @@ #include <uapi/linux/spi/spi.h> /* Max no. of CS supported per spi device */ -#define SPI_CS_CNT_MAX 4 +#define SPI_CS_CNT_MAX 16 struct dma_chan; struct software_node;