From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932365AbcFCJCE (ORCPT ); Fri, 3 Jun 2016 05:02:04 -0400 Received: from foss.arm.com ([217.140.101.70]:50639 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932176AbcFCJB7 (ORCPT ); Fri, 3 Jun 2016 05:01:59 -0400 Subject: Re: [PATCH 2/2] pci: Add PCIe driver for Rockchip Soc To: Lorenzo Pieralisi References: <1463740105-7061-1-git-send-email-shawn.lin@rock-chips.com> <1463740156-7148-1-git-send-email-shawn.lin@rock-chips.com> <57483CAA.8000005@arm.com> <20160603085547.GB24547@red-moon> Cc: Shawn Lin , Bjorn Helgaas , Heiko Stuebner , Wenrui Li , Rob Herring , devicetree@vger.kernel.org, Doug Anderson , linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org From: Marc Zyngier Organization: ARM Ltd Message-ID: <57514783.6000407@arm.com> Date: Fri, 3 Jun 2016 10:01:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.0 MIME-Version: 1.0 In-Reply-To: <20160603085547.GB24547@red-moon> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/06/16 09:55, Lorenzo Pieralisi wrote: > On Fri, May 27, 2016 at 01:25:14PM +0100, Marc Zyngier wrote: > > [...] > >>> + } else { >>> + bus = pci_scan_root_bus(&pdev->dev, 0, >>> + &rockchip_pcie_ops, port, &res); >>> + } >>> + if (!bus) >>> + return -ENOMEM; >>> + >>> + if (!pci_has_flag(PCI_PROBE_ONLY)) { >> >> Why do you have catter for the PCI_PROBE_ONLY case? Nobody should ever >> use that for properly implemented HW. > > I think that's just copy and paste and it is a useless check given > that the only way we can set that flag on ARM/ARM64 is through DT > (of_pci_check_probe_only()) and I doubt that systems probing this > driver really require a PCI_PROBE_ONLY set-up. > > So, unless you can explain to us why it is really needed, please > remove the: > > if (!pci_has_flag(PCI_PROBE_ONLY)) > > check. Agreed. Maybe we should add a comment somewhere saying that this is deprecated on arm/arm64, and only useful to slightly dumb virtualization environments (kvmtool being the prime example). Thanks, M. -- Jazz is not dead. It just smells funny...