Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp739126ybj; Thu, 7 May 2020 06:37:10 -0700 (PDT) X-Google-Smtp-Source: APiQypKkdmoAC4ry80ItvL5n09WNt7cuOYGolD1/rcPSU/4nGdkQawi4UP9uy0L3hu6NyVxHK9qX X-Received: by 2002:a05:6402:2d5:: with SMTP id b21mr11358496edx.291.1588858630592; Thu, 07 May 2020 06:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588858630; cv=none; d=google.com; s=arc-20160816; b=ic+Y5foiGq0GAbW/c3pUJxPqYTxTq3O01Y129nijejQno5YfbOMoPwCPv/WQh3J/fZ KnoA6WEMQBFY7vqJ5qZv+XnhzKkQOO6M8ys9Vjf9QIoKxESmgoGh2IjekEifnWkFY+SY t1nkomvPlYPuWtD+5ZdEI3uBPcd55JABdwfv9jAcsq/vwgG1eDEMJqb/CxE9knUTt4rJ yRutXNsifLWH1CWt6d5HWXyZY8C9rdC9hpMKz1jqJvZOp3aQcQ4Rgh40pLdk44ey+psB 1rb0MST6Y+hyFxFi3vP4RL10o4wRSmtCrvV13uB1JAe+bVOpP/73M2paCa7dl58BY5LK cWdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=r6eWlavmJYFaBTK6r09hetkA8pAPpK8I2TqwDeTM2JY=; b=IK02L03DZWi6BR9A+7sKAbXgrCBMqN3kLJ1+N5nKIWWE4KyCPwJu92vbOrvnZRkaGb oTeTXn1W6T74fiEd2kKN64ddJfojmB/9qeHgzA9sgIv2iQt272UJacSn0ZdmKZTnNqGA 5MlQlSp7TgM4aTGxdI7OKLQrB22wYv5sETXQRpVs4rWOBG1V3VKx8fayAlGzXbHK9oEp uiMB9VC9dUhIFYyHWfTDxwPE+grNqdHuuedsJC3ipbqnYqhxyKZctnSMl69ksSDLqYas EoCxJn78eNCCgj/WLQLayoY/ex+/96uc3S3wIkx9uQfiTyoTdcgmBXrBtdokmJTvZaeb 2kJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b="zP/tWS3S"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si3116466edn.240.2020.05.07.06.36.44; Thu, 07 May 2020 06:37:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b="zP/tWS3S"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726683AbgEGNeN (ORCPT + 99 others); Thu, 7 May 2020 09:34:13 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:47232 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725964AbgEGNeN (ORCPT ); Thu, 7 May 2020 09:34:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=r6eWlavmJYFaBTK6r09hetkA8pAPpK8I2TqwDeTM2JY=; b=zP/tWS3SdCBoj5Lh0SgOxCGgXx ghpwqWGrUjeN/zzDqNsQQ6KuGefokWV1EaFGrsXjvYiA2UfGipq633L0tD7ruCcxqJN22804AVigL TpAYp5Dvula+Xey3wO3E6/yHCpxasC6be+Cl044t+PB+eTkWMLFlINgCy0Agtd/eOcTk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1jWgfC-001EFc-Fn; Thu, 07 May 2020 15:34:10 +0200 Date: Thu, 7 May 2020 15:34:10 +0200 From: Andrew Lunn To: Diana Craciun Cc: linux-kernel@vger.kernel.org, stuyoder@gmail.com, gregkh@linuxfoundation.org, leoyang.li@nxp.com, Bharat Bhushan , linux-arm-kernel@lists.infradead.org, laurentiu.tudor@nxp.com Subject: Re: [PATCH v2 03/12] bus/fsl-mc: add support for 'driver_override' in the mc-bus Message-ID: <20200507133410.GN208718@lunn.ch> References: <20200507073431.2710-1-diana.craciun@oss.nxp.com> <20200507073431.2710-4-diana.craciun@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200507073431.2710-4-diana.craciun@oss.nxp.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 07, 2020 at 10:34:22AM +0300, Diana Craciun wrote: > From: Bharat Bhushan > > This patch is required for vfio-fsl-mc meta driver to successfully bind > layerscape container devices for device passthrough. This patch adds > a mechanism to allow a layerscape device to specify a driver rather than > a layerscape driver provide a device match. > > Example to allow a device (dprc.1) to specifically bind > with driver (vfio-fsl-mc): > - echo vfio-fsl-mc > /sys/bus/fsl-mc/devices/dprc.1/driver_override > - echo dprc.1 > /sys/bus/fsl-mc/drivers/fsl_mc_dprc/unbind > - echo dprc.1 > /sys/bus/fsl-mc/drivers/vfio-fsl-mc/bind Hi Bharat, Diana grep -r "/driver_override" Documentation Documentation/ABI/testing/sysfs-bus-rpmsg:What: /sys/bus/rpmsg/devices/.../driver_override Documentation/ABI/testing/sysfs-bus-pci:What: /sys/bus/pci/devices/.../driver_override Documentation/ABI/testing/sysfs-bus-platform:What: /sys/bus/platform/devices/.../driver_override Documentation/ABI/testing/sysfs-bus-css:What: /sys/bus/css/devices/.../driver_override Documentation/ABI/testing/sysfs-bus-vmbus:What: /sys/bus/vmbus/devices/.../driver_override Documentation/ABI/testing/sysfs-bus-amba:What: /sys/bus/amba/devices/.../driver_override Maybe it is time to move this into the core, and avoid yet another implementation of driver_override_store() and driver_override_show() functions etc. Andrew