[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140729113236.GM17528@sirena.org.uk>
Date: Tue, 29 Jul 2014 12:32:36 +0100
From: Mark Brown <broonie@...nel.org>
To: Alexandre Belloni <alexandre.belloni@...e-electrons.com>
Cc: Jiří Prchal <jiri.prchal@...ignal.cz>,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, nicolas.ferre@...el.com,
voice.shen@...el.com
Subject: Re: [PATCH] ARM: at91: spi: request all csgpio in spi probe
On Tue, Jul 29, 2014 at 12:38:59AM +0200, Alexandre Belloni wrote:
> Mark: maybe it would make sense to do devm_gpio_request_one() in
> of_spi_register_master(), after of_get_named_gpio.
You need to transition all the drivers doing things manually but yes.
As I keep saying all the GPIO handling needs to be completely
refactored.
> While this solves the particular issue Jiří is seeing, this will not
> solve the case where PA14 (CS0) is not used by the spi driver at all. It
> will remained muxed as CS0 and toggle when the spi master needs to
> access CS0 until another driver muxes it to something else. I still
> believe we should explicitly ask pinctrl to mux them as gpios.
I'm just guessing as to what the issue that he's seeing is but isn't
this just saying that the board pinmuxing is wrong? If the board
doesn't want the pin to be used by the SPI controller it shouldn't be
configuring it that way.
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists