Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp222145pxm; Tue, 22 Feb 2022 09:16:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSEUTyc4zlq/OLgfMlDvuN4GSLzqfuxCbr3dZG5LVgH6rXzuil7CuvgtMJZ2ZmEPse0VjH X-Received: by 2002:a17:906:aad7:b0:6ce:a6e3:9461 with SMTP id kt23-20020a170906aad700b006cea6e39461mr20133822ejb.186.1645550205003; Tue, 22 Feb 2022 09:16:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645550204; cv=none; d=google.com; s=arc-20160816; b=vZ24SgmIEx5ljByHIeYW7O0/0pGnS3GYf/8BtYaACcp1/Z7Ur6uh0PB8WMJMbkNtbt 1Y0L3HyPDcXje3+E649atuLWaTPc38AgFCBbS8CtREtdAsDOi578V8FWPAZatxAKWMkk cc80tmDtxQWCgxuYlbbEtW+bfxY75fxUfFbGgHV7Hd3krWqZ1r8EvKl93HhA3zE+qqOm Hy7yRXGKk6lsvtakQimizr5KFwE2ZwnErU3BbKUXEEhB24KC0MihKFvSbYhBoPkosh23 e+v2TltP4ezyAn5PVG6jLjjrp540Lm4Q9iLKOs8MDO2dE83rG1lQyuToFqbvmN90+8tO aqbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=BmG1AZbDpC+bakClgYmNF33qqjmHjp2EK9xSPXkgubg=; b=tgOzc96NSimau+e1/NL5RlBFqzRCV1y9BhiA4rsVivzFoAKRXM6UknqThfvwJUHTfy 7IWGPoARN2l747urW6QonZPxuazhOBOq+D569VbxVpB8M4yiW5/gbdMOLvVypHEdScdG wmhdSyrrfJ67xLokpCH5UIhzniUDeysS+X9Rj4P4IN4Dc8wgJqy4UEJL/i1Q6wOIwZI4 BNDbfoZ+6KaUaOCe1kz6Wgp+GY9MAkPnySmirLX/BmuA5C4+RG4/UEzO1xhZ0KcPV560 tWlxohzZ7+Dr2MWfd/LgQSjsjrgwq3YiB/W4tKvy61lZXVyzoCr1SIcPBxSGIFSPhNLA 94kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=hF8LDMA2; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y22si6022522edm.236.2022.02.22.09.16.19; Tue, 22 Feb 2022 09:16:44 -0800 (PST) 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=@walle.cc header.s=mail2016061301 header.b=hF8LDMA2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233001AbiBVOO7 (ORCPT + 99 others); Tue, 22 Feb 2022 09:14:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232941AbiBVOOs (ORCPT ); Tue, 22 Feb 2022 09:14:48 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1471C15FC91; Tue, 22 Feb 2022 06:13:50 -0800 (PST) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 8E37022205; Tue, 22 Feb 2022 15:13:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645539228; 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=BmG1AZbDpC+bakClgYmNF33qqjmHjp2EK9xSPXkgubg=; b=hF8LDMA23dfd/43QNi8Lf4jflujl+1s/h1sDqDEcIsTGZGWSPQFw+jPogd+jtqg3MSUnDF KZcyhbBS9l0vlrlEvECgGGRpeL68deeBTYqNo2chKI6gyMmulsnEQ+450z4W4IwTA4MO49 Ik0o7OGwpFk9i1VmE9cWdNjydbGCVFc= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 22 Feb 2022 15:13:46 +0100 From: Michael Walle To: Tudor.Ambarus@microchip.com Cc: p.yadav@ti.com, broonie@kernel.org, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Nicolas.Ferre@microchip.com, zhengxunli@mxic.com.tw, jaimeliao@mxic.com.tw Subject: Re: [PATCH 0/4] spi-mem: Allow specifying the byte order in DTR mode In-Reply-To: <81d7c569-d6c2-9167-e007-eda72f34842b@microchip.com> References: <20220218145900.1440045-1-tudor.ambarus@microchip.com> <44f655d027b49b87065915f6ba2744d2@walle.cc> <81d7c569-d6c2-9167-e007-eda72f34842b@microchip.com> User-Agent: Roundcube Webmail/1.4.12 Message-ID: <23fbbf2dde387e3832b4ca23d46816c0@walle.cc> X-Sender: michael@walle.cc X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Am 2022-02-22 14:54, schrieb Tudor.Ambarus@microchip.com: > On 2/21/22 09:44, Michael Walle wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you know >> the content is safe >> >> Am 2022-02-18 15:58, schrieb Tudor Ambarus: >>> Fortunately there are controllers >>> that can swap back the bytes at runtime, fixing the endiannesses. >>> Provide >>> a way for the upper layers to specify the byte order in DTR mode. >> >> Are there any patches for the atmel-quadspi yet? What happens if > > not public, but will publish them these days. > >> the controller doesn't support it? Will there be a software fallback? > > no need for a fallback, the controller can ignore op->data.dtr_bswap16 > if > it can't swap bytes. I don't understand. If the controller doesn't swap the 16bit values, you will read the wrong content, no? -michael