Received: by 10.223.164.202 with SMTP id h10csp2094158wrb; Mon, 27 Nov 2017 11:48:30 -0800 (PST) X-Google-Smtp-Source: AGs4zMazc2h7KXyTsHcl5NM/6W9Gobzoo+FjpcJ5pQfWccSTTTEO/FOtGbRVUDmWS8MM2CfvICjU X-Received: by 10.99.126.6 with SMTP id z6mr38739086pgc.305.1511812110184; Mon, 27 Nov 2017 11:48:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511812110; cv=none; d=google.com; s=arc-20160816; b=NmfvkaM+CypslItZ9tsXu+3ZzjVYaMdT8/Y8jxaEl5U8JPS+yAjE/uei1KI4ss+cs3 oO1mZpzeANo8Wmv4eATmAx0zLl/Q3BPaMGZvcEsi7lLI7i2eXRiTbwSurVmbV00lzGiJ PCgliQfgL806otfc0nBitFQ4SyeP02DjYwRz1fHkXusTWibeoNNyFK2qGFPnjESrDaSg jHVnu3U7eacUH1EwIB5/mfpxvgcaKB/fNXYC6QSH75ArhOKFE5uwFlOBVNnp71UQYWtt Te+1bgDV2/eP9QxZ0T38Xn4zuhxPhgdjJMDs6cSOy2eBorchhKM+xjB+rsTtVDFWMY2v 6ScQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:content-language :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dkim-signature :arc-authentication-results; bh=2NoFl83OUEXJ31/Y02uozWcDRLWYMTIO+IbIB4DYEuk=; b=Rv3Xd3Fpk6oixl91J8K0k9GT4V8ddCen4SYZG/8sA6gLNO+ahXphglAIjW/fgq/L7R JO3YIzveH+iaCo6JWMHUv/K1/AnEHile5B+uxhB6gL4jZPLXgHZy9hCjlCNipa/w2chm hM03aGiT/fMHzCOJEFHfDpyZPUELB6DIEwDMO1jSQrx9vLcACX4/5q12jBtTt2DkOd+i p4e3fet1lxdlmzI+La8ppYpvjTLpAvpoqJ5jKbLaSoya6hX5kDE872hkwGg9Ck29kgY7 IB1GQPlWrDcbxE9J8q+mz+gcVfFjx9HXLf+ajbEdhc+wHy0hRw0cePidgI0z6IHKBEt+ wJAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CbWxEr3h; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si4310310pli.449.2017.11.27.11.48.18; Mon, 27 Nov 2017 11:48:30 -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=@gmail.com header.s=20161025 header.b=CbWxEr3h; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753584AbdK0Tqq (ORCPT + 79 others); Mon, 27 Nov 2017 14:46:46 -0500 Received: from mail-qt0-f196.google.com ([209.85.216.196]:41192 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753450AbdK0Tqn (ORCPT ); Mon, 27 Nov 2017 14:46:43 -0500 Received: by mail-qt0-f196.google.com with SMTP id i40so29443799qti.8; Mon, 27 Nov 2017 11:46:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:content-language :thread-index; bh=2NoFl83OUEXJ31/Y02uozWcDRLWYMTIO+IbIB4DYEuk=; b=CbWxEr3h1nGAWXgtdF0TaA2C+udxhKUs1O7h/HIIkUNkGqShv3ZwyJ2gWzizbRV/lG GE9a/9SBP2DT+kitaJXVNZExF5m6q89nYdg6rOqqUpUpgcOxQlqhQNDUrqYGFk/KTaR1 NFfDhGmKQQRnmMCQSJtWpjdwHf3uNcJAEp7gxJtYZTHiBJEVhkiRZWLrNXk1gBkFV/53 7ywQ/MEkval4ywIpZvEtCL1s1fSdbGCTKJ0whUqujzzlti9lgN5NmGg871NIVr8iLmPO FlUIchJeLtnfYy2GHmxbyqshY13ldjdKX+8XuL2FJdkd1vrZBQtJYGyDF4aWIyzlPlH2 YQjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:content-language :thread-index; bh=2NoFl83OUEXJ31/Y02uozWcDRLWYMTIO+IbIB4DYEuk=; b=Qj1erxHQVxWx2a4GrYhbEsmb7lFKksi44u6pF2Q2Y7xCsGWzodUmJYb14vhYcv5736 xax+NGaEt+Fv4GiUQhUEU7skV3ZPy1Vr87OlzipBucfBiBB9qh6NZfelDP8uqNbARjAa s1Z3NolbysEL5UZ+TMWQcObDyIhtlNeYPkacmScB4Q03Ro4YtQOHSmYYmdpxFve/aR/y BO79Okt8Hx3kPA5DbdEzudIOuYC6ZE9/pQgrODUUXO8fbK3Mt2BMDdlSF4ZD9l87dded wfo0Ns0uVodVCaUanv5U5+BfFx0Rp+n96tidGv/VCqxpz+usNVdBSRYC3PoSGLeejEJX WpsA== X-Gm-Message-State: AJaThX5dTzENZIzx/DXknw+yanxmlalVGmzOuxmjvahSDahVWYh+//Ke VCdBvkfGhskmJ+vjgLRqeW8= X-Received: by 10.200.54.236 with SMTP id b41mr64310502qtc.280.1511812002653; Mon, 27 Nov 2017 11:46:42 -0800 (PST) Received: from DESKTOP3JAHB13 ([2001:468:c80:4391:2d35:7281:21e9:222b]) by smtp.gmail.com with ESMTPSA id s41sm20134459qtk.37.2017.11.27.11.46.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Nov 2017 11:46:41 -0800 (PST) From: "Jingoo Han" To: "'Sinan Kaya'" , , Cc: , , , "'Lee Jones'" , "'Daniel Thompson'" , "'Bartlomiej Zolnierkiewicz'" , "'open list:FRAMEBUFFER LAYER'" , "'open list'" References: <1511801886-6753-1-git-send-email-okaya@codeaurora.org> <1511801886-6753-25-git-send-email-okaya@codeaurora.org> In-Reply-To: <1511801886-6753-25-git-send-email-okaya@codeaurora.org> Subject: Re: [PATCH V3 24/29] backlight: deprecate pci_get_bus_and_slot() Date: Mon, 27 Nov 2017 14:46:39 -0500 Message-ID: <000001d367b8$726bd7f0$574387d0$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Content-Language: en-us Thread-Index: AQE6NC/RWwy7C6ugI9klyFkGAQH0tAKLjgdCpEarF8A= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday, November 27, 2017 11:58 AM, 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. I think that this will be useful. I introduced multi domains into ARM-based PCIe driver. (e.g. domain 0, and domain 1) So, APIs to choose domain will be used later. > > 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. > > Acked-by: Daniel Thompson > Signed-off-by: Sinan Kaya Acked-by: Jingoo Han Best regards, Jingoo Han > --- > 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"); > -- > 1.9.1 From 1585239541756593240@xxx Mon Nov 27 17:03:56 +0000 2017 X-GM-THRID: 1585239541756593240 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread