Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp283212lqg; Thu, 11 Apr 2024 02:48:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWe31hIvaOZjpQ6p4tSELIFiBCbmH1ayCZw+ZKKiZdmJfz3cKb4ijH1aU5ve8Ayde5qpF7zTIfqE352NpGHJWs5+9gwo4zhH7hdaXWjvw== X-Google-Smtp-Source: AGHT+IGAwh2ULvlfNYBeaPCMJvACktn9ypLV9ci+Xiqa0fAe9rwYylm8pTCWcxxjOjeDHzn/CLPQ X-Received: by 2002:a50:a417:0:b0:56c:1696:58a8 with SMTP id u23-20020a50a417000000b0056c169658a8mr4373955edb.0.1712828890295; Thu, 11 Apr 2024 02:48:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712828890; cv=pass; d=google.com; s=arc-20160816; b=rqvMm9ieq0110chnMzByZ4pqcXyB195H4gWFZS0ByplI7QfbC1SPFNw2lWB93ypoi7 pf/DLLzL/pnxxrqJG5HlRwW+aXew33YZ8yhCh7unxVlSyqNfmSsaYuoxN1z/+0AOtqF4 lcL8J0KcMtNHdG+RFt30YD4GA/V2aOivw0GJh6nMR44YcTToCkkY7KtwjY8If9fHSxZP tpoW/AuwO5L61yDdOL/XIeds0uqr5Ei481zBH3Te5D6Q09WiCeD6U0spr2NzsFgklu2i vyzen9/B6co86M5GliZy7kbU3qSYZv9v9D+QtDic6B5AFD91YshIgTBlM96PoqRp5Vkf 4F8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:cc:subject:from:to:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=4zSgBA8xW2dbaQwRIZ3MOom2jnWkBfYRk1zCKM74gmQ=; fh=gdWOEUUXcf8ce94bW52jmBOy37Hln1qEn3mRauojtvM=; b=yknugDAxrSc1+9hifyGd8r/QKZqErJxKNuAcyRWkxkp9zqUEfrnyf3hLYDkfK/6M4n VBy2OxJktVyoR/NmfRmTVIStEXW5L0iZ+rdH0BrWpwu4sqRGb70sVD4lBCVFKUjAZrjR 52TfvuMtfMjPFGUJyswiWbpS26G0+wlYjE7VmXr2TmU8QpcVY3bPRZdrr3IkpLiShKuS fkrno2Bd3ltzNT/gtmwjc+CYpB43eeHvUxFe3p//AM3Uw8MsRW0PicrTJyON5+1wOe6W 8ux9Ac21f8+WBgd4Xnr++pNiohzoMBYKgCt2p3XjeXTh2miZBAAjsaZRujNIAfckUGNJ Q8ww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=avKDZ3JH; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-140173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140173-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x9-20020a05640226c900b0056c193c0659si626755edd.75.2024.04.11.02.48.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 02:48:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140173-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=@bootlin.com header.s=gm1 header.b=avKDZ3JH; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-140173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140173-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 9FCAE1F25334 for ; Thu, 11 Apr 2024 09:28:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 887B5144D32; Thu, 11 Apr 2024 09:27:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="avKDZ3JH" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 CAFE714263A; Thu, 11 Apr 2024 09:27:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712827668; cv=none; b=G79OsV3CROOkT5ZHVa6SYr2fBYUQetC1fxIP7JHEXb//7KQ2aRbjQKrHk1QITyF7IgdxddXILi+QlcVyGeDnbxez6CSp9zbh8lAkz4tlXKBoMyr8uE6zyZTM+c1CYfvdhsccx9zD0E4CJojyknYRhRNzXFQaADpObaCOpN/xyoU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712827668; c=relaxed/simple; bh=BUX3q6uB8fMbKKJnsl2nqHWR9WoGSzMH9fjDG70Smv8=; h=Mime-Version:Content-Type:Date:Message-Id:To:From:Subject:Cc: References:In-Reply-To; b=OC6jndfH765zqQ7fMlt11HbKbCe3hHID3o+bNS+EMX4r5QIM6FApPZRRIkOwJdT7Gd1f9p9fdSxhM7uLj2Eb86liK+px91Gdi6PbpqVpr/L66OALiQp6TaPpZFzDQzP6ww3rw645EPgoHfxbSJfO/Tq4cagjL7winsKvSP7LiJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=avKDZ3JH; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 99C1540006; Thu, 11 Apr 2024 09:27:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712827664; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4zSgBA8xW2dbaQwRIZ3MOom2jnWkBfYRk1zCKM74gmQ=; b=avKDZ3JHvpH9EEjrmu7G3yzibfjjR8gjjEQTw5w/RtaNfV6OUc+EkUCt+4KPlgE0vCsBni MLI3cWixxeI7NhmZOKyHWqmKyqEVjmlvO4Fibu6JJJBZ/XH4amnqKzOI55nGGvZ1aMyhcR NQhkKRvpLsBYTjgc0Ay8uCHR2/o8C7zqM84aS6jORZ05ay0S+ZwbDNacIsxydj+gREpmj3 u8rzkHqSCw8AB4LNylgLMsYgwzH7K8GKGZmGxof1k8ClTIlr9SIBoGeD4VwGKzrFQS/pZW fSARUFWQgsnsDRv56FQTUMhtMJWMvQi5QgoYvl0TiCA4jIHScK8s/ub0jj3Feg== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 11 Apr 2024 11:27:43 +0200 Message-Id: To: "Mark Brown" From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: Re: [PATCH v3 4/9] spi: cadence-qspi: allow FIFO depth detection Cc: "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Vaishnav Achath" , "Thomas Bogendoerfer" , "Rob Herring" , , , , , "Vladimir Kondratiev" , "Gregory CLEMENT" , "Thomas Petazzoni" , "Tawfik Bayouk" X-Mailer: aerc 0.15.2 References: <20240410-cdns-qspi-mbly-v3-0-7b7053449cf7@bootlin.com> <20240410-cdns-qspi-mbly-v3-4-7b7053449cf7@bootlin.com> <161eebc1-9417-4ab0-ad8c-c1b17be119b4@sirena.org.uk> In-Reply-To: <161eebc1-9417-4ab0-ad8c-c1b17be119b4@sirena.org.uk> X-GND-Sasl: theo.lebrun@bootlin.com Hello, On Wed Apr 10, 2024 at 10:03 PM CEST, Mark Brown wrote: > On Wed, Apr 10, 2024 at 11:29:07AM +0200, Th=C3=A9o Lebrun wrote: > > > If FIFO depth DT property is provided, check it matches what hardware > > reports and warn otherwise. Else, use hardware provided value. > >=20 > > Hardware exposes FIFO depth indirectly because > > CQSPI_REG_SRAMPARTITION is partially read-only. > > This breaks an allmodconfig build: > > /build/stage/linux/drivers/spi/spi-cadence-quadspi.c: In function =E2=80= =98cqspi_of_get_ > pdata=E2=80=99: > /build/stage/linux/drivers/spi/spi-cadence-quadspi.c:1506:45: error: unus= ed vari > able =E2=80=98ddata=E2=80=99 [-Werror=3Dunused-variable] > 1506 | const struct cqspi_driver_platdata *ddata =3D cqspi->ddat= a; > | ^~~~~ > /build/stage/linux/drivers/spi/spi-cadence-quadspi.c: In function =E2=80= =98cqspi_control > ler_detect_fifo_depth=E2=80=99: > /build/stage/linux/drivers/spi/spi-cadence-quadspi.c:1582:45: error: unus= ed vari > able =E2=80=98ddata=E2=80=99 [-Werror=3Dunused-variable] > 1582 | const struct cqspi_driver_platdata *ddata =3D cqspi->ddat= a; > | ^~~~~ > cc1: all warnings being treated as errors I really should fix my kernel compiler warnings. Sorry about that. Will fix next revision. Regards, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com