Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DFA00C4338F for ; Wed, 28 Jul 2021 17:52:54 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 34ED760C3F for ; Wed, 28 Jul 2021 17:52:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 34ED760C3F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C78ED82D1C; Wed, 28 Jul 2021 19:52:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="OutnZvwD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D869882D58; Wed, 28 Jul 2021 19:52:49 +0200 (CEST) Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EC35382CDA for ; Wed, 28 Jul 2021 19:52:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf36.google.com with SMTP id p38so1964318qvp.11 for ; Wed, 28 Jul 2021 10:52:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=58BJeYiMj2AoRYO4JIygvNeNhC5j1JWyWk6Hl8/TNPg=; b=OutnZvwDB533/H1VnqvwUILBvRsq8vlnWdZE6C5LObWs1dUrCJxY1l4Nzf+XEE92nL RyLFl9XomgBb+OMaVj+AdlDx2rRIXX1DIJvhauPxWFjTeqJsQY8ue3NuN+0689x1DgHD aRkBRIBfxGtck203etiHnCzHGzzBqCXwidRH0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=58BJeYiMj2AoRYO4JIygvNeNhC5j1JWyWk6Hl8/TNPg=; b=E7ujCYJMgFJuruu17ywqS8JETw39hSPEgQNPYIli5NUFlHlqCZF21CHdZbDwc4Gkp0 pnUrKJmmCW3eqUGTVZiXqjYZxozbBSI/i43QG5KxFSo6BSL1jnVTWx8vYZxYvM9GVOfV +ysgS8Uh694+04aWjsW8yTaJIAsk8SGvbYiB1JdyHDrH6GfbTyC9IbxzMfjzVwQH1jlF NIIEaJmUrSjYF6P0RpIkX5mIrJrt5rdjZ9WbqUFVF2B+leGlnVmo/xLbH6Kjm8ZgSi4u fr+/T1tas6749aqS5/OibyfcmYF3MtC9ZXFiY0yPi81Z7ciBcPSrd8TYVZBVJIm/svJg CIrw== X-Gm-Message-State: AOAM533BdzfEDRNRO4VwGtFaIETXB7q/gtZnULR8uKnDdm9cOQABVLJh xYErhrUCjyPrxlXG2NKaiCCx+Q== X-Google-Smtp-Source: ABdhPJx9AoDH7jxu8kmLwqVmBg0NBTe8uEtwgc1ILr63txMMU9pvFHXCdpJw1OfPhj5Fl5g0uan/+A== X-Received: by 2002:a0c:fb48:: with SMTP id b8mr1324089qvq.60.1627494765866; Wed, 28 Jul 2021 10:52:45 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-3037-3a3d-435c-0707.res6.spectrum.com. [2603:6081:7b01:cbda:3037:3a3d:435c:707]) by smtp.gmail.com with ESMTPSA id r16sm348871qke.73.2021.07.28.10.52.44 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Jul 2021 10:52:45 -0700 (PDT) Date: Wed, 28 Jul 2021 13:52:43 -0400 From: Tom Rini To: Pratyush Yadav Cc: Bin Meng , Jagan Teki , Vignesh Raghavendra , u-boot@lists.denx.de, Simon Glass Subject: Re: [PATCH] spi: spi-mem-nodm: Fix read data size issue Message-ID: <20210728175243.GV9379@bill-the-cat> References: <20210728125014.536900-1-bmeng.cn@gmail.com> <20210728174938.wd4fdk6pwrkcmp4e@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0/F9k67mP4yWSR/A" Content-Disposition: inline In-Reply-To: <20210728174938.wd4fdk6pwrkcmp4e@ti.com> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean --0/F9k67mP4yWSR/A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 28, 2021 at 11:19:40PM +0530, Pratyush Yadav wrote: > +Tom, Simon, >=20 > On 28/07/21 08:50PM, Bin Meng wrote: > > When slave drivers don't set the max_read_size, the spi-mem should > > directly use data.nbytes and not limit to any size. But current > > logic will limit to the max_write_size. >=20 > With the push towards using DM, do we really need to maintain the nodm=20 > version anymore? Are there any users left? If there are, I think they=20 > should migrate to using DM instead of trying to fix depreciated code. The users here are likely SPL without DM and SPL_DM is not required. --=20 Tom --0/F9k67mP4yWSR/A Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmEBmWsACgkQFHw5/5Y0 tyzcCgv/TJzaFbFIwGgKjNPJ/KwNJuKOgE20WD8wVUBGLRlwdN7oJ6n50rPsOuBb aQsnuwZhxM1fP14ytkXTEag5/YD3cK6PWqfL5WhdR2SkSevfaQmw3NbtTbG5tP9x PAsxrBtfyx+i2+SOAiswb8to6Z+8iNdvrcyDfSARio17aN1ruUFwbNdMYUKe9V+O 6DsmpWtogBAMwDUG0fILk7uqMPGnZtvOAnSPjXsG6yqV/87Y2nGzD6X8wFfHeT+J vOwi7QsSuFtYcNf2F0JeJF6i3aHTR87wsPz0TfVugm0wuaXRmpXeveEl8o6p+sK9 pk5KesZaTWi6EYd+WMCCjYc4JXknw5p1y9EFRjqlggLdUy2MyhI7voXWpFz7NGSA uF31T3iY/pNvfnyrryTEMkR9/3TESNEuRUuCi766cOhIZEzwyOmdDIXqhVlepacZ CfiE3BLBxvI8iBPg8AoDWd62y4u0zhCuQAA7ibfEoa0xf1eZ5Oqf9PUNsszUCb7Y zY3iLhuW =hZX2 -----END PGP SIGNATURE----- --0/F9k67mP4yWSR/A--