1. 08 Mar, 2021 3 commits
    • Rafael J. Wysocki's avatar
      ACPI: PCI: Drop ACPI_PCI_COMPONENT that is not used any more · 866d6cdf
      Rafael J. Wysocki authored
      After dropping all of the code using ACPI_PCI_COMPONENT drop the
      definition of it too and update the documentation to remove all
      ACPI_PCI_COMPONENT references from it.
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Reviewed-by: default avatarHanjun Guo <guohanjun@huawei.com>
      866d6cdf
    • Rafael J. Wysocki's avatar
      ACPI: PCI: Replace ACPI_DEBUG_PRINT() and ACPI_EXCEPTION() · c02b2fcd
      Rafael J. Wysocki authored
      The ACPI_DEBUG_PRINT() and ACPI_EXCEPTION() macros are used for
      message printing in the ACPICA code and they should not be used
      elsewhere.  Special configuration (either kernel command line or
      sysfs-based) is needed to see the messages printed by them and
      the format of those messages is also special and convoluted.
      
      For this reason, replace all of the ACPI_DEBUG_PRINT() and
      ACPI_EXCEPTION() instances in pci_link.c with acpi_handle_*() calls
      relative to the ACPI handle of the given link device (wherever that
      handle is readily available) or pr_debug() invocations.
      
      While at it, make acpi_pci_link_check_current() print all messages
      with pr_debug(), because all of them are in the same category (_CRS
      return buffer issues) and they all should be printed at the same log
      level.
      
      Also make acpi_pci_link_set() use acpi_handle_*() for printing all
      messages for consistency.
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Reviewed-by: default avatarHanjun Guo <guohanjun@huawei.com>
      c02b2fcd
    • Rafael J. Wysocki's avatar
      ACPI: PCI: IRQ: Consolidate printing diagnostic messages · bf5144a6
      Rafael J. Wysocki authored
      The code in pci_irq.c prints diagnostic messages using different
      and inconsistent methods.  The majority of them are printed with
      the help of the dev_*() familiy of logging functions, but
      ACPI_DEBUG_PRINT() and ACPI_DEBUG_PRINT_RAW() are still used in
      some places which requires the ACPICA debug to be enabled
      additionally which is a nuisance and one message is printed
      using the raw printk().
      
      To consolidate the printing of messages in that code, convert all of
      the ACPI_DEBUG_PRINT() instances in it into dev_dbg(), which is
      consistent with the way the other messages are printed by it,
      replace the only ACPI_DEBUG_PRINT_RAW() instance with pr_debug() and
      make it use pr_warn() istead of printk(KERN_WARNING ).
      
      Also add a pr_fmt() definition to that file and drop the
      _COMPONENT and ACPI_MODULE_NAME() definitions that are not used
      any more after the above changes.
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Reviewed-by: default avatarHanjun Guo <guohanjun@huawei.com>
      bf5144a6
  2. 06 Mar, 2021 4 commits
  3. 05 Mar, 2021 33 commits