Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1412942 > unrolled thread
| Started by | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> |
|---|---|
| First post | 2016-06-03 11:00 +0200 |
| Last post | 2016-06-03 11:10 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 2/2] pci: Add PCIe driver for Rockchip Soc Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-06-03 11:00 +0200
Re: [PATCH 2/2] pci: Add PCIe driver for Rockchip Soc Marc Zyngier <marc.zyngier@arm.com> - 2016-06-03 11:10 +0200
| From | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> |
|---|---|
| Date | 2016-06-03 11:00 +0200 |
| Subject | Re: [PATCH 2/2] pci: Add PCIe driver for Rockchip Soc |
| Message-ID | <rFT7r-Wy-19@gated-at.bofh.it> |
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.
Lorenzo
[toc] | [next] | [standalone]
| From | Marc Zyngier <marc.zyngier@arm.com> |
|---|---|
| Date | 2016-06-03 11:10 +0200 |
| Message-ID | <rFTh8-1eC-25@gated-at.bofh.it> |
| In reply to | #1412942 |
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...
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web