[PATCH V3 10/29] drm/nouveau: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
pci_get_bus_and_slot() with pci_get_domain_bus_and_slot() and extract the domain number from 1. struct pci_dev 2. struct pci_dev through drm_device->pdev 3. struct pci_dev through fb->subdev->drm_device->pdev Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/gpu/drm/nouv

[PATCH V3 09/29] drm/i915: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
number from drm_device and pass it into pci_get_domain_bus_and_slot() function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/gpu/drm/i915/i915_drv.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/dr

[PATCH V3 19/29] PCI/syscall: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
value as 0 because the domain information is not coming from the userspace. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/syscall.c b/drivers/pci/syscall.c index 83efa00..e

[PATCH V3 20/29] xen: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
the actual domain number from the device. Reviewed-by: Juergen Gross <jgr...@suse.com> Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/xen-pcifront.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/xen-pcifront.c b/drivers/pci/xen-pcif

[PATCH V3 17/29] PCI: ibmphp: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
parameter as 0 since the code doesn't seem to be ready for multiple domains. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/hotplug/ibmphp_core.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/pci/hotplug/ibmphp_core.c b/drivers/pci/h

[PATCH V3 16/29] PCI: cpqhp: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
number as 0. The code doesn't seem to be ready for multiple domains. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/hotplug/cpqphp_pci.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/pci/hotplug/cpqphp_pci.c b/drivers/pci/h

[PATCH V3 11/29] Drivers: ide: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
pci_get_bus_and_slot() with pci_get_domain_bus_and_slot() and extract the domain number from struct pci_dev. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/ide/sl82c105.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/ide/sl82c105.c b/drivers/ide/sl82c105.c

[PATCH V3 12/29] iommu/amd: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
number as 0 for the AMD IOMMU driver. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/iommu/amd_iommu.c | 3 ++- drivers/iommu/amd_iommu_init.c | 9 + drivers/iommu/amd_iommu_v2.c | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH V3 15/29] pch_gbe: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
information from pdev while calling into pci_get_domain_bus_and_slot() function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/oki-semi/p

[PATCH V3 14/29] bnx2x: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
bnx2x_vf_domain() function to extract the domain information and save it to VF specific data structure. Use the saved domain value while calling pci_get_domain_bus_and_slot(). Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c | 10 +- drive

[PATCH V3 28/29] i7300_idle: remove unused file

2017-11-27 Thread Sinan Kaya
i7300_idle.h is not being called by any source file and contains calls to pci_get_bus_and_slot() that we are trying to deprecate. Remove unused file. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- include/linux/i7300_idle.h | 84 --

[PATCH V3 26/29] video: fbdev: nvidia: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
a pointer to struct pci_dev. Use the pci_dev member to extract the domain information and pass it to pci_get_domain_bus_and_slot() function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/video/fbdev/nvidia/nv_hw.c| 11 ++- drivers/video/fbdev/nvidia/nv_setup.

[PATCH V3 24/29] backlight: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
as 0. Acked-by: Daniel Thompson <daniel.thomp...@linaro.org> Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- 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/appl

[PATCH V3 29/29] PCI: remove pci_get_bus_and_slot() function

2017-11-27 Thread Sinan Kaya
this function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- include/linux/pci.h | 8 1 file changed, 8 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index d16a7c0..8c1b650 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -957,11 +957,6 @@ struct p

[PATCH V3 27/29] video: fbdev: riva: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
it to pci_get_domain_bus_and_slot(). Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/video/fbdev/riva/fbdev.c | 2 +- drivers/video/fbdev/riva/nv_driver.c | 7 --- drivers/video/fbdev/riva/riva_hw.c | 20 +--- drivers/video/fbdev/riva/riva_hw.h | 3 ++- 4 files chang

[PATCH V3 02/29] powerpc/PCI: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
pci_get_domain_bus_and_slot() with a domain number of 0 as the code is not ready to consume multiple domains and existing code used domain number 0. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- arch/powerpc/kernel/pci_32.c | 3 ++- arch/powerpc/platforms/powermac/feature.c | 2 +- arch/p

[PATCH V3 13/29] powerpc/powermac: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
number as 0 to match the previous behavior. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/macintosh/via-pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index c4c2b3b..3e8b3b6 100644 --- a/d

[PATCH V3 18/29] PCI/quirks: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
number from pdev while calling into pci_get_domain_bus_and_slot() function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/quirks.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 911b3b6..4c46cc5

[PATCH V3 21/29] openprom: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
as 0 since domain information is not available. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/sbus/char/openprom.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/sbus/char/openprom.c b/drivers/sbus/char/openprom.c index 2c2e6a3..7b31f19

[PATCH V3 05/29] agp: nvidia: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
pci_get_bus_and_slot() with pci_get_domain_bus_and_slot() and extract the domain number from struct pci_dev. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/char/agp/nvidia-agp.c | 12 +--- drivers/char/agp/sworks-agp.c | 3 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff

[PATCH V3 04/29] ata: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
pci_get_domain_bus_and_slot() and extract the actual domain number from the pdev passed in. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/ata/pata_ali.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ata/pata_ali.c b/drivers/ata/pata_ali.c index d19cd88..0b122f9

Re: [PATCH V3 08/29] drm/gma500: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
+dri-de...@lists.freedesktop.org On 11/27/2017 11:57 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. > > Getting

Re: [PATCH V3 09/29] drm/i915: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
+dri-de...@lists.freedesktop.org On 11/27/2017 11:57 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. > > Getting

Re: [PATCH V2 7/7] PCI: make reset poll time adjustable

2017-11-28 Thread Sinan Kaya
much for some use case. We can hold onto this change until that use case happens if you want. -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.

Re: [Intel-gfx] [PATCH V3 09/29] drm/i915: deprecate pci_get_bus_and_slot()

2017-11-28 Thread Sinan Kaya
; bus = pci_find_host_bridge(pdev->bus)->bus; > pci_get_slot(bus, PCI_DEVFN(0, 0)) > > but I think the GPU should always be on the root bus, so the simpler > form should be fine. > All three of these should be correct. I'll use pci_get_slot(pdev->bus, PCI_DEVFN(0,

[PATCH resend V3 24/29] backlight: deprecate pci_get_bus_and_slot()

2017-11-28 Thread Sinan Kaya
as 0. Acked-by: Jingoo Han <jingooh...@gmail.com> Acked-by: Daniel Thompson <daniel.thomp...@linaro.org> Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/video/backlight/apple_bl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/ba

[PATCH V2 09/29] drm/i915: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
number from drm_device and pass it into pci_get_domain_bus_and_slot() function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/gpu/drm/i915/i915_drv.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/dr

[PATCH V2 13/29] powerpc/powermac: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
number as 0 to match the previous behavior. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/macintosh/via-pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index c4c2b3b..3e8b3b6 100644 --- a/d

[PATCH V2 11/29] Drivers: ide: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
pci_get_bus_and_slot() with pci_get_domain_bus_and_slot() and extract the domain number from struct pci_dev. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/ide/sl82c105.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/ide/sl82c105.c b/drivers/ide/sl82c105.c

[PATCH V2 07/29] ibft: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
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. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/firmware/iscsi_ibft.c | 5 +++-- 1 file chan

[PATCH V2 05/29] agp: nvidia: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
pci_get_bus_and_slot() with pci_get_domain_bus_and_slot() and extract the domain number from struct pci_dev. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/char/agp/nvidia-agp.c | 12 +--- drivers/char/agp/sworks-agp.c | 3 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff

[PATCH V2 04/29] ata: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
pci_get_domain_bus_and_slot() and extract the actual domain number from the pdev passed in. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/ata/pata_ali.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ata/pata_ali.c b/drivers/ata/pata_ali.c index d19cd88..0b122f9

[PATCH V2 03/29] x86/PCI: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
as the domain number is not available in struct irq_routing_table. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- arch/x86/pci/irq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/irq.c b/arch/x86/pci/irq.c index 04526291..52e5510 100644 --- a/ar

[PATCH V2 01/29] alpha/PCI: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
the actual domain number from the device. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- arch/alpha/kernel/pci.c | 2 +- arch/alpha/kernel/sys_nautilus.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c

[PATCH V2 08/29] drm/gma500: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
to CDV_MSG_READ32, CDV_MSG_WRITE32, MRST_MSG_READ32, MRST_MSG_WRITE32, MDFLD_MSG_READ32, MDFLD_MSG_WRITE32. Extract pci_dev from struct drm_device and use pdev to find the domain number while calling pci_get_domain_bus_and_slot(). Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drive

[PATCH V2 12/29] iommu/amd: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
number as 0 for the AMD IOMMU driver. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/iommu/amd_iommu.c | 3 ++- drivers/iommu/amd_iommu_init.c | 9 + drivers/iommu/amd_iommu_v2.c | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH V2 06/29] edd: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
is not available in struct edd_info. Hard-coding the domain number as 0. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/firmware/edd.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/firmware/edd.c b/drivers/firmware/edd.c index e229576..60a8f13

[PATCH V2 21/29] openprom: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
as 0 since domain information is not available. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/sbus/char/openprom.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/sbus/char/openprom.c b/drivers/sbus/char/openprom.c index 2c2e6a3..7b31f19

[PATCH V2 19/29] PCI/syscall: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
value as 0 because the domain information is not coming from the userspace. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/syscall.c b/drivers/pci/syscall.c index 83efa00..e

[PATCH V2 14/29] bnx2x: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
bnx2x_vf_domain() function to extract the domain information and save it to VF specific data structure. Use the saved domain value while calling pci_get_domain_bus_and_slot(). Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c | 10 +- drive

[PATCH V2 25/29] video: fbdev: intelfb: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
from pdev. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/video/fbdev/intelfb/intelfbhw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/video/fbdev/intelfb/intelfbhw.c b/drivers/video/fbdev/intelfb/intelfbhw.c index d31ed4e..f695867

[PATCH V2 28/29] i7300_idle: remove unused file

2017-11-22 Thread Sinan Kaya
i7300_idle.h is not being called by any source file and contains calls to pci_get_bus_and_slot() that we are trying to deprecate. Remove unused file. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- include/linux/i7300_idle.h | 84 --

[PATCH V2 16/29] PCI: cpqhp: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
number as 0. The code doesn't seem to be ready for multiple domains. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/hotplug/cpqphp_pci.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/pci/hotplug/cpqphp_pci.c b/drivers/pci/h

[PATCH V2 20/29] xen: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
the actual domain number from the device. Reviewed-by: Juergen Gross <jgr...@suse.com> Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/xen-pcifront.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/xen-pcifront.c b/drivers/pci/xen-pcif

[PATCH V2 15/29] pch_gbe: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
information from pdev while calling into pci_get_domain_bus_and_slot() function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/oki-semi/p

[PATCH V2 24/29] backlight: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
as 0. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- 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/bac

[PATCH V2 27/29] video: fbdev: riva: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
it to pci_get_domain_bus_and_slot(). Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/video/fbdev/riva/fbdev.c | 2 +- drivers/video/fbdev/riva/nv_driver.c | 7 --- drivers/video/fbdev/riva/riva_hw.c | 20 +--- drivers/video/fbdev/riva/riva_hw.h | 3 ++- 4 files chang

[PATCH V2 29/29] PCI: remove pci_get_bus_and_slot() function

2017-11-22 Thread Sinan Kaya
this function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- include/linux/pci.h | 8 1 file changed, 8 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index d16a7c0..8c1b650 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -957,11 +957,6 @@ struct p

Re: [PATCH V2 09/29] drm/i915: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
On 11/22/2017 5:49 PM, Sinan Kaya wrote: > static int i915_get_bridge_dev(struct drm_i915_private *dev_priv) > { > - dev_priv->bridge_dev = pci_get_bus_and_slot(0, PCI_DEVFN(0, 0)); > + u32 domain = pci_domain_nr(dev_priv->drm.pdev->bus); I'll convert domain ty

[PATCH V2 18/29] PCI/quirks: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
number from pdev while calling into pci_get_domain_bus_and_slot() function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/quirks.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 911b3b6..4c46cc5

[PATCH V2 10/29] drm/nouveau: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
pci_get_bus_and_slot() with pci_get_domain_bus_and_slot() and extract the domain number from 1. struct pci_dev 2. struct pci_dev through drm_device->pdev 3. struct pci_dev through fb->subdev->drm_device->pdev Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/gpu/drm/nouv

[PATCH V2 02/29] powerpc/PCI: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
pci_get_domain_bus_and_slot() with a domain number of 0 as the code is not ready to consume multiple domains and existing code used domain number 0. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- arch/powerpc/kernel/pci_32.c | 3 ++- arch/powerpc/platforms/powermac/feature.c | 2 +- arch/p

[PATCH V2 23/29] staging: rts5208: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
rtsx_read_pci_cfg_byte() function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/staging/rts5208/rtsx.c | 17 - drivers/staging/rts5208/rtsx.h | 2 -- 2 files changed, 19 deletions(-) diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c

[PATCH V2 26/29] video: fbdev: nvidia: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
a pointer to struct pci_dev. Use the pci_dev member to extract the domain information and pass it to pci_get_domain_bus_and_slot() function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/video/fbdev/nvidia/nv_hw.c| 11 ++- drivers/video/fbdev/nvidia/nv_setup.

[PATCH V2 22/29] [media] atomisp: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
calling the replacement function pci_get_domain_bus_and_slot(). Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c | 2 +- drivers/staging/media/atomisp/platform/intel-mid/intel_mid_pcihelpers.c | 2 +- 2 files chan

[PATCH V2 17/29] PCI: ibmphp: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
parameter as 0 since the code doesn't seem to be ready for multiple domains. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/hotplug/ibmphp_core.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/pci/hotplug/ibmphp_core.c b/drivers/pci/h

Re: [PATCH 23/30] [media] atomisp: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
On 11/22/2017 9:05 AM, Sinan Kaya wrote: > Hi Alex, I tried to mean Alan. Sorry about that. Apparently, I didn't have enough coffee this morning. I shouldn't touch the code for a few hours. -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies,

Re: [PATCH 23/30] [media] atomisp: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
Hi Alex, On 11/22/2017 7:20 AM, Alan Cox wrote: > On Wed, 2017-11-22 at 00:31 -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 >>

Re: [PATCH 30/30] PCI: remove pci_get_bus_and_slot() function

2017-11-22 Thread Sinan Kaya
I'm trying to shoot that API in the foot so that a developer thinks twice before putting number 0 there. -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.

Re: [PATCH 29/30] i7300_idle: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
On 11/22/2017 11:45 AM, Greg Kroah-Hartman wrote: >> Funny thing is nobody is calling this function. Maybe, I should just kill it >> instead. > Yes, delete it. Why doesn't the build warn about it not being used? > OK. Because it is in a header file that nobody includes. -- S

Re: [PATCH V3 3/4] dmaengine: qcom_hidma: add support for the new revision

2017-11-29 Thread Sinan Kaya
ice function to read this as you suggested. Sinan -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.

[PATCH V4 5/5] dmaengine: qcom_hidma: Add identity register support

2017-11-30 Thread Sinan Kaya
The location for destination event channel register has been relocated from offset 0x28 to 0x40. Update the code accordingly. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/dma/qcom/hidma.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drive

[PATCH V4 4/5] dmaengine: qcom_hidma: Add support for the new revision

2017-11-30 Thread Sinan Kaya
Add support for probing the newer HW and also organize MSI capable hardware into an array for maintenance reasons. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/dma/qcom/hidma.c | 34 +- 1 file changed, 13 insertions(+), 21 deletions(-) diff

[PATCH V4 2/5] ACPI / bus: Introduce acpi_get_match_data() function

2017-11-30 Thread Sinan Kaya
OF has of_device_get_match_data() function to extract driver specific data structure. Add a similar function for ACPI. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/acpi/bus.c | 12 include/linux/acpi.h | 6 ++ 2 files changed, 18 insertions(+) diff

[PATCH V4 3/5] device property: Introduce a common API to fetch device match data

2017-11-30 Thread Sinan Kaya
There is an OF/ACPI function to obtain the driver data. We want to hide OF/ACPI details from the device drivers and abstract following the device family of functions. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/base/property.c | 14 ++ include/linux/property.

[PATCH V4 1/5] Documentation: DT: qcom_hidma: Bump HW revision for the bugfixed HW

2017-11-30 Thread Sinan Kaya
A new version of the HIDMA IP has been released with bug fixes. Bumping the hardware version to differentiate from others. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- Documentation/devicetree/bindings/dma/qcom_hidma_mgmt.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 del

Re: [PATCH V3 10/29] drm/nouveau: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
+nouv...@lists.freedesktop.org On 11/27/2017 11:57 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. > > Getting

[PATCH V2 2/7] PCI: handle FLR failure and allow other reset types

2017-11-26 Thread Sinan Kaya
pci_flr_wait() and pci_af_flr() functions assume graceful return even though the device is inaccessible under error conditions. Return -ENOTTY in error cases so that __pci_reset_function_locked() can try other reset types if AF_FLR/FLR reset fails. Signed-off-by: Sinan Kaya <ok...@codeaurora.

[PATCH V2 1/7] PCI: protect restore with device lock to be consistent

2017-11-26 Thread Sinan Kaya
two different places in the code. Adding locks for pci_slot_restore() and moving pci_dev_restore() inside the locks for pci_try_reset_function(). Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/

[PATCH V2 4/7] PCI: wait device ready after pci_pm_reset()

2017-11-26 Thread Sinan Kaya
Rev 3.1 Sec 2.3.1 Request Handling Rules says a device can issue CRS following a D3hot->D0 transition. Add pci_dev_wait() call to see if device is available before returning. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH V2 5/7] PCI: add a return type for pci_reset_bridge_secondary_bus()

2017-11-26 Thread Sinan Kaya
Getting ready to return an error from pci_reset_bridge_secondary_bus() when device is unreachable. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/pci.c | 4 +++- include/linux/pci.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/pci/p

[PATCH V2 6/7] PCI: add device wait after slot and bus reset

2017-11-26 Thread Sinan Kaya
Rev 3.1 Sec 2.3.1 Request Handling Rules indicates that a device can issue CRS following secondary bus reset. Handle device presence gracefully. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

[PATCH V2 7/7] PCI: make reset poll time adjustable

2017-11-26 Thread Sinan Kaya
Introduce pci=resetpolltime= argument to override 60 seconds poll time in units of milliseconds. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- Documentation/admin-guide/kernel-parameters.txt | 2 ++ drivers/pci/pci.c | 13 - 2 files chang

[PATCH V2 3/7] PCI: make pci_flr_wait() generic and rename to pci_dev_wait()

2017-11-26 Thread Sinan Kaya
Rev 3.1 Sec 2.3.1 Request Handling Rules: Valid reset conditions after which a device is permitted to return CRS are: * Cold, Warm, and Hot Resets, * FLR * A reset initiated in response to a D3hot to D0 uninitialized Try to reuse FLR implementation towards other reset types. Signed-off-by: Sinan

Re: [PATCH 29/30] i7300_idle: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
if (!(fbd_ioat_list[i].enabled || enable_all)) continue; if (fbd_dev) *fbd_dev = memdev; if (ioat_dev) *ioat_dev = dmadev; Funny thing is nobody is calling

Re: [PATCH 12/30] Drivers: ide: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
On 11/22/2017 2:53 AM, Greg KH wrote: > On Wed, Nov 22, 2017 at 12:30:57AM -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 doma

Re: [PATCH V3 2/4] ACPI / bus: introduce acpi_device_get_match_data() function

2017-11-29 Thread Sinan Kaya
On 11/29/2017 8:55 AM, Vinod Koul wrote: >> While I understand that the name follows the OF convention, I have some >> doubts on whether it is the best one. > Perhpas acpi_get_match_data() ? Will change as recommended unless Rafael has a better idea. -- Sinan Kaya Qual

[PATCH V5 3/7] device property: Introduce a common API to fetch device match data

2017-12-01 Thread Sinan Kaya
There is an OF/ACPI function to obtain the driver data. We want to hide OF/ACPI details from the device drivers and abstract following the device family of functions. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/base/property.c | 7 +++ include/linux/fwnode.h

[PATCH V5 5/7] ACPI: properties: Implement get_match_data() callback

2017-12-01 Thread Sinan Kaya
Now that we have a get_match_data() callback as part of the firmware node, implement the ACPI specific piece for it. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/acpi/property.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/acpi/property.c b/d

[PATCH V5 1/7] Documentation: DT: qcom_hidma: Bump HW revision for the bugfixed HW

2017-12-01 Thread Sinan Kaya
A new version of the HIDMA IP has been released with bug fixes. Bumping the hardware version to differentiate from others. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- Documentation/devicetree/bindings/dma/qcom_hidma_mgmt.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 del

[PATCH V5 7/7] dmaengine: qcom_hidma: Add identity register support

2017-12-01 Thread Sinan Kaya
The location for destination event channel register has been relocated from offset 0x28 to 0x40. Update the code accordingly. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/dma/qcom/hidma.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drive

[PATCH V5 6/7] dmaengine: qcom_hidma: Add support for the new revision

2017-12-01 Thread Sinan Kaya
Add support for probing the newer HW and also organize MSI capable hardware into an array for maintenance reasons. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/dma/qcom/hidma.c | 34 +- 1 file changed, 13 insertions(+), 21 deletions(-) diff

[PATCH V5 2/7] ACPI / bus: Introduce acpi_get_match_data() function

2017-12-01 Thread Sinan Kaya
OF has of_device_get_match_data() function to extract driver specific data structure. Add a similar function for ACPI. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/acpi/bus.c | 13 + include/linux/acpi.h | 8 2 files changed, 21 insertions(+) diff

[PATCH V5 4/7] OF: properties: Implement get_match_data() callback

2017-12-01 Thread Sinan Kaya
Now that we have a get_match_data() callback as part of the firmware node, implement the OF specific piece for it. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/of/property.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/of/property.c b/d

Re: [PATCH V5 4/7] OF: properties: Implement get_match_data() callback

2017-12-04 Thread Sinan Kaya
On 12/4/2017 11:23 AM, Rob Herring wrote: > On Fri, Dec 1, 2017 at 10:27 PM, Sinan Kaya <ok...@codeaurora.org> wrote: >> Now that we have a get_match_data() callback as part of the firmware node, >> implement the OF specific piece for it. >> >> Signed-off-by:

Re: [Intel-gfx] [PATCH V3 09/29] drm/i915: deprecate pci_get_bus_and_slot()

2017-12-03 Thread Sinan Kaya
On 11/28/2017 11:29 AM, Sinan Kaya wrote: > On 11/28/2017 10:30 AM, Ville Syrjälä wrote: >>> + dev_priv->bridge_dev = >>> + pci_get_domain_bus_and_slot(domain, 0, PCI_DEVFN(0, 0)); >> Maybe just pci_get_slot(pdev->bus, PCI_DEVFN(0, 0)) ? >> >&g

Re: [PATCH V5 2/7] ACPI / bus: Introduce acpi_get_match_data() function

2017-12-04 Thread Sinan Kaya
On 12/4/2017 4:59 PM, Rafael J. Wysocki wrote: > On Sat, Dec 2, 2017 at 5:27 AM, Sinan Kaya <ok...@codeaurora.org> wrote: >> OF has of_device_get_match_data() function to extract driver specific data >> structure. Add a similar function for ACPI. >> >&

Re: [PATCH V3 09/29] drm/i915: deprecate pci_get_bus_and_slot()

2017-12-12 Thread Sinan Kaya
this change in your tree, it should be safe. https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/include/linux/pci.h?id=7912af5c835bd86f2b0347a480e0f40e2fab30d0 > > Regards, Joonas > -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qual

[PATCH V4] ACPI / GED: unregister interrupts during shutdown

2017-12-12 Thread Sinan Kaya
. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/acpi/evged.c | 47 +-- 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/evged.c b/drivers/acpi/evged.c index 46f0603..f13ba2c 100644 --- a/drivers/acpi/evged.c

Re: [PATCH V4 14/26] pch_gbe: deprecate pci_get_bus_and_slot()

2017-12-19 Thread Sinan Kaya
On 12/19/2017 5:45 AM, Andy Shevchenko wrote: > On Tue, 2017-12-19 at 00:37 -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 n

Re: [PATCH V4 02/26] powerpc/PCI: deprecate pci_get_bus_and_slot()

2017-12-19 Thread Sinan Kaya
On 12/19/2017 5:29 AM, Michael Ellerman wrote: > Sinan Kaya <ok...@codeaurora.org> writes: > >> 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 domai

[PATCH V4 24/26] video: fbdev: riva: deprecate pci_get_bus_and_slot()

2017-12-18 Thread Sinan Kaya
it to pci_get_domain_bus_and_slot(). Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/video/fbdev/riva/fbdev.c | 2 +- drivers/video/fbdev/riva/nv_driver.c | 7 --- drivers/video/fbdev/riva/riva_hw.c | 20 +--- drivers/video/fbdev/riva/riva_hw.h | 3 ++- 4 files chang

[PATCH V4 05/26] agp: nvidia: deprecate pci_get_bus_and_slot()

2017-12-18 Thread Sinan Kaya
pci_get_bus_and_slot() with pci_get_domain_bus_and_slot() and extract the domain number from struct pci_dev. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/char/agp/nvidia-agp.c | 12 +--- drivers/char/agp/sworks-agp.c | 3 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff

[PATCH V4 04/26] ata: deprecate pci_get_bus_and_slot()

2017-12-18 Thread Sinan Kaya
pci_get_domain_bus_and_slot() and extract the actual domain number from the pdev passed in. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> Acked-by: Tejun Heo <t...@kernel.org> --- drivers/ata/pata_ali.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ata/pata_ali.c b

[PATCH V4 01/26] alpha/PCI: deprecate pci_get_bus_and_slot()

2017-12-18 Thread Sinan Kaya
the actual domain number from the device. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- arch/alpha/kernel/pci.c | 2 +- arch/alpha/kernel/sys_nautilus.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c

[PATCH V4 03/26] x86/PCI: deprecate pci_get_bus_and_slot()

2017-12-18 Thread Sinan Kaya
as the domain number is not available in struct irq_routing_table. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> Acked-by: Thomas Gleixner <t...@linutronix.de> --- arch/x86/pci/irq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/irq.c b/arch/x

[PATCH V4 22/26] video: fbdev: intelfb: deprecate pci_get_bus_and_slot()

2017-12-18 Thread Sinan Kaya
from pdev. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/video/fbdev/intelfb/intelfbhw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/video/fbdev/intelfb/intelfbhw.c b/drivers/video/fbdev/intelfb/intelfbhw.c index 83fec57..57aff74

[PATCH V4 08/26] drm/gma500: deprecate pci_get_bus_and_slot()

2017-12-18 Thread Sinan Kaya
to CDV_MSG_READ32, CDV_MSG_WRITE32, MRST_MSG_READ32, MRST_MSG_WRITE32, MDFLD_MSG_READ32, MDFLD_MSG_WRITE32. Extract pci_dev from struct drm_device and use pdev to find the domain number while calling pci_get_domain_bus_and_slot(). Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drive

[PATCH V4 07/26] ibft: deprecate pci_get_bus_and_slot()

2017-12-18 Thread Sinan Kaya
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. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> Acked-by: Konrad Rzeszutek Wilk <kon...@kernel.org>

[PATCH V4 12/26] powerpc/powermac: deprecate pci_get_bus_and_slot()

2017-12-18 Thread Sinan Kaya
number as 0 to match the previous behavior. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/macintosh/via-pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index e8b29fc..08849e3 100644 --- a/d

<    5   6   7   8   9   10   11   12   13   14   >