From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Hutchings Subject: Re: [PATCH v2 0/6] UHS-I support for sh_mobile_sdhi Date: Mon, 15 Jun 2015 01:30:53 +0100 Message-ID: <1434328253.25446.45.camel@codethink.co.uk> References: <1433892104.12074.49.camel@codethink.co.uk> <1433980677.12074.74.camel@codethink.co.uk> <20150611024938.GB6904@verge.net.au> <1434034924.26252.10.camel@codethink.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-sh-owner@vger.kernel.org To: Geert Uytterhoeven Cc: Simon Horman , Ulf Hansson , Ian Molton , linux-mmc , Linux-sh list , "linux-gpio@vger.kernel.org" , linux-kernel@lists.codethink.co.uk, Sergei Shtylyov , Kuninori Morimoto , Linus Walleij , Laurent Pinchart List-Id: linux-gpio@vger.kernel.org On Sun, 2015-06-14 at 09:36 +0200, Geert Uytterhoeven wrote: > On Thu, Jun 11, 2015 at 5:02 PM, Ben Hutchings > wrote: > >> I may be misunderstanding the above, if so I apologise, but I would > >> strongly prefer to avoid an arrangement where the kernel and device tree > >> blob (DTS/DTSI -> DTB) need to be upgrade in lock-step as this tends not to > >> lead to a good experience for users. > > > > I agree. > > > >> My preference would be to maintain > >> backwards and forwards compatibility and if appropriate schedule removal of > >> such compatibility. > > [...] > > > > The problem is that the 'sd-uhs-sdr50' property is interpreted by the > > MMC core, so I think it will start trying to use this mode even if the > > driver hasn't implemented the necessary operations. I don't see any way > > around that. > > Can't the core check for driver capabilities? > I'm not familiar with the MMC core, but e.g. the SPI core only tries modes > that match both SPI master (spi_master.mode_bits) and slave (spi_device.mode). The driver already calls mmc_of_parse(), which initialises its capabilities based only on the device tree properties. > > The regression is relatively minor as I think the MMC core will fall > > back to a lower speed after failing to enable SDR50. But it will slow > > down probing of a card. > > So it does fall back (after a while). That's good. I think I've seen this happen but haven't *specifically* tested yet. Ben.