Received: by 10.223.164.202 with SMTP id h10csp2070636wrb; Fri, 24 Nov 2017 05:30:46 -0800 (PST) X-Google-Smtp-Source: AGs4zMYGsM39SdN6Zjf1EkCP+fZtABXPxg72sW54Ln1lQ5dE3uGQBv5yq/bjlrgBRTOK/wVq8q3V X-Received: by 10.99.119.67 with SMTP id s64mr218767pgc.390.1511530245879; Fri, 24 Nov 2017 05:30:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511530245; cv=none; d=google.com; s=arc-20160816; b=ANQPmMwrFzPSjQXcULFgkjGL7+SUWt0vH7vebFiTxZ8rcqtNAZNS9k0uiZeZaoBKOf DjqE/RC1JOgRjwnsPK41BcVG8y0GqdJHmreygUnwnj/uVLdb/uO4W1Su7dzql/q1wpke SXy6uww2OmoZ7uyRflN+sZUSpwtA+JLRzKet6paIxmlbR2EHJfylYq+GqalAxncRHKet eok/hlKR46LJu+CF+zmeDC+nlt1yc140Don2H9GycqfXgiMKaNIJC4AEmM+T2uRrd59U hYPKgd00oET9QeKuKfx779pMMr8nCY1VO7n8UEDe63VHrfRcVN4NPS0Yg0mGF6sSHXNt 0Xjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=jVPwumII6P/GgHJlOLOd4c+IefwngzEIPrha8u3C/Xc=; b=fbpvGIFkluuRkX/BtqT/NAPo1tk8j9iAsvCARrPcPGPx1gzRaw3eCYsi34DRup3Wqj JIhQzBrI8AwRgaWY0+PDuGVzwVoUgRld2cysHfOWva5Oim33LTRAh0tgQ17k+n5+2jYC O3i/E0//qDfaRw9qyEG5OgI0xl5gUL5326aq80Nm6VlXAHUdoZ0qRyiM7oGFrWVWS3Ag AcRQj/tkdXPwC+LzzYFRj99amHPiwe0jTGcK72HF96ulP2wKiI3He+0tuRXAFRFZEMSC ggy7t/DowIcUBiDJJKZR+/FzS+W7/qVCWd9c8hAPfRJAW0u7q3qKf56sDezNBuye/rJ8 lp9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MCUashl3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d25si18814147plj.822.2017.11.24.05.30.34; Fri, 24 Nov 2017 05:30:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MCUashl3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753486AbdKXN3z (ORCPT + 76 others); Fri, 24 Nov 2017 08:29:55 -0500 Received: from mail-qt0-f196.google.com ([209.85.216.196]:36264 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752521AbdKXN3x (ORCPT ); Fri, 24 Nov 2017 08:29:53 -0500 Received: by mail-qt0-f196.google.com with SMTP id a19so31424615qtb.3; Fri, 24 Nov 2017 05:29:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jVPwumII6P/GgHJlOLOd4c+IefwngzEIPrha8u3C/Xc=; b=MCUashl31Vh4/cBkBEcGdFEMmI3hKN9zKeSm6tEIYUT7nVZqAIqAsiCUlbdcHds3fE OoGuQRzesX5IhOUh6MXDRHQMXVXLxiXfDqwOnfFtYZZgzHkUuZZHMjUHIVC0gLNegHX0 DZ1p+QwSZ2wiQ5vumApPs0FZHmIsyqbz82k6EMyWySmqfgy+V0dyGQtfiquE7cmR6ulD JBVq0tm0aIwuEojIEj+QBPkESeKCPaFLeYJGovUJviT1E7W11fn0BwNJPU37emLcBb77 aeZsMLH9yN50FJ855zFzKFVZuXCt5mCleDJ/TKcAdfWR9THZw+xHaOkeedzoA1YcBU1C 7RmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=jVPwumII6P/GgHJlOLOd4c+IefwngzEIPrha8u3C/Xc=; b=tT8qkq09m5W3lHS6SmNIoJeMHnUqQTfcnPKN9H7VqDFoLcBNL0tHn7fJE5P4D+d9iw 7Krw/S4lnaaSw1ZfGnJFpsxIy3cI8JLtAMrp7xdi/qsJbiGyE+DoFFm4V25+Q9XyGinT rn6u8kRKd6TFlrK8h+SfEAbQbAHdtyktCyiMC8pO2IH9GXCnYsQL6dqKYnurh2ZVUms/ CPb4F6edCJ05d8By1axBbtSLH+PPK3NXQHlmZ3Q+Qvp1UXa6wooeOOqqsEIqPXmvz2Z6 TjK1SXstidm4woIGTymrbqivOXlg7AbCZCX40iROVEKiX44tq1TBFfQJ5VYLmzre9/25 ruFQ== X-Gm-Message-State: AJaThX746gTKemv1kMXrhqC2YMo9dWZZREF1nGSwgclOP0+Hj99tgJ9C Pv0FGA6wT4RcGKGtgqqymDY= X-Received: by 10.200.54.20 with SMTP id m20mr41898594qtb.83.1511530192570; Fri, 24 Nov 2017 05:29:52 -0800 (PST) Received: from localhost.localdomain (209-6-200-48.s4398.c3-0.smr-ubr2.sbo-smr.ma.cable.rcncustomer.com. [209.6.200.48]) by smtp.gmail.com with ESMTPSA id o57sm14669239qtf.53.2017.11.24.05.29.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Nov 2017 05:29:51 -0800 (PST) Date: Fri, 24 Nov 2017 08:29:48 -0500 From: Konrad Rzeszutek Wilk To: Sinan Kaya Cc: linux-pci@vger.kernel.org, timur@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peter Jones , Konrad Rzeszutek Wilk , open list Subject: Re: [PATCH V2 07/29] ibft: deprecate pci_get_bus_and_slot() Message-ID: <20171124132946.GA16160@localhost.localdomain> References: <1511390964-9979-1-git-send-email-okaya@codeaurora.org> <1511390964-9979-8-git-send-email-okaya@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1511390964-9979-8-git-send-email-okaya@codeaurora.org> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 22, 2017 at 05:49:02PM -0500, Sinan Kaya wrote: > pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as > where a PCI device is present. This restricts the device drivers to be > reused for other domain numbers. > > Getting ready to remove pci_get_bus_and_slot() function in favor of > pci_get_domain_bus_and_slot(). Aha! > > We don't search for the device in other domains than zero. This is because > on x86 platforms the BIOS executes only devices which are in domain 0. > Furthermore, the iBFT spec doesn't have a domain id field. Acked-by: Konrad Rzeszutek Wilk > > Signed-off-by: Sinan Kaya > --- > drivers/firmware/iscsi_ibft.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/firmware/iscsi_ibft.c b/drivers/firmware/iscsi_ibft.c > index 14042a6..6bc8e66 100644 > --- a/drivers/firmware/iscsi_ibft.c > +++ b/drivers/firmware/iscsi_ibft.c > @@ -719,8 +719,9 @@ static int __init ibft_create_kobject(struct acpi_table_ibft *header, > * executes only devices which are in domain 0. Furthermore, the > * iBFT spec doesn't have a domain id field :-( > */ > - pci_dev = pci_get_bus_and_slot((nic->pci_bdf & 0xff00) >> 8, > - (nic->pci_bdf & 0xff)); > + pci_dev = pci_get_domain_bus_and_slot(0, > + (nic->pci_bdf & 0xff00) >> 8, > + (nic->pci_bdf & 0xff)); > if (pci_dev) { > rc = sysfs_create_link(&boot_kobj->kobj, > &pci_dev->dev.kobj, "device"); > -- > 1.9.1 > From 1584808838884402044@xxx Wed Nov 22 22:58:06 +0000 2017 X-GM-THRID: 1584808838884402044 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread