devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Frieder Schrempf <frieder.schrempf@exceet.de>
To: Boris Brezillon <boris.brezillon@bootlin.com>,
	Yogesh Gaur <yogeshnarayan.gaur@nxp.com>
Cc: mark.rutland@arm.com, devicetree@vger.kernel.org,
	robh@kernel.org, linux-kernel@vger.kernel.org,
	linux-spi@vger.kernel.org, marek.vasut@gmail.com,
	linux-mtd@lists.infradead.org, computersforpeace@gmail.com,
	shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 1/5] spi: spi-mem: Add driver for NXP FlexSPI controller
Date: Tue, 18 Sep 2018 10:22:11 +0200	[thread overview]
Message-ID: <9529c765-cb3b-02f9-df15-4f79cfa48e47@exceet.de> (raw)
In-Reply-To: <20180917133751.453ea6ed@bbrezillon>

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 <yogeshnarayan.gaur@nxp.com> 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
> 

  reply	other threads:[~2018-09-18  8:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-17  9:48 [PATCH v2 0/5] spi: spi-mem: Add driver for NXP FlexSPI controller Yogesh Gaur
2018-09-17  9:48 ` [PATCH v2 1/5] " Yogesh Gaur
2018-09-17 11:37   ` Boris Brezillon
2018-09-18  8:22     ` Frieder Schrempf [this message]
2018-09-18  8:28       ` Yogesh Narayan Gaur
2018-09-18 10:21   ` Frieder Schrempf
2018-09-18 11:34     ` Yogesh Narayan Gaur
2018-09-18 12:52       ` Boris Brezillon
2018-09-19 10:51         ` Yogesh Narayan Gaur
2018-09-17  9:48 ` [PATCH v2 2/5] dt-bindings: spi: add binding file " Yogesh Gaur
2018-09-17  9:48 ` [PATCH v2 3/5] arm64: dts: lx2160a: add FlexSPI node property Yogesh Gaur
2018-09-17  9:48 ` [PATCH v2 4/5] arm64: defconfig: enable NXP FlexSPI driver Yogesh Gaur
2018-09-17  9:48 ` [PATCH v2 5/5] MAINTAINERS: add maintainers for the " Yogesh Gaur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9529c765-cb3b-02f9-df15-4f79cfa48e47@exceet.de \
    --to=frieder.schrempf@exceet.de \
    --cc=boris.brezillon@bootlin.com \
    --cc=computersforpeace@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=marek.vasut@gmail.com \
    --cc=mark.rutland@arm.com \
    --cc=robh@kernel.org \
    --cc=shawnguo@kernel.org \
    --cc=yogeshnarayan.gaur@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).