Received: by 10.223.164.202 with SMTP id h10csp648908wrb; Thu, 23 Nov 2017 04:12:10 -0800 (PST) X-Google-Smtp-Source: AGs4zMaO/KHd+KEmjGhed2mRmntqprvffBxm8NseM/YvQxX5sNJnkaZvnae8q4YePuEVpq7PUpIr X-Received: by 10.101.87.193 with SMTP id q1mr3491313pgr.370.1511439130509; Thu, 23 Nov 2017 04:12:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511439130; cv=none; d=google.com; s=arc-20160816; b=KCgi5jtBdxORJfw1IcKnBd2XcwqBe+Dc8vCt/N/pcEQwWjxb7fajVcB50w25Y3cH7Q s1icRJv4Zbv1x2tZTm4+Ogzh4tVen1xfrijUg2tA2Gdh5ozzEy2XgBxTCQt8GIN2Agl4 Zn1Hx7TuFK2ixg9JMQyMUQot4hCiO/PpCTor83ifkKmoHwHmX8uZHM5gnb9fht8nYKOW humZlKZd2kQ9wj37Tc2KRswhdA7+QYqkiH90adyQxOZVJfOOPtGbJkvAy2tBWZfLjvAQ PCokQYaa9tHA5kWwTihhiIL00xkx57Nt82ymGKb3/Gf4tCi8wfh5kXtxWQTNgt/Pm9Sm xLrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=6Vy732J2xejy2Y0HP4t0cCUzpb96yNM3A8hEB1Fgvlw=; b=rW2tV1VaItUtqNwq9G+2t1F9nih1XFsx2B2irU3s0Ac87tqlH4QDFvS0yvDMae05lO 4ExMOMRNpeT95vGMwCn6ofub1Z9kv71FkMWFk2J5onTJvM97XGCpD4jaQwBm/UYGMxm1 ZK4AsRLG+6qlphWIR18lV4GCPUGa2DB+7JrUFd6QpUgC8keUd5xRvLSNKAtKMN6SW5bG KUD6jXxNXHqJplIPrY/aaFldVmspXCHu1zGaDhZk40W1A74kBPyB2GVSVkCu9AarZ+O8 8mqg67WQPR/RvbvW1dzm1/qqEQSfap9DYYI+NcdGKqa9aGxciMbBDYo/NlEVRk+bwvjW GPfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BTkKrkFc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si15476085pgp.421.2017.11.23.04.11.59; Thu, 23 Nov 2017 04:12:10 -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=pass header.i=@linaro.org header.s=google header.b=BTkKrkFc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751857AbdKWMLY (ORCPT + 76 others); Thu, 23 Nov 2017 07:11:24 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:43914 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751500AbdKWMLW (ORCPT ); Thu, 23 Nov 2017 07:11:22 -0500 Received: by mail-wr0-f196.google.com with SMTP id u40so17399952wrf.10 for ; Thu, 23 Nov 2017 04:11:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=6Vy732J2xejy2Y0HP4t0cCUzpb96yNM3A8hEB1Fgvlw=; b=BTkKrkFcLZvDnnhkcIFwIVZvrfauSG//LMGwg3wSzQWiMv1TuJMwlpkXS3UhNHNmrV QC9F7M+MPF0G6BYNCLX34KEI4ddGS1anqtzkx4NCT8wGNSDMwS52VesIPepmZXSoD+f0 l7eEsefCV1B6baCSkTupk1Aw9lvg2sgmAFouo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6Vy732J2xejy2Y0HP4t0cCUzpb96yNM3A8hEB1Fgvlw=; b=LkgC588s2NqxdlamEWsd67O7mLnzKpFMbb034waxB5AceUZveOICj1C/r95Bq4SlfJ OFjN4NVNAXprrLDTbFjyhVaPxlGIwbDQOblhUiON0xkRlfxTHQG48+Tr1BrGXQmo8EZw el2O/Y1rg1Iej8SEeDEetNWeEEkZScJeguE0CFX+L0eqoV/Sijlv3izJVFGHxf4+LAMM XytHRjNtTEt2Ya+h6XK201EnaoxrMfA4bnYBYh64DTI4S/qFCmgImFeHa3zThBidK0fJ ubRsKL+NNqf9JHkpSywPwuNwdm+g33bw99tYykUhwZ8LbG3G0jr278hcLSuXIkP9U/k3 8Pcw== X-Gm-Message-State: AJaThX5/CfHFaE0XU7ekT+LhcMWYscYm4hib5XaqB3na1I1cy7CQDygN ElluqP4mXrPsGgdkWZuj8+0eG18EQhs= X-Received: by 10.223.196.6 with SMTP id v6mr2288976wrf.236.1511439080534; Thu, 23 Nov 2017 04:11:20 -0800 (PST) Received: from [192.168.1.24] (cpc87211-aztw31-2-0-cust196.18-1.cable.virginm.net. [82.46.60.197]) by smtp.gmail.com with ESMTPSA id l9sm14252985wrf.70.2017.11.23.04.11.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Nov 2017 04:11:19 -0800 (PST) Subject: Re: [PATCH V2 24/29] backlight: deprecate pci_get_bus_and_slot() To: Sinan Kaya , linux-pci@vger.kernel.org, timur@codeaurora.org Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lee Jones , Jingoo Han , Bartlomiej Zolnierkiewicz , "open list:FRAMEBUFFER LAYER" , open list References: <1511390964-9979-1-git-send-email-okaya@codeaurora.org> <1511390964-9979-25-git-send-email-okaya@codeaurora.org> From: Daniel Thompson Message-ID: <337c09a3-08c9-8172-8430-3579aee20829@linaro.org> Date: Thu, 23 Nov 2017 12:11:16 +0000 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <1511390964-9979-25-git-send-email-okaya@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/11/17 22:49, 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(). > > Hard-coding the domain as 0. > > Signed-off-by: Sinan Kaya I've no opinion on the wisdom or otherwise of removing the restrictive API but, providing the removal of that API from the header file collects the appropriate ack, then: Acked-by: Daniel Thompson > --- > drivers/video/backlight/apple_bl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/video/backlight/apple_bl.c b/drivers/video/backlight/apple_bl.c > index d843296..6a34ab9 100644 > --- a/drivers/video/backlight/apple_bl.c > +++ b/drivers/video/backlight/apple_bl.c > @@ -143,7 +143,7 @@ static int apple_bl_add(struct acpi_device *dev) > struct pci_dev *host; > int intensity; > > - host = pci_get_bus_and_slot(0, 0); > + host = pci_get_domain_bus_and_slot(0, 0, 0); > > if (!host) { > pr_err("unable to find PCI host\n"); > From 1584808616174131289@xxx Wed Nov 22 22:54:33 +0000 2017 X-GM-THRID: 1584808616174131289 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread