]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / resources: only reject zero length resources based at address zero
authorAndy Whitcroft <apw@canonical.com>
Thu, 19 Jun 2014 10:19:16 +0000 (11:19 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Jul 2014 20:11:09 +0000 (22:11 +0200)
commit34bc5cff47f823c519105951556c6b25d9d4f308
treed27803622cfaf7145ba25fcc548b0b075f5bf25a
parent764bc268679c6c5e049dcce83c6d7daa814af968
ACPI / resources: only reject zero length resources based at address zero

The recently merged change (in v3.14-rc6) to ACPI resource detection
(below) causes all zero length ACPI resources to be elided from the
table:

  commit 5dcc870446add47eed461a670e07731de10a2860
  Author: Zhang Rui <rui.zhang@intel.com>
  Date:   Thu Feb 27 11:37:15 2014 +0800

    ACPI / resources: ignore invalid ACPI device resources

This change has caused a regression in (at least) serial port detection
for a number of machines (see LP#1313981 [1]).  These seem to represent
their IO regions (presumably incorrectly) as a zero length region.
Reverting the above commit restores these serial devices.

Only elide zero length resources which lie at address 0.

Fixes: 5dcc870446ad (ACPI / resources: ignore invalid ACPI device resources)
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Cc: 3.14+ <stable@vger.kernel.org> # 3.14+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/resource.c