Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1760957rdb; Thu, 25 Jan 2024 05:33:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGATI/C28bGWJkqhdhNRP5q5mMzP/sQF15//HS6hfIVgfrpynAsEWNzzYdjyOWTFCbyJoN5 X-Received: by 2002:a17:907:a70d:b0:a31:4f4c:9f20 with SMTP id vw13-20020a170907a70d00b00a314f4c9f20mr821230ejc.78.1706189618094; Thu, 25 Jan 2024 05:33:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706189618; cv=pass; d=google.com; s=arc-20160816; b=0ljuBKW8B9NjH8tZafCvKdLEKopXyJPJluLwTZ2cda2G3C9kxDrpnOcUIehOv0uYgj Uyb8pKszsKUz04Ec0zdFq8+n51z5JJ4dpXip8zdvBM4QTXAS9Don1dTJTSrz74tEg7tV 6BXGqSGEua7oOSMqKH2XwKYwx1BxsZdgmoWojuCKs7b4tb00qSo+1aFa8Sna7qCXWdFv BnzbJRWk8A2BKSLEo+A08txBIT7NLP500ADdwaaRGLx7Ri2otFfH8ESS90Dj+V2BfHgW 2gLdzLEn4Ll6oPN8VqjdH/uDeqdWK1jYQ3Kxw5HKMSwjIVfk4uNHuF44OmqZ84aA7Wyj PVxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3R96qRyxPzgSVyuUboSnmRBbw7haewPcnwgYQUsDe7k=; fh=nRz1gL429eG6QSBAjQLmNWLjupVUk6KZdST5ViGK/d4=; b=snSzzCJLXP44c0jC1WjLRACieYyl03/55KvGaq3VJCD0bontmY+PrO6uowv7Qt0j1K JF3lVbVxoaGWl0hCMge88xPDad1mdp+d4ktQQiwSjBHF/hWFOi1DnoW6NygT6jj2X1Dz zhbWoJpCLvnUR7vkRb5zy935oCO2aXuy0dhzgkteXkPs24ikepFjiMrvS/WgsuXx5DLG v/O4ImqpBSEP01/dnNDa5coyGOG5c6+E0PT4LFygCjImwaWNyglcOOUicrmakxYhaYxC CbiHL3HcxQGGgMdqA10f0RHDQ88J4nFLzbgF/Qs64qltVvJYHqvnKg04GB2v/Bbf2ULs iY0A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l7EkuQn+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-38654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38654-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. [147.75.80.249]) by mx.google.com with ESMTPS id ci21-20020a170906c35500b00a310054f755si917599ejb.505.2024.01.25.05.33.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 05:33:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l7EkuQn+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-38654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38654-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 AC6DE1F26924 for ; Thu, 25 Jan 2024 13:33:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 764C255C30; Thu, 25 Jan 2024 13:32:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="l7EkuQn+" 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 8F31855C1C; Thu, 25 Jan 2024 13:32:40 +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=1706189560; cv=none; b=T4XcTmgmrWNyY/TMU/nXVAoKDQGPutFcYUpRqDwOEb+deA2ggk/GOCcjBDIl6x33O32MWd8egkL6TWqyr3kv7BMGxJq+Oy2ZMMiOETkAu7L5O7A9AT7NC99ffAgL6FnEP1Ge8X7vPvRCpIsitWAQevKpefDGDIxzZwtIPeofRmc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706189560; c=relaxed/simple; bh=3R96qRyxPzgSVyuUboSnmRBbw7haewPcnwgYQUsDe7k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=F1/IuCw/fnH3+o5jAvxOfcy7P3jn099dP2ij86x7hIbkxs35sLcrbvXIkAyttnZgwC6NSYJ8VrZ8yJRhHY4khVklBxLyl3HUMbvs+O/E1PtrlHYOkdSx+UydbNTp+UNTbb2v4yUDG8jMrnPp7cR9BtJSBMVZyrF6OTNID00n+lg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=l7EkuQn+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67A24C433B1; Thu, 25 Jan 2024 13:32:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706189560; bh=3R96qRyxPzgSVyuUboSnmRBbw7haewPcnwgYQUsDe7k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=l7EkuQn+M//U1ijcIFY+C6rD+IUNDKS/nZakN1huMCwakIIrNrc+7TRlXehoOznyP aLAKgpjKik/C8fb7DjdBAwRuasqkbj8zAf9vDhWm3WYamjng533SSLi1etA7trOjKG eEeZQA5D994kZuE8pSpNUU55K/nLwpgI+EACOFRmhUPAN6gXnDi63k9mIOP+MgR/Y1 tRVfjxttAjicOaFEOsIl+fneIUWf2qMtrzTMYX9S8h9Q1U6nPNZtg2jdAxzdbXZmF5 6pExpAXAIU/ZCMfOH45ZiPRlQGnCBnSKGP21Lgg/vxXItbm7VHW2PpzIIIdkchU6iy cev+DT0Dmm5DA== Date: Thu, 25 Jan 2024 13:32:33 +0000 From: Mark Brown To: Sam Protsenko Cc: Tudor Ambarus , andi.shyti@kernel.org, arnd@arndb.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, alim.akhtar@samsung.com, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, kernel-team@android.com, willmcvicker@google.com Subject: Re: [PATCH 19/21] spi: s3c64xx: add support for google,gs101-spi Message-ID: <35ba5720-5629-49f1-b00c-af9620941136@sirena.org.uk> References: <20240123153421.715951-1-tudor.ambarus@linaro.org> <20240123153421.715951-20-tudor.ambarus@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AcxqL1s+K3PbRcVC" Content-Disposition: inline In-Reply-To: X-Cookie: Entropy isn't what it used to be. --AcxqL1s+K3PbRcVC Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 24, 2024 at 01:43:55PM -0600, Sam Protsenko wrote: > On Wed, Jan 24, 2024 at 4:40=E2=80=AFAM Tudor Ambarus wrote: > > Using fifo_lvl_mask works but is wrong on multiple levels. > > As the code is now, the device tree spi alias is used as an index in the > > fifo_lvl_mask to determine the FIFO depth. I find it unacceptable to > > have a dependency on an alias in a driver. Not specifying an alias will > > make the probe fail, which is even worse. Also, the fifo_lvl_mask value > Ok, I think that's a valid point. I probably missed the alias part > when reading the patch description. I also understand we can't just > remove .fifo_lvl_mask right now, as we have to keep the compatibility > with older/existing out-of-tree device trees, so that the user can > update the kernel image separately. I don't really agree here, for a given compatible the FIFO depth is known so it's redundant to specify and it's much simpler to correct issues if we're not overspecifying things in the DT. --AcxqL1s+K3PbRcVC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmWyYvAACgkQJNaLcl1U h9BlgQf/Xdw28Bk0fuzTPm7i+VBHJsXK9DXdWVOFi8ljHWjtPGlXeC4cZW2qkurt Fe/famGMO9Iqn8cYs4yhUSxzSHyw89fa8LvDQ0CMc/cTknazpwVkhYTnLk/nfzfL WnkW9ckkW5iYVRZllulIqEt/k//15OspS8RdqHjffQ7QliWo8LdbUVvOMwco7rf2 bngAQX/PZ6Q5RohNBaPxQa1sVfGf8HZ+ESdqYNS/cAr2Ogjv19cli3pDE3YtIXU9 bmImCIB4NttsvLu2gtrGb8zLLRzCN7ECwKxW+QBsBbCasi8uxgq0s7ytxhb4r93R SN/VwfnJQJRWIDRrggTwPJErBlxbSw== =+29v -----END PGP SIGNATURE----- --AcxqL1s+K3PbRcVC--