Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1448371lqh; Mon, 6 May 2024 08:03:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+yNfyzGZkIt4h58g6C8Ed7YO9F5HKRaOY5uunrZI9mrsbCB5dEzS4rrixuR9HhmIzKlMAQEhhNbUpbexGYMKJVa1fd8wqhM5rEhuJBQ== X-Google-Smtp-Source: AGHT+IGu0MRSbgD4fbFHRQzhBsHSIPLfOFqA65KPOKQzX3zHg0GtKOR3HQUtHLIxxPkwGjh3rYXq X-Received: by 2002:a05:6870:b49e:b0:22d:f619:94c5 with SMTP id y30-20020a056870b49e00b0022df61994c5mr13173599oap.10.1715007820931; Mon, 06 May 2024 08:03:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715007820; cv=pass; d=google.com; s=arc-20160816; b=BHMpBhnrsH2Xq0BmY/P7pHkmgvj1nqxZKga8lTBS/0m0tLte3SVd8Hb1vh8AIHIiT6 Or/6QbBPsfskTtSXXFx1GVsS6nXwg7XvpIzziymxNlpLzWx+6XyjhA8K3Q7gXOAt3tWh PGHLrtbDX4N/uYRHdW1rhxaiU9ljb7JJFzWC+5NvB0UommtlPoGJN4p51SacHThqmsKy JtxN7iI4KFkhZ6lTbTM1OmyuLLEEH1xP38+TpZfIVszWHjyMtUtYrW8pKDrO/9oXAHsX k2Uv3q0YGll2Z0hsyf1yLMzF+GPGl16dMtPSEflM7xmMhmHkEsUjoz0vCVbQQqUnQa+G oMJQ== 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:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=EH14ORplhFSM/ys97qFI9ayvJPt2VMcC0UvFzFrNO8U=; fh=jUVJvAg34PUoyGhg8MdZ2q6PPUdeJtBTj++b11I9m3A=; b=qU0pIhTbKS3p/xEO1Ot8vB2msqyg53RvBZv2vOB3URwv33W6lt1Y5DhGyfjVIxpm9t W6meVX2/IepfRLof3FmKbsdjNy/Erjl99lG4F0UuaJuogN8H73sCsQ9QxVOh5K1ONkIk YnpCW2fihqYuW3yPXeGPyGTrSzb6mP3Voak4rW9BqQYe8Xpuyrihs0yUv823CgnJKmoV YJDt1hQHoxrkqZ8vKtm41FS9cJRtoSGRqX/t4dMSEKzw0lMVe/x4XR/dX3IgZDFLcIck lX3AX26aU+G19scuiXbeDIlww2TLiqL6fTGyjux8LezMlzHnc6/wlHyeyi8SYp/XJA41 oNoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iaXUcOHL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170034-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170034-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d17-20020a056830005100b006f086652cc4si121668otp.220.2024.05.06.08.03.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 08:03:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170034-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iaXUcOHL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170034-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170034-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6DEDB284958 for ; Mon, 6 May 2024 14:59:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91DA9155308; Mon, 6 May 2024 14:59:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iaXUcOHL" 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 942F115533B; Mon, 6 May 2024 14:59:27 +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=1715007567; cv=none; b=sZv52ziJHdxGitrUwfJOcasad7oFmV0mDpVt4xBZh+EnGAwUXQJrtis+7d71uMGKaK9Lr8puSfo9ehAOVdlZ5xV1DWz2A6ejFwbaHOunyJp785lAgq3horev3F7u5mCCHHzlqHV+aJQuDaSXSijpLzTZnEiv5DY/ByWdiSkTBtc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715007567; c=relaxed/simple; bh=KxKHwPONpxlyTxuBVbYali+qfHSPEz1mxTHsd0OxT7M=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=Sc7BjQByWry9i7FK4qWogZQyznXLzZqYIZblIFaBVNBWXnUPE384NgsKxDhutf1h8OgIaRbDST6w/elpHvD067gaLAsap0wkt1MUvfXbvXV+CaqLSpBzK8H+dvbH2c1nNYBLPR4j6diTVnYjXBaPXR4fQA+e07KAngo6AXJKClY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iaXUcOHL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 114FDC4AF66; Mon, 6 May 2024 14:59:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715007567; bh=KxKHwPONpxlyTxuBVbYali+qfHSPEz1mxTHsd0OxT7M=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=iaXUcOHLV1fTJe84wqtLt9CrAkELBH0RLRYyIGW30ywNQ/jarUBRVFV+Cx8KMPcgz yh3ja3ZeTvtsu+pJqsllyFVB1BPnU3xknpByptxATCcLFtS1ebxyOm+v/UBJUXhzrw M6N3WkmRoaqHO1zTyE287W6chPELsF5yY35iELiVlGAzYsmBUVHxd0uunZer+iq1PF rNyeDXdYYOnRdxDDN6NtVba11jaX4DJTUcbtNTVz5QGu7ZtA93eX8nhm7lZISlbzUI 9RSqByix3cQj4x2dQqDtAZ8iaGVxtJ+XUj6B0qe4+RB1Vx5t9PGp1eBUmHBsPNQ3Sy mqXXWbDvzhIQA== From: Mark Brown To: Andy Shevchenko , Serge Semin Cc: Andy Shevchenko , Andy Shevchenko , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240424150657.9678-1-fancer.lancer@gmail.com> References: <20240424150657.9678-1-fancer.lancer@gmail.com> Subject: Re: [PATCH RESEND v4 0/4] spi: dw: Auto-detect number of native CS Message-Id: <171500756558.1968436.6929247618384278647.b4-ty@kernel.org> Date: Mon, 06 May 2024 23:59:25 +0900 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 X-Mailer: b4 0.14-dev On Wed, 24 Apr 2024 18:06:41 +0300, Serge Semin wrote: > The main goal of the short series is to provide a procedure implementing > the auto-detection of the number of native Chip-Select signals supported > by the controller. The suggested algorithm is straightforward. It relies > on the fact that the SER register writable flags reflects the actual > number of available native chip-select signals. So the DW APB/AHB SSI > driver now tests the SER register for having the writable bits, > calculates the number of CS signals based on the number of set flags and > then initializes the num_cs private data field based on that, which then > will be passed to the SPI-core subsystem indicating the number of > supported hardware chip-selects. The implemented procedure will be useful > for the DW SSI device nodes not having the explicitly set "num-cs" > property. In case if the property is specified it will be utilized instead > of the auto-detection procedure. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/4] spi: dw: Convert to using BITS_TO_BYTES() macro commit: 11ae2e63b2a517742d233c4e5b67b898c797973e [2/4] spi: dw: Add a number of native CS auto-detection commit: e164be7e1e9373bd10e6b79924b0a6374752775e [3/4] spi: dw: Convert dw_spi::num_cs to u32 commit: 33c85972d1e4952a8c93ec260be2e6ff4470e619 [4/4] spi: dw: Drop default number of CS setting commit: 98d75b9ef282f6b9bfa1ea06d8a0824e0edaea97 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