Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp207194rwb; Wed, 10 Aug 2022 07:08:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR7OLJ7Ggk7n27Qv03WqF0knP+ypSvf1RAoZaCdokkns5YaMgh3hrXiufTQNP+2DKKZdfmO5 X-Received: by 2002:a9d:6389:0:b0:637:70f:3478 with SMTP id w9-20020a9d6389000000b00637070f3478mr3799675otk.322.1660140505133; Wed, 10 Aug 2022 07:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660140505; cv=none; d=google.com; s=arc-20160816; b=HVEbRyACoP/JbiMSVIU27+9KsLoWl9Ie1e3PZKf9j+bf7aSO/vUjV57I+09XWyWqlS Hu2AeyFtFfk7xq9dBAC/9YC08qUWU2U11dsyrcWr5RaW/F75N68dx+Gf2uJWPZVBqpdg mIrMdq0R3t5rk7jUbBM2a6NLjdyz0G1XfaoXNQ2/02P+wgEo4gm+u+DjFFSZsXbh6jek FmQmMkrhCw/yRFhjOLTXF3qN/LX8uqPRXADnGwL+x07a4uU2fR73ZFJto0OG8caMaA9Y nalIEP5/e86R/DqdgxJrkGFBGDDva52cME29OARnrcTW9PP5C13jGjOHx3wO6k17lzDi QfnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YNGSwzR5KWQomtIv5bh3hSlP/Q86yD7pOH/5n6f1onA=; b=La3QiaYWE1wDwowDUejF9N7MaeMWz+dNa8i0n7jb5O/Y7Zzy0OJ9KWGeTgtlQPHwyb wr/v8Ysci539bYVSdSrm/L6HUOHDh6XbV3T1tP4zahbZJM8PyiHwpzNwMmdF7nVI26o+ 3eCTAblBUE+UEHU8Hy5pnHCyI+xUxncop0ifIGA9Ddb5E9xWOdOysZUqg0iZtgSdhtyv cRPJpKi8ShYQ4ADMAT82QtfZSYguEIxbYDLlUycwDr5jebF+s55+Yt3nYvDmFtXizfWH sM5QyF+hDKGZ3f6gI1RJNv+D6/iAxifZ/E75G+uWaPz6fBvi8MVOztwWS+38pJ3AkBUl CymA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N2HOEhRq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v144-20020acaac96000000b0032eb2cf2421si1807150oie.87.2022.08.10.07.08.09; Wed, 10 Aug 2022 07:08:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N2HOEhRq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232892AbiHJN5o (ORCPT + 99 others); Wed, 10 Aug 2022 09:57:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229680AbiHJN5m (ORCPT ); Wed, 10 Aug 2022 09:57:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F3346BD70; Wed, 10 Aug 2022 06:57:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 88561614CE; Wed, 10 Aug 2022 13:57:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BD2AC433C1; Wed, 10 Aug 2022 13:57:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660139860; bh=8U9yFOGIsXPYWmmnHIYLkHpeD5RKwBawgrNQqyoYFfM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N2HOEhRqGwBfJPfdmKK0Bn6Nzt07oLlpSXiNyADoQ7PN0jhltBCRr6m1p6CtP/XE0 UO0ylwcggBYllVAIfR4Lihsq2rGG1HaPBug1pa50c8GpEvmmUPzMJ+xDyMhwUfiU+r oiJ11orrOdDYtHDX3fjUqeaFvcziXD9V8JTufeieE0LDb/PYDxyk0Qgw9vy8VWve76 y1J+BBupGRONFNsNFXt4syOMPrkC8wcKGh/QNft8y8LbHjebDyYzcAlUo6KBpIkheV pc6IHhdr2K24E4mBJ8sI+VDFDwn85QTCzuj5/meMCk2tevBN9B7vdcSSTCo2mRVKco 04I0CZHGv7CXw== Date: Wed, 10 Aug 2022 14:57:36 +0100 From: Mark Brown To: Patrice CHOTARD Cc: Alexandre Torgue , linux-spi@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, christophe.kerello@foss.st.com Subject: Re: [PATCH v2 1/2] spi: stm32_qspi: Add transfer_one_message() spi callback Message-ID: References: <20220810093215.794977-1-patrice.chotard@foss.st.com> <20220810093215.794977-2-patrice.chotard@foss.st.com> <38200a6f-fdc1-fa94-7bc6-91ca528235ed@foss.st.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qp2XHivCik8DSJHB" Content-Disposition: inline In-Reply-To: X-Cookie: First pull up, then pull down. X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --qp2XHivCik8DSJHB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 10, 2022 at 03:52:39PM +0200, Patrice CHOTARD wrote: > On 8/10/22 15:40, Mark Brown wrote: > > Can't the controller figure this out by looking at the properties of the > > connected devices? You'd need to just return an error if we ever > > triggered transfer_one_message() on a device that can't support the > > operation. > It should be a solution. > I just noticed another point, property parallel-memories is an array of uint64 which represent device's size. > In case a FPGA is connected to the qspi 8 line bus, parallel-memories property will be set with what ? > simply random value to make dtbs_check happy ? > IMHO, adding a new proprietary property would be cleaner. I tend to agree that this is all rather unclear for things that aren't actually storage. --qp2XHivCik8DSJHB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmLzuU8ACgkQJNaLcl1U h9C8lgf/Ty/PVO0gORA+r8yXkatIJMlVbunpNkmNDYE+OPE1h59+rHpcNnt4pzcv JACDJhEStqwIsqNOfBxHD5J7D4+jbRvCXhiL70yqKhOTw64DkUa65AJY136SSqLS XGvpjz1QMv98fljk/zS1PBDAQ8ysQ7xtY2wxQh+aqelNiTgsDb8TFC/T22C/iDxF 2tRbU6HlL6VKoUUKHOvB4lBuTOo2gyMuloxVASblBnOqOO8Sb9er8P1ka4R1+BxE 76U+2YCwNiDOZaug7c39cUKHWwYXwArj7TUlSszHiROFyHe0pkW0m/G550FVa9uF r5LLiJ7asVOVuuRyf5ow2bvxvAl6Yw== =Ovrt -----END PGP SIGNATURE----- --qp2XHivCik8DSJHB--