Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp57339rdb; Sun, 21 Jan 2024 17:22:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYLjvlkMHaGs6dXmsEV5hFMpAdAtxta1+GQbZXVfKVZggDoWXcLD4+vBTL9N2PpBucvOgA X-Received: by 2002:a05:6402:1d24:b0:55a:d2ca:eab8 with SMTP id dh4-20020a0564021d2400b0055ad2caeab8mr774108edb.164.1705886525502; Sun, 21 Jan 2024 17:22:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705886525; cv=pass; d=google.com; s=arc-20160816; b=B/m0MMASu5gWvSgZpa7UzawwuacqcvLquRse27yDuP+qlv5zm3e8DHhD0Oxp1lUzAU JJl5jn3eVGgSPq8b5LLIWJJAw18d3YhNiODe5G9PX11n+xAG2RhlfVFKrwhGruZpmXVp aU+H/wiDNMVz+dkwpj1sDyQNkxsajyUNOXyZaBuwiszzbqRAaYl4NsEjVmJYwNHxRciI wsj+mXbYa/csLLk9Q/8452euX4Pv7LUSKVcwTxrOE/+zk+7wuYfK9Dc23bnJPSova/ul ll1jYv77Oxnh/JYrZbPogQrjmFISBsNx+lXQxBfIIOPv0dzapxqi8CTtgQZFh250ybJG VElQ== 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=Lk3G5Mf9MJunRlk7duIP/BO1QU3SZW8m+fg7oXEG06U=; fh=ZBz9K1vZaQsohcWtG87JGZXLhZT3CyDuKlZHRh8ztmU=; b=q/B67fTtMhlKBelS/bZyS9lzH5vDzT9HaztoEMLuQHNEalTkjYViTTsKtd+xBao31X 80FQ9J023MSUnpVv6lbGsKraew88aeYLN8EUmvgKl5O7eOEpO/DcQ0J6MFb008JOXAwn 76WCtiYAtAMjq2PUl7BgTzKy+pChgZfWHeJWOxdLjv3CS0XTdRIZD2tmI+pF5pL8tIlg TgaIHef/VpQkSmnG3SXHTh0shRjaV/dVMtf8yeyznMwSJBxKiGl2fGPhgxLRdn+yy04Z 9nD99kdvc75drq1W+krmEsGJUEh12sMTW6m58L5+AtOuXFAfkDIDC7ww9OoNSd1CotsO uxXw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FDeznDiS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-32258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32258-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ew3-20020a056402538300b00559a3dbb971si6286414edb.406.2024.01.21.17.22.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 17:22:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32258-linux.lists.archive=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=FDeznDiS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-32258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32258-linux.lists.archive=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 3E7A61F22D03 for ; Mon, 22 Jan 2024 01:22:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C4D281D; Mon, 22 Jan 2024 01:21:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FDeznDiS" 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 B4EE436B; Mon, 22 Jan 2024 01:21:55 +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=1705886515; cv=none; b=aPKWYwxCPLIwPHgPV1ZFoWCDmfu3DIf97UgpasZtRKKbnrNy0FffaRPbyuNMVgsQDhzsNac9i3K1PSiRZXPST0d5XklWkGEO+brBVGJHcE6Z+iUDFM+MKaEW13J6w2qmkkv6zYLsQPBd2cRCYXFpbakRs/Z9YehgmMp1O0lCXiA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705886515; c=relaxed/simple; bh=n3n03d/eMf3LiEFMS7wP775MM314QYFKkEoIgmrsK04=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=jfJK5PLZyWkYls0/7xYqWTaeDtsZCaiynIW0BMGyWXNgQydFXPOjOzWNnhIYRXpYlyZRdt1aDPU+mwMHoi6ntZ609HluywstLtDcLmthRIKeE6zO2wkizQJvIoXlrg9fA091QT0dXo13c1U+Bw3ggY5Ijgt5SLrSmA7HT0JuaS4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FDeznDiS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7104C433C7; Mon, 22 Jan 2024 01:21:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705886515; bh=n3n03d/eMf3LiEFMS7wP775MM314QYFKkEoIgmrsK04=; h=From:Date:Subject:To:Cc:From; b=FDeznDiS8+nF0YIX2GvN3jNksydTpYdHBssnMQtlUVsQet2RchBT9aSExvIidc/cC RcOB2nz52uo29Gm3Noq1blWp6yAwTEn3clGBD7hdhOxauwqoPB/VEa4b8xoGFSP8yB u4VTgdCJq3XHCwcQn89QSEn4ERPvcLizVK4UANM9TzVzmS8papFQxcyxOqPVm7tS+u v0gEatzw1C0XN8LlxBb+ovgd9cKReABnRuJqlFuI7nacJ0wxzOQYmt+Xe/IHXmQNtw noCrVlog8ozrXxoXiPbwMdskfyKE1/0hY7eyF30896x2KgzdXmOHbmRSDXgY/q4hK4 R5Wm3Ydh8nXgA== From: Mark Brown Date: Mon, 22 Jan 2024 01:21:46 +0000 Subject: [PATCH] spi: Raise limit on number of chip selects 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240122-spi-multi-cs-max-v1-1-a7e98cd5f6c7@kernel.org> X-B4-Tracking: v=1; b=H4sIACnDrWUC/x3MSQqAMAxA0atI1gbaOCBeRVyUGjXgRKMiSO9uc fkW/7+gHIQV2uyFwLeo7FuCzTPws9smRhmSgQyVxpJFPQTXazkFveLqHqSCG/KNrXw9QMqOwKM 8/7LrY/wAImQgM2IAAAA= To: Amit Kumar Mahapatra , Guenter Roeck Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-0438c X-Developer-Signature: v=1; a=openpgp-sha256; l=1105; i=broonie@kernel.org; h=from:subject:message-id; bh=n3n03d/eMf3LiEFMS7wP775MM314QYFKkEoIgmrsK04=; b=owGbwMvMwMWocq27KDak/QLjabUkhtS1hw3WvHFtsCkyWRCutqhcuvHT0sx1+tce5x3Ou/+g/ EYLzy2JTkZjFgZGLgZZMUWWtc8yVqWHS2yd/2j+K5hBrEwgUxi4OAVgIsE87P/do+RyGWIaAq4L Lz3Hmbz28+G6ig2WIrWPP6zgv9xwsSbiREd4zr6+fe+el6YYxu184PdE5EzB8el7Lf+0NWruiH4 sPqu2dLJAI39gyqENXhc6T8y5//qf9PsZ/BO+qO9r62nTP+H2amGGwzMzpxtZO6JzpLbkMSdy7v ktFr5LIOAXy6nLu4/F+2pyhSdnqtzxOsq1Yc1DLm7ZREa5aycrJ2o9+Hv5aF5KhwLnu/CeZEb93 o4CfmuR3e3q2xxCNdjuvJ1eMdGgLcZO3Cvt8t4AS39vR/evis8TVd1Tf9loewfmWuasn6o95RtD 1FETldLV772FrpuE9ljp9lctYTpfwPzP+keK3olDnioTAA== X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB 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 Suggested-by: Guenter Roeck Signed-off-by: Mark Brown --- include/linux/spi/spi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 471fe2ff9066..d71483bf253a 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -21,7 +21,7 @@ #include /* Max no. of CS supported per spi device */ -#define SPI_CS_CNT_MAX 4 +#define SPI_CS_CNT_MAX 8 struct dma_chan; struct software_node; --- base-commit: 65163d16fcaef37733b5f273ffe4d00d731b34de change-id: 20240121-spi-multi-cs-max-23e82c815c6d Best regards, -- Mark Brown