Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp305633rdb; Sat, 27 Jan 2024 07:17:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IF07K0kRHhrEBVQd+JWHOcDvMowr5i25W66wPozzlaxeVVJun6lcvP4GwYD9gGf9aauy3rk X-Received: by 2002:a05:6358:9490:b0:175:c16b:86f4 with SMTP id i16-20020a056358949000b00175c16b86f4mr943305rwb.56.1706368635200; Sat, 27 Jan 2024 07:17:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706368635; cv=pass; d=google.com; s=arc-20160816; b=agJYkV2rejY6oFji+mg04jlY2GQlbc6MazLhrAwbg/rsCgYsnNAVJPBZwEt3ZyXPXJ x07w4YWRJ1iF8dGBSATUlQvZ7j2X4y3SPE2c24MqQZjjQufPE1tXRwJ1mGMJhMYtI9pb ofMKSZ2Ifs2sTOkeMCDvCnGs0sNnNxxKQ1/Ro1zsBfIJIjX/n1FDdErHdrVJZOZtC9q/ WVOQEq4ko0duPtZCeKUBLwAps7gJkcfDigzOAGkU6tLPn9XO6PoJ3D/RHWK7i4uPhWMF EETX9Jat41+VYPJ6AA9uoZy/zUD1LuRlbiPklNkYJZkh0IpID29vTJG9/O92FMpcW7HI we3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:user-agent:feedback-id:dkim-signature :dkim-signature; bh=z2A+avOaMKmRLkUsiKnEgnVKPzoq69SgtffOycodPe0=; fh=xUN40RWZ0tvhz0VL7OQmG6eewLVnZ9+ihxBEasNCjd0=; b=j31IUTTwBbwxBVzmvQenHXw/deqB1P3YJRRC7kLTUzHk3Kc5YD4ZijYN18Fb1aIYRy fSx1BpfuAikTBsHCJCMgXaBMj+Yq3KI/dHSDsYgF+xECxOK5D+IU83RTCgfbCfJdnEy3 MtaxKQ13R7chL1sUgwZBXOurkIU95/eKp2Ga585cIfMFgp8+m4UY4HezM+pjBZEndytz qz8hhF7bQheWleTggKCXIyEdYZdNqEu4n02046epr/m4AKbICqqg0JqwXeSmOXB4Y095 F8tCpdKmVRV2svq1DEP53ULMPkBzH7n7fIrp4TKC5nQiVHqGaajDJ11+vKgIwwy6AN38 vS+Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b="Q12a/uNG"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=DSGcaOuF; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-40614-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40614-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y3-20020a636403000000b005cf2fd55ee2si2897836pgb.324.2024.01.27.07.17.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 07:17:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40614-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b="Q12a/uNG"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=DSGcaOuF; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-40614-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40614-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 D1EEB2846ED for ; Fri, 26 Jan 2024 20:17:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EAEBB22F04; Fri, 26 Jan 2024 20:17:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="Q12a/uNG"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="DSGcaOuF" Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (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 3CB1320B24; Fri, 26 Jan 2024 20:17:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706300238; cv=none; b=IHis4GNQjegZ4FQQLpi/azfMwl7WsGJn5pJRxHYNrZH3cwsmpGMJCx1JM5jUY3IwOIcwdkVB4QR74+zkjD2cB5SYNveEPBn97LBB9sAauR8odVzJFEcApg+4PCfNBaAInBM9V4zTXyQ+zN/55Jg/VnnsuXxTfAlyEPnVZz3xq7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706300238; c=relaxed/simple; bh=cYHtuArHRMirwJmit//qLZ3eHUilr1A2hgsLc1/fxA4=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=MPi/AUYibJT0mipp7DqusW+Ut5aClvWMxrsJDziBY1LUiOKz9MjS3px96n0BbTyC34n1TrxmOCHjaNULxCQSrOKAJOcekaQ3pppIiKi4op19f41MG4NNrppWMEr3t00v13AUl8ujTTHLPsZsGHzFC/unbEq4VWkODxZnlFqZTNk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=Q12a/uNG; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=DSGcaOuF; arc=none smtp.client-ip=64.147.123.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id B7DBF3200B0E; Fri, 26 Jan 2024 15:17:14 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 26 Jan 2024 15:17:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1706300234; x=1706386634; bh=z2A+avOaMKmRLkUsiKnEgnVKPzoq69SgtffOycodPe0=; b= Q12a/uNGznp2BLZdENbAOaFkfP5Z38OiBLG0M2JdOp0xaxATHgj+ZPREL85itC4O 53f/7/KRhhwnNtVrSiEsJP0qRT/IDEIaFDSwlfXwJdSC2SXvjqflVOU5APQfcG+H Ah66Yq/9qAeZeq8FenouyrzQQ4gEP8P2y9FibtU5U1UIxhBwKh0pL+NBeSzkHPNV haeI2RRhaKvwAZqF1aflUy2FLmJcrOtJsyGpMfa5CZizbJ5AVuiy8vD6GLqKa3tC 2LSfeS6FxVKwOgmxRs2aSveguEpwJcwlc5lN+5WjsJZjUGHTz8GSVp78Zwe8gr5W GiPalLDJJkNBfm21l0rvLw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1706300234; x= 1706386634; bh=z2A+avOaMKmRLkUsiKnEgnVKPzoq69SgtffOycodPe0=; b=D SGcaOuF7y730z7+NR1qdYOZXgMCd8XPvFKne2mQ/oekgyDjdYxq/1MHAKPs306z6 +zEjE1TjFLeczqCyrwtem1Ff2nQjY2y/7iIzcyE3ykQz9PFexGnHQrQyxKGSq/0Z 94Ie559QNzL2ZVq047oEwbcbwQmDKilYRJIqa3y8NR81wBRiP3F5Zza8JSPe42oO 1fJNB+rPRKHdX/VfLSxP4eRPzvct46sirIHxl3lyN/jUyD2fIxLRVtZH4YgQuVws p0aDv+wO+gXLii5DyyreIkWwLzaLz2zlAU8Wal4vsPyDz9t7D9xEeAQscxjU+pwa rr0MuU6dcrJTr4vfWlfQw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeljedgudeffecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedf tehrnhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrf grthhtvghrnhepgeefjeehvdelvdffieejieejiedvvdfhleeivdelveehjeelteegudek tdfgjeevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 95048B6008D; Fri, 26 Jan 2024 15:17:13 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-119-ga8b98d1bd8-fm-20240108.001-ga8b98d1b Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: References: <20240125145007.748295-1-tudor.ambarus@linaro.org> <20240125145007.748295-24-tudor.ambarus@linaro.org> <1e117c5c-1e82-47ae-82f4-cdcf0a087f5f@sirena.org.uk> Date: Fri, 26 Jan 2024 21:16:53 +0100 From: "Arnd Bergmann" To: "Sam Protsenko" , "Mark Brown" Cc: "Tudor Ambarus" , "Andi Shyti" , "Rob Herring" , krzysztof.kozlowski+dt@linaro.org, "Conor Dooley" , "Alim Akhtar" , 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 , =?UTF-8?Q?Andr=C3=A9_Draszik?= , "Peter Griffin" , kernel-team@android.com, "William McVicker" Subject: Re: [PATCH v2 23/28] spi: s3c64xx: retrieve the FIFO size from the device tree Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Fri, Jan 26, 2024, at 20:23, Sam Protsenko wrote: > On Thu, Jan 25, 2024 at 11:33=E2=80=AFAM Mark Brown wrote: >> >> On Thu, Jan 25, 2024 at 02:50:01PM +0000, Tudor Ambarus wrote: >> >> > Allow SoCs that have multiple instances of the SPI IP with different >> > FIFO sizes to specify their FIFO size via the "samsung,spi-fifosize" >> > device tree property. With this we can break the dependency between= the >> > SPI alias, the fifo_lvl_mask and the FIFO size. >> >> OK, so we do actually have SoCs with multiple instances of the IP with >> different FIFO depths (and who knows what else other differences)? > > I think that's why we can see .fifo_lvl_mask[] with different values > for different IP instances. For example, ExynosAutoV9 has this (in > upstream driver, yes): > > .fifo_lvl_mask =3D { 0x1ff, 0x1ff, 0x7f, 0x7f, 0x7f, 0x7f, 0x1ff, > 0x7f, 0x7f, 0x7f, 0x7f, 0x7f}, > That sounds like the same bug as in the serial port driver, by assuming that the alias values in the devicetree have a particular meaning in identifying instances. This immediately breaks when there is a dtb file that does not use the same alias values, e.g. because it only needs some of the SPI ports. Arnd