1. 16 Oct, 2016 2 commits
  2. 13 Sep, 2016 1 commit
  3. 31 Aug, 2016 2 commits
  4. 21 Aug, 2016 1 commit
  5. 18 Aug, 2016 1 commit
  6. 16 Aug, 2016 1 commit
    • Christoph Hellwig's avatar
      PCI: Use positive flags in pci_alloc_irq_vectors() · 4fe0d154
      Christoph Hellwig authored
      Instead of passing negative flags like PCI_IRQ_NOMSI to prevent use of
      certain interrupt types, pass positive flags like PCI_IRQ_LEGACY,
      PCI_IRQ_MSI, etc., to specify the acceptable interrupt types.
      
      This is based on a number of pending driver conversions that just happend
      to be a whole more obvious to read this way, and given that we have no
      users in the tree yet it can still easily be done.
      
      I've also added a PCI_IRQ_ALL_TYPES catchall to keep the case of accepting
      all interrupt types very simple.
      
      [bhelgaas: changelog, fix PCI_IRQ_AFFINITY doc typo, remove mention of
      PCI_IRQ_NOLEGACY]
      Signed-off-by: 's avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: 's avatarBjorn Helgaas <bhelgaas@google.com>
      Reviewed-by: 's avatarAlexander Gordeev <agordeev@redhat.com>
      4fe0d154
  7. 09 Aug, 2016 1 commit
  8. 04 Aug, 2016 2 commits
    • Rafael J. Wysocki's avatar
      ACPI / hotplug / PCI: Runtime resume bridges before bus rescans · dd7fd3a8
      Rafael J. Wysocki authored
      If a PCI bridge (or PCIe port) that is runtime-suspended gets an ACPI
      hotplug notification, such as a bus check, it has to be resumed before
      re-scanning the devices below it, or those devices will not be
      accessible and will be treated as hot-removed.
      
      Make that happen and let the bridge suspend again after the bus below it
      has been re-scanned.
      
      This is a replacement for commit 16468c78 ("ACPI / hotplug / PCI:
      Runtime resume bridge before rescan") that has been reverted, because it
      introduced a system resume regression (due to missing bridge->pci_dev
      checks that are necessary in case the notification is targeted at the
      host bridge) and it is necessary for the code added by commit
      006d44e4 ("PCI: Add runtime PM support for PCIe ports") to work as
      expected.
      Tested-by: 's avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: 's avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Signed-off-by: 's avatarLinus Torvalds <torvalds@linux-foundation.org>
      dd7fd3a8
    • Masahiro Yamada's avatar
      tree-wide: replace config_enabled() with IS_ENABLED() · 97f2645f
      Masahiro Yamada authored
      The use of config_enabled() against config options is ambiguous.  In
      practical terms, config_enabled() is equivalent to IS_BUILTIN(), but the
      author might have used it for the meaning of IS_ENABLED().  Using
      IS_ENABLED(), IS_BUILTIN(), IS_MODULE() etc.  makes the intention
      clearer.
      
      This commit replaces config_enabled() with IS_ENABLED() where possible.
      This commit is only touching bool config options.
      
      I noticed two cases where config_enabled() is used against a tristate
      option:
      
       - config_enabled(CONFIG_HWMON)
        [ drivers/net/wireless/ath/ath10k/thermal.c ]
      
       - config_enabled(CONFIG_BACKLIGHT_CLASS_DEVICE)
        [ drivers/gpu/drm/gma500/opregion.c ]
      
      I did not touch them because they should be converted to IS_BUILTIN()
      in order to keep the logic, but I was not sure it was the authors'
      intention.
      
      Link: http://lkml.kernel.org/r/1465215656-20569-1-git-send-email-yamada.masahiro@socionext.comSigned-off-by: 's avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Acked-by: 's avatarKees Cook <keescook@chromium.org>
      Cc: Stas Sergeev <stsp@list.ru>
      Cc: Matt Redfearn <matt.redfearn@imgtec.com>
      Cc: Joshua Kinard <kumba@gentoo.org>
      Cc: Jiri Slaby <jslaby@suse.com>
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Cc: Borislav Petkov <bp@suse.de>
      Cc: Markos Chandras <markos.chandras@imgtec.com>
      Cc: "Dmitry V. Levin" <ldv@altlinux.org>
      Cc: yu-cheng yu <yu-cheng.yu@intel.com>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Johannes Berg <johannes@sipsolutions.net>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Will Drewry <wad@chromium.org>
      Cc: Nikolay Martynov <mar.kolya@gmail.com>
      Cc: Huacai Chen <chenhc@lemote.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Daniel Borkmann <daniel@iogearbox.net>
      Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
      Cc: Rafal Milecki <zajec5@gmail.com>
      Cc: James Cowgill <James.Cowgill@imgtec.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Alex Smith <alex.smith@imgtec.com>
      Cc: Adam Buchbinder <adam.buchbinder@gmail.com>
      Cc: Qais Yousef <qais.yousef@imgtec.com>
      Cc: Jiang Liu <jiang.liu@linux.intel.com>
      Cc: Mikko Rapeli <mikko.rapeli@iki.fi>
      Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: Brian Norris <computersforpeace@gmail.com>
      Cc: Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com>
      Cc: "Luis R. Rodriguez" <mcgrof@do-not-panic.com>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
      Cc: Roland McGrath <roland@hack.frob.com>
      Cc: Paul Burton <paul.burton@imgtec.com>
      Cc: Kalle Valo <kvalo@qca.qualcomm.com>
      Cc: Viresh Kumar <viresh.kumar@linaro.org>
      Cc: Tony Wu <tung7970@gmail.com>
      Cc: Huaitong Han <huaitong.han@intel.com>
      Cc: Sumit Semwal <sumit.semwal@linaro.org>
      Cc: Alexei Starovoitov <ast@kernel.org>
      Cc: Juergen Gross <jgross@suse.com>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Cc: Andrea Gelmini <andrea.gelmini@gelma.net>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Marc Zyngier <marc.zyngier@arm.com>
      Cc: Rabin Vincent <rabin@rab.in>
      Cc: "Maciej W. Rozycki" <macro@imgtec.com>
      Cc: David Daney <david.daney@cavium.com>
      Signed-off-by: 's avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: 's avatarLinus Torvalds <torvalds@linux-foundation.org>
      97f2645f
  9. 03 Aug, 2016 1 commit
  10. 02 Aug, 2016 1 commit
  11. 01 Aug, 2016 14 commits
    • Paul Gortmaker's avatar
      PCI: xgene: Make explicitly non-modular · 50dcd290
      Paul Gortmaker authored
      This code is not being built as a module by anyone:
      
        drivers/pci/host/Kconfig:config PCI_XGENE
        drivers/pci/host/Kconfig:       bool "X-Gene PCIe controller"
      
      Remove uses of MODULE_DESCRIPTION(), MODULE_AUTHOR(), MODULE_LICENSE(),
      etc., so that when reading the driver there is no doubt it is builtin-only.
      The information is preserved in comments at the top of the file.
      
      Replace module_platform_driver() with builtin_platform_driver(), which uses
      the same init level priority, so init ordering is unchanged.
      
      [bhelgaas: changelog]
      Signed-off-by: 's avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: 's avatarBjorn Helgaas <bhelgaas@google.com>
      CC: Tanmay Inamdar <tinamdar@apm.com>
      50dcd290
    • Paul Gortmaker's avatar
      PCI: thunder-pem: Make explicitly non-modular · 0b3cd164
      Paul Gortmaker authored
      This code is not being built as a module by anyone:
      
        drivers/pci/host/Kconfig:config PCI_HOST_THUNDER_PEM
        drivers/pci/host/Kconfig:       bool "Cavium Thunder PCIe controller to off-chip devices"
      
      Remove uses of MODULE_DESCRIPTION(), MODULE_AUTHOR(), MODULE_LICENSE(),
      etc., so that when reading the driver there is no doubt it is builtin-only.
      The information is preserved in comments at the top of the file.
      
      Replace module_platform_driver() with builtin_platform_driver(), which uses
      the same init level priority, so init ordering is unchanged.
      
      Note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      [bhelgaas: changelog]
      Signed-off-by: 's avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: 's avatarBjorn Helgaas <bhelgaas@google.com>
      CC: David Daney <david.daney@cavium.com>
      0b3cd164
    • Paul Gortmaker's avatar
      PCI: thunder-ecam: Make explicitly non-modular · d0c6fd76
      Paul Gortmaker authored
      This code is not being built as a module by anyone:
      
        drivers/pci/host/Kconfig:config PCI_HOST_THUNDER_ECAM
        drivers/pci/host/Kconfig:       bool "Cavium Thunder ECAM controller to on-chip devices on pass-1.x silicon"
      
      Remove uses of MODULE_DESCRIPTION(), MODULE_AUTHOR(), MODULE_LICENSE(),
      etc., so that when reading the driver there is no doubt it is builtin-only.
      The information is preserved in comments at the top of the file.
      
      Replace module_platform_driver() with builtin_platform_driver(), which uses
      the same init level priority, so init ordering is unchanged.
      
      Note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      [bhelgaas: changelog]
      Signed-off-by: 's avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: 's avatarBjorn Helgaas <bhelgaas@google.com>
      CC: David Daney <david.daney@cavium.com>
      d0c6fd76
    • Paul Gortmaker's avatar
      PCI: tegra: Make explicitly non-modular · ad183271
      Paul Gortmaker authored
      This code is not being built as a module by anyone:
      
        drivers/pci/host/Kconfig:config PCI_TEGRA
        drivers/pci/host/Kconfig:       bool "NVIDIA Tegra PCIe controller"
      
      Remove uses of MODULE_DESCRIPTION(), MODULE_AUTHOR(), MODULE_LICENSE(),
      etc., so that when reading the driver there is no doubt it is builtin-only.
      The information is preserved in comments at the top of the file.
      
      Replace module_platform_driver() with builtin_platform_driver(), which uses
      the same init level priority, so init ordering is unchanged.
      
      Note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      [bhelgaas: changelog]
      Signed-off-by: 's avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: 's avatarBjorn Helgaas <bhelgaas@google.com>
      CC: Thierry Reding <thierry.reding@gmail.com>
      CC: Stephen Warren <swarren@wwwdotorg.org>
      CC: Alexandre Courbot <gnurou@gmail.com>
      CC: linux-tegra@vger.kernel.org
      ad183271
    • Paul Gortmaker's avatar
      PCI: rcar-gen2: Make explicitly non-modular · 0b9c1589
      Paul Gortmaker authored
      This code is not being built as a module by anyone:
      
        drivers/pci/host/Kconfig:config PCI_RCAR_GEN2
        drivers/pci/host/Kconfig:       bool "Renesas R-Car Gen2 Internal PCI controller"
      
      Remove uses of MODULE_DESCRIPTION(), MODULE_AUTHOR(), MODULE_LICENSE(),
      etc., so that when reading the driver there is no doubt it is builtin-only.
      The information is preserved in comments at the top of the file.
      
      Replace module_platform_driver() with builtin_platform_driver(), which uses
      the same init level priority, so init ordering is unchanged.
      
      Note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      [bhelgaas: changelog, remove "Module" from author comment]
      Signed-off-by: 's avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: 's avatarBjorn Helgaas <bhelgaas@google.com>
      Acked-by: 's avatarSimon Horman <horms+renesas@verge.net.au>
      Acked-by: 's avatarPhil Edworthy <phil.edworthy@renesas.com>
      CC: Valentine Barshak <valentine.barshak@cogentembedded.com>
      0b9c1589
    • Paul Gortmaker's avatar
      PCI: rcar: Make explicitly non-modular · 42d10719
      Paul Gortmaker authored
      This code is not being built as a module by anyone:
      
        drivers/pci/host/Kconfig:config PCI_RCAR_GEN2_PCIE
        drivers/pci/host/Kconfig:       bool "Renesas R-Car PCIe controller"
      
      Remove uses of MODULE_DESCRIPTION(), MODULE_AUTHOR(), MODULE_LICENSE(),
      etc., so that when reading the driver there is no doubt it is builtin-only.
      The information is preserved in comments at the top of the file.
      
      Replace module_platform_driver() with builtin_platform_driver(), which uses
      the same init level priority, so init ordering is unchanged.
      
      Note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      [bhelgaas: changelog, remove "Module" from author comment]
      Signed-off-by: 's avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: 's avatarBjorn Helgaas <bhelgaas@google.com>
      Acked-by: 's avatarSimon Horman <horms+renesas@verge.net.au>
      Acked-by: 's avatarPhil Edworthy <phil.edworthy@renesas.com>
      42d10719
    • Paul Gortmaker's avatar
      PCI: mvebu: Make explicitly non-modular · 82641d9b
      Paul Gortmaker authored
      This code is not being built as a module by anyone:
      
        drivers/pci/host/Kconfig:config PCI_MVEBU
        drivers/pci/host/Kconfig:       bool "Marvell EBU PCIe controller"
      
      Remove uses of MODULE_DESCRIPTION(), MODULE_AUTHOR(), MODULE_LICENSE(),
      etc., so that when reading the driver there is no doubt it is builtin-only.
      The information is preserved in comments at the top of the file.
      
      Replace module_platform_driver() with builtin_platform_driver(), which uses
      the same init level priority, so init ordering is unchanged.
      
      Note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      [bhelgaas: changelog, remove "Module" from author comment]
      Signed-off-by: 's avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: 's avatarBjorn Helgaas <bhelgaas@google.com>
      Reviewed-by: 's avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      CC: Jason Cooper <jason@lakedaemon.net>
      82641d9b
    • Paul Gortmaker's avatar
      PCI: layerscape: Make explicitly non-modular · 154fb600
      Paul Gortmaker authored
      This code is not being built as a module by anyone:
      
        drivers/pci/host/Kconfig:config PCI_LAYERSCAPE
        drivers/pci/host/Kconfig:       bool "Freescale Layerscape PCIe controller"
      
      Remove uses of MODULE_DESCRIPTION(), MODULE_AUTHOR(), MODULE_LICENSE(),
      etc., so that when reading the driver there is no doubt it is builtin-only.
      The information is preserved in comments at the top of the file.
      
      Replace module_platform_driver() with builtin_platform_driver(), which uses
      the same init level priority, so init ordering is unchanged.
      
      Note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      [bhelgaas: changelog]
      Signed-off-by: 's avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: 's avatarBjorn Helgaas <bhelgaas@google.com>
      CC: Minghuan Lian <minghuan.Lian@freescale.com>
      CC: Mingkai Hu <mingkai.hu@freescale.com>
      CC: Roy Zang <tie-fei.zang@freescale.com>
      154fb600
    • Paul Gortmaker's avatar
      PCI: keystone: Make explicitly non-modular · 1481bf21
      Paul Gortmaker authored
      This code is not being built as a module by anyone:
      
        drivers/pci/host/Kconfig:config PCI_KEYSTONE
        drivers/pci/host/Kconfig:       bool "TI Keystone PCIe controller"
      
      Remove uses of MODULE_DESCRIPTION(), MODULE_AUTHOR(), MODULE_LICENSE(),
      etc., so that when reading the driver there is no doubt it is builtin-only.
      The information is preserved in comments at the top of the file.
      
      Replace module_platform_driver() with builtin_platform_driver(), which uses
      the same init level priority, so init ordering is unchanged.
      
      Note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      [bhelgaas: changelog]
      Signed-off-by: 's avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: 's avatarBjorn Helgaas <bhelgaas@google.com>
      Tested-By: 's avatarMurali Karicheri <m-karicheri2@ti.com>
      1481bf21
    • Paul Gortmaker's avatar
      PCI: hisi: Make explicitly non-modular · fb38118d
      Paul Gortmaker authored
      This code is not being built as a module by anyone:
      
        host/Kconfig:config PCI_HISI
        host/Kconfig:    bool "HiSilicon Hip05 and Hip06 SoCs PCIe controllers"
      
      Remove uses of MODULE_DESCRIPTION(), MODULE_AUTHOR(), MODULE_LICENSE(),
      etc., so that when reading the driver there is no doubt it is builtin-only.
      The information is preserved in comments at the top of the file.
      
      Replace module_platform_driver() with builtin_platform_driver(), which uses
      the same init level priority, so init ordering is unchanged.
      
      Note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      [bhelgaas: changelog]
      Signed-off-by: 's avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: 's avatarBjorn Helgaas <bhelgaas@google.com>
      CC: Zhou Wang <wangzhou1@hisilicon.com>
      CC: Dacai Zhu <zhudacai@hisilicon.com>
      CC: Gabriele Paoloni <gabriele.paoloni@huawei.com>
      fb38118d
    • Paul Gortmaker's avatar
      PCI: generic: Make explicitly non-modular · 99849bf3
      Paul Gortmaker authored
      This code is not being built as a module by anyone:
      
        drivers/pci/host/Kconfig:config PCI_HOST_GENERIC
        drivers/pci/host/Kconfig:       bool "Generic PCI host controller"
      
      Remove uses of MODULE_DESCRIPTION(), MODULE_AUTHOR(), MODULE_LICENSE(),
      etc., so that when reading the driver there is no doubt it is builtin-only.
      The information is preserved in comments at the top of the file.
      
      Replace module_platform_driver() with builtin_platform_driver(), which uses
      the same init level priority, so init ordering is unchanged.
      
      Note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      [bhelgaas: changelog]
      Signed-off-by: 's avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: 's avatarBjorn Helgaas <bhelgaas@google.com>
      Acked-by: 's avatarWill Deacon <will.deacon@arm.com>
      99849bf3
    • Paul Gortmaker's avatar
      PCI: designware-plat: Make it explicitly non-modular · ca8d3346
      Paul Gortmaker authored
      This code is not being built as a module by anyone:
      
        drivers/pci/host/Kconfig:config PCIE_DW_PLAT
        drivers/pci/host/Kconfig:       bool "Platform bus based DesignWare PCIe Controller"
      
      Remove uses of MODULE_DESCRIPTION(), MODULE_AUTHOR(), MODULE_LICENSE(),
      etc., so that when reading the driver there is no doubt it is builtin-only.
      The information is preserved in comments at the top of the file.
      
      Replace module_platform_driver() with builtin_platform_driver(), which uses
      the same init level priority, so init ordering is unchanged.
      
      Note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      [bhelgaas: changelog]
      Signed-off-by: 's avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: 's avatarBjorn Helgaas <bhelgaas@google.com>
      Acked-by: 's avatarJoao Pinto <jpinto@synopsys.com>
      CC: Jingoo Han <jingoohan1@gmail.com>
      CC: Pratyush Anand <pratyush.anand@gmail.com>
      ca8d3346
    • Paul Gortmaker's avatar
      PCI: artpec6: Make explicitly non-modular · 58bdaa1d
      Paul Gortmaker authored
      This code is not being built as a module by anyone:
      
        drivers/pci/host/Kconfig:config PCIE_ARTPEC6
        drivers/pci/host/Kconfig:       bool "Axis ARTPEC-6 PCIe controller"
      
      Remove uses of MODULE_DESCRIPTION(), MODULE_AUTHOR(), MODULE_LICENSE(),
      etc., so that when reading the driver there is no doubt it is builtin-only.
      The information is preserved in comments at the top of the file.
      
      Replace module_platform_driver() with builtin_platform_driver(), which uses
      the same init level priority, so init ordering is unchanged.
      
      Note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      [bhelgaas: changelog, add "Author" comment]
      Signed-off-by: 's avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: 's avatarBjorn Helgaas <bhelgaas@google.com>
      CC: Niklas Cassel <niklas.cassel@axis.com>
      CC: Jesper Nilsson <jesper.nilsson@axis.com>
      58bdaa1d
    • Paul Gortmaker's avatar
      PCI: armada8k: Make explicitly non-modular · 0e6f98cb
      Paul Gortmaker authored
      This code is not being built as a module by anyone:
      
        drivers/pci/host/Kconfig:config PCIE_ARMADA_8K
        drivers/pci/host/Kconfig:       bool "Marvell Armada-8K PCIe controller"
      
      Remove uses of MODULE_DESCRIPTION(), MODULE_AUTHOR(), MODULE_LICENSE(),
      etc., so that when reading the driver there is no doubt it is builtin-only.
      The information is preserved in comments at the top of the file.
      
      Replace module_platform_driver() with builtin_platform_driver(), which uses
      the same init level priority, so init ordering is unchanged.
      
      Note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      [bhelgaas: changelog]
      Signed-off-by: 's avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: 's avatarBjorn Helgaas <bhelgaas@google.com>
      CC: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
      0e6f98cb
  12. 29 Jul, 2016 2 commits
  13. 26 Jul, 2016 3 commits
  14. 25 Jul, 2016 8 commits