From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751940AbdFZHa6 (ORCPT ); Mon, 26 Jun 2017 03:30:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46426 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751424AbdFZHae (ORCPT ); Mon, 26 Jun 2017 03:30:34 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C5A6080F63 Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=eric.auger@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com C5A6080F63 Subject: Re: [PATCH v3 9/9] vfio: Add AMBA driver_override support To: Alex Williamson , kvm@vger.kernel.org References: <20170620154312.17487.66916.stgit@gimli.home> <20170620154846.17487.67316.stgit@gimli.home> Cc: linux-kernel@vger.kernel.org, linux@armlinux.org.uk From: Auger Eric Message-ID: <43af635b-d9a0-888a-3ea5-2618a0c3d679@redhat.com> Date: Mon, 26 Jun 2017 09:30:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20170620154846.17487.67316.stgit@gimli.home> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 26 Jun 2017 07:30:34 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alex, On 20/06/2017 17:48, Alex Williamson wrote: > AMBA also supports driver_override, but amba_bustype was not exported > to be able to identify an amba device. > > Signed-off-by: Alex Williamson Reviewed-by: Eric Auger Eric > --- > drivers/vfio/vfio.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/vfio/vfio.c b/drivers/vfio/vfio.c > index 20e57fecf652..36f0fcfded0b 100644 > --- a/drivers/vfio/vfio.c > +++ b/drivers/vfio/vfio.c > @@ -36,6 +36,7 @@ > #include > #include > #include > +#include > > #define DRIVER_VERSION "0.3" > #define DRIVER_AUTHOR "Alex Williamson " > @@ -743,6 +744,11 @@ static char **vfio_find_driver_override(struct device *dev) > } else if (dev->bus == &platform_bus_type) { > struct platform_device *pdev = to_platform_device(dev); > return &pdev->driver_override; > +#ifdef CONFIG_ARM_AMBA > + } else if (dev->bus == &amba_bustype) { > + struct amba_device *adev = to_amba_device(dev); > + return &adev->driver_override; > +#endif > } > > return NULL; >