Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4943671imm; Tue, 18 Sep 2018 01:34:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY76bhyV26no8sAQiQouLOm2byns3A+pYBH428MoPT0aec+7qKbt19AVGXApW8k/6KbSzxK X-Received: by 2002:a62:b2d3:: with SMTP id z80-v6mr30253102pfl.79.1537259696294; Tue, 18 Sep 2018 01:34:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537259696; cv=none; d=google.com; s=arc-20160816; b=t59pa659w9q/AsEtxyiVovU46W96S3y19IOIMkjhnc5MC/Wsvek8ovvgl3l3SzNNbf evoO4TdpQ6NSJVVs8vw/1MnRTAWrvIzP24sQyOm1sXT57oOW9I5XX0vShA990A7SbtEf 5qzYzpa2/vj21uthswrn5Ygve2fA1QLJL4jTJdhxdTDsjfCJkSJ+KA/M3FIxmFlMxXYf CEPIBX5LeYm2ro1O6ldx3dHov0iN7lsgXI7qkjy2GOewuEZt8Y8JVmxH5oRcU61w8CnQ TVknNz1klBMM3C/wzXZljR/dPsNJQxlrBIQKjix4H3WN58v/qRv9yebyo2Yl1ES0WxeA HpVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=uboZHCVQpMfFzFtYlDbCzyyXBtvtmc9S/VEaWpa7HBU=; b=oYqTMm97V7IubOsZLOAO7LMshQPyPp1IV4It2/C2I9e8Wj9af6wrHVIhBWl6xlyZ0q VrliBPSTdZFac6BgFLOc4/PrDC3xjEpktc707LM0l5QzX8KLZ9F4HmAvjLmcwFTmurOm eVpsneFDlFg3yxoxmfalgldRfEAdzpMr9QgDVYPmyKz3MFKatfaJMqZ7D3Z2Z5T5wxF/ XwafH9NgkX8mL3Ab+KVFdvaCb9VARSnsPz1IPjsV6NZg/456nEHJaDX0BSC+TkFZqrkP sxM4X1/GNBwU2wfvZItKmoS2Zl5Bx1bAY7VaP3PoTVnFyFkvJfNER6PTpWOjqvXkB9ev l11g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@as-electronics.de header.s=strato-dkim-0002 header.b=MzREjuOE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17-v6si17664238pgb.369.2018.09.18.01.34.41; Tue, 18 Sep 2018 01:34:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@as-electronics.de header.s=strato-dkim-0002 header.b=MzREjuOE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729442AbeIROGA (ORCPT + 99 others); Tue, 18 Sep 2018 10:06:00 -0400 Received: from mo4-p05-ob.smtp.rzone.de ([85.215.255.133]:9499 "EHLO mo4-p05-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729148AbeIROGA (ORCPT ); Tue, 18 Sep 2018 10:06:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1537259665; s=strato-dkim-0002; d=as-electronics.de; h=In-Reply-To:Date:Message-ID:From:References:Cc:To:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=uboZHCVQpMfFzFtYlDbCzyyXBtvtmc9S/VEaWpa7HBU=; b=MzREjuOEWm6wKgn7x+FAWWnr9BRSRI9OOgdSGQ85nwrWX+ZvIDJen0nWf8KfjJFRHa d89kKG/IIptMDSnisnx9X9rH37/JgT4bijpCaM6TdXnj+y8E6SPPcxVA4N4hCZraZcSj Jh/a2kvsnSG8435svVrA36UuwL98VL9Vzww2AXRaS8rH39dFnALSa96bK8J6N3IGN/PR CHEBc9OsMWRV+EwC+2cRAesvMsdPXxM+0B9hxwPOCdHDocutGjbbn6hWroEwuZhTbuPG XwDdFf3vz/cmBJyQoMCgFNA9958KBj9feo7rOMHUfJ3A9rtsunvmR35AR4Qa9WG6QCjk r7nA== X-RZG-AUTH: ":LX8JdEmkW/4tAFwMkcNJIloh1hrA5u3owhPk7bdT5Fx2zAOrX/r2ZbrrxoyMly7vtKoBCSu4zR9/f0shzjGSYbJY5KbsbrlTGd0CtJA=" X-RZG-CLASS-ID: mo05 Received: from [IPv6:2003:a:e7a:6200:246c:2a8b:f45a:a33d] by smtp.strato.de (RZmta 44.1 AUTH) with ESMTPSA id C0b243u8I8MHDaz (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 18 Sep 2018 10:22:17 +0200 (CEST) Subject: Re: [PATCH v2 1/5] spi: spi-mem: Add driver for NXP FlexSPI controller To: Boris Brezillon , Yogesh Gaur Cc: linux-mtd@lists.infradead.org, marek.vasut@gmail.com, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, computersforpeace@gmail.com, linux-kernel@vger.kernel.org References: <1537177710-9379-1-git-send-email-yogeshnarayan.gaur@nxp.com> <1537177710-9379-2-git-send-email-yogeshnarayan.gaur@nxp.com> <20180917133751.453ea6ed@bbrezillon> From: Frieder Schrempf Message-ID: <9529c765-cb3b-02f9-df15-4f79cfa48e47@exceet.de> Date: Tue, 18 Sep 2018 10:22:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180917133751.453ea6ed@bbrezillon> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris, Yogesh, On 17.09.2018 13:37, Boris Brezillon wrote: > Hi Yogesh, > > On Mon, 17 Sep 2018 15:18:26 +0530 > Yogesh Gaur wrote: > >> + >> + /* >> + * R/W functions for big- or little-endian registers: >> + * The FSPI controller's endianness is independent of >> + * the CPU core's endianness. So far, although the CPU >> + * core is little-endian the FSPI controller can use >> + * big-endian or little-endian. >> + */ >> + if (of_property_read_bool(np, "big-endian")) { >> + f->write = fspi_writel_be; >> + f->read = fspi_readl_be; >> + } else { >> + f->write = fspi_writel; >> + f->read = fspi_readl; >> + } > > Hm, isn't it something you can extract from the compatible string? I'd > rather not allow users to set that in their DT if it's not something > you can change. This was copied from the QSPI driver, but I think Boris is right. This seems to be a fixed SOC-specific setting and we shouldn't set it in the DT. This applies to QSPI and FSPI alike. Regards, Frieder > > Regards, > > Boris >