Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752357AbbEDIhW (ORCPT ); Mon, 4 May 2015 04:37:22 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:38042 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750715AbbEDIhQ convert rfc822-to-8bit (ORCPT ); Mon, 4 May 2015 04:37:16 -0400 MIME-Version: 1.0 In-Reply-To: References: <20150428141630.GR22845@sirena.org.uk> <20150428171738.GY22845@sirena.org.uk> <20150429174059.GQ22845@sirena.org.uk> <20150429180659.GT22845@sirena.org.uk> <20150430195829.GG22845@sirena.org.uk> <20150503095917.GQ22845@sirena.org.uk> From: Michal Suchanek Date: Mon, 4 May 2015 10:36:34 +0200 Message-ID: Subject: Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example. To: Martin Sperl Cc: Mark Brown , "Eric D." , linux-sunxi , Jonathan Corbet , Hans de Goede , Linux Kernel Mailing List , Maxime Ripard , linux-spi Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1358 Lines: 36 Hello, On 3 May 2015 at 23:00, Martin Sperl wrote: > >> On 03.05.2015, at 11:59, Mark Brown wrote: >> Hrm, yes - that should work. I'd ask Greg, that's not something the bus >> implements. > > It is still slightly more “complicated” from a distribution perspective, > but if that is what makes it a “clean” solution, then that is the way to > go forward. > > I will investigate the fine details, but I fear we may need some > “compatibility” magic similar to “new_id” in USB to make it work, > because it seems as if you can ONLY force a driver to bind if it > _is_ compatible... > > See also here: https://lwn.net/Articles/143397/ > > But from what I can tell this functionality (mentioned in this article > by Greg) has not been moved into driver-core and bus, so we would need > to run our own version of it. Maybe you could make the spidev driver magically bind to any CS to which no other driver is bound? This would also probably solve the problem with the device going away when the driver is unbound if that still happens. Thanks Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/