From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752192AbcF0TJv (ORCPT ); Mon, 27 Jun 2016 15:09:51 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49791 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751936AbcF0TJu (ORCPT ); Mon, 27 Jun 2016 15:09:50 -0400 Date: Mon, 27 Jun 2016 12:09:49 -0700 From: Greg Kroah-Hartman To: Michal Suchanek Cc: Mark Brown , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver Message-ID: <20160627190949.GB5111@kroah.com> References: <15ff382f699387e2d8f23779db851d0de7e9291e.1467053363.git.hramrach@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15ff382f699387e2d8f23779db851d0de7e9291e.1467053363.git.hramrach@gmail.com> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 27, 2016 at 09:02:32PM +0200, Michal Suchanek wrote: > The spi bus has no autodetection whatsoever. The 'detection' of the > device that's suposed to be on the other side completely relies on user > supplied information coming from devicetree on many platforms. It is > completely reasonable then to allow the user to supply the information > at runtime by doing echo 'somedevice' > > /sys/bus/spi/drivers/somedriver/bind > This fails if somedriver does not have in its id table compatible of > somedevice so just skip this check for manual driver binding. That's what the new_id file is for, right? thanks, greg k-h