Received: by 10.192.165.148 with SMTP id m20csp2203237imm; Sun, 22 Apr 2018 02:35:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Bk+WBVsYGhJZGRKTXycvWSiKByPEc3QCP6HiQ/Z/xicLdj5Kl6LtLojcROy+evR6SEU6A X-Received: by 10.99.127.88 with SMTP id p24mr13431818pgn.290.1524389749560; Sun, 22 Apr 2018 02:35:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524389749; cv=none; d=google.com; s=arc-20160816; b=jwA7DauBSvn3soJqPKIvEzMEiXYZT7R6K/oz2dY86WM5Iv6NvqqdlFDfv+OdSfY85K W+pYkQqvO1nI3vgRxQCbw5+EOJK4TN+ZVBdsFVBlVEwux8QGhFX0xdW7R0bKsZWIKNuB 6t0dnQOsKXoumnwGOc0IDBapRk10oLsu97XhvcwNSPUQIwDl9IbqKmG0KIOxvxUsRsyO f8yX8AWMVYIu4WWHK0FXQfgzyf84ppW+t7hf3du8izuGIRd1kGJeaBKKqulc3PomyeP3 Mq8Cik7s6ffinrw4+PGM5lvs+EuNoGqvxZFRQJDM1NRvlEZ2JWirq6aE5BL+2rogHPPu YlvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=5TKkDzx1txj11RJ93JGGYpWllE+jn+GGCQuiMjy4bdM=; b=CAw2hGtVnGPYcGq48zGx1KwQ6PZ527tQw3C9F4iFmTPa3eF//8BfFK4bIktIP8KzfM B5Wz/I3zcpZWyAdiJpbsrkxmIJPF9/I4tvgHVP2i4wsfVbGvs/HRiy5Q1hfFanHGK9mq vuoVGmkArH65Jrs2yZNjfdwJBrC1fAYWPB51iW6vAeuhXA7SD311Erf5SnsRyPZQCARp m0TjNPYgo7LR3LM5RPATcGaLKZfTFFtEFZxyKph4jFG1g7M+sW7cNaafA3cQO51gUnKf K1u1c8LIC4ACWZ2ILI7eWMOB+XNhdkRjhtTEbFYMGSXfYc9MWpVlUtgoYUpW42Cb73RM VLzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=EcAPj+Ca; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l187si7859060pge.46.2018.04.22.02.35.34; Sun, 22 Apr 2018 02:35:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=EcAPj+Ca; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751426AbeDVJeK (ORCPT + 99 others); Sun, 22 Apr 2018 05:34:10 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:38498 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750854AbeDVJeH (ORCPT ); Sun, 22 Apr 2018 05:34:07 -0400 Received: by mail-oi0-f67.google.com with SMTP id y20-v6so11668838oix.5; Sun, 22 Apr 2018 02:34:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=5TKkDzx1txj11RJ93JGGYpWllE+jn+GGCQuiMjy4bdM=; b=EcAPj+Cai0YbXDyNNjCAOtWcq5H7/P+TYmvKVc7/M4FbskoYpLy5GUE5x8lccJDGL+ 198dpErEb/Jq+CqvGwOKul7rATv3CYEuR3pKJQKAThURvzlkmJDqZqERgRZaJ4kH4kdx RL55HsuGcy3W+24/9sLUzIhR1FGMCdGj9jGd5sbNNviAb9l4Rnmq+b8slTTE67LAXFKQ Ychz7RkvANCjSBeHpQDwPDgiC+0tBb6Rqzj++CLwlIxoH33+wVDBqWJFL7vF4y6wmbp4 1c+UqcqCTElf3ixKxQDPU6tX7ExrJiyPK9zt0a02uNp+RLBhTDbEZrQarKeSWxM4anSP P2mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=5TKkDzx1txj11RJ93JGGYpWllE+jn+GGCQuiMjy4bdM=; b=E7NmiKo9XuKL63Ma/EeMrjjhDzcM5v37sZx5touqv3iK+C+TqFhCtTFaYZICpLYyh5 rHek/JxRjPPiAAJQ/6WMQOvBUqX3KqQGakYDYbAWLIqIEI+Cv5iHQy/VzxUXZBjlSGZg xTiUCoazsE0iBU6k/kLPXIZEgLLP02mqSi/uwicbcxfDkZulafSwnMzeAxLSl++w7nZg yh6O9oko4qnDKzkXr1RvUNwourpZXhNWpMB7hYIuhhjULt9Mg9Qo+Gtlfcim2ENw0m5L Cev61Bluls34xtdpHRAK9Di0Te5kw9D28rwhO3xAv5ao7oF7SKdgbqsovhrBhMOcCHOF L1YQ== X-Gm-Message-State: ALQs6tCIU64y8J0MIGrgapINnapZeFDj3VI+WzE+Dq65wP9xo/Lfak1Y CZ23TS6qpDbIavZwN3GwkIU5j+LTgXMs/0gf/xY= X-Received: by 2002:aca:e1c1:: with SMTP id y184-v6mr9809153oig.120.1524389646504; Sun, 22 Apr 2018 02:34:06 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1467:0:0:0:0:0 with HTTP; Sun, 22 Apr 2018 02:34:06 -0700 (PDT) In-Reply-To: <20180420032947.23023-1-msalter@redhat.com> References: <20180420032947.23023-1-msalter@redhat.com> From: "Rafael J. Wysocki" Date: Sun, 22 Apr 2018 11:34:06 +0200 X-Google-Sender-Auth: d4A243CZhlUGlCLpy33mlERe4jw Message-ID: Subject: Re: [PATCH] ACPI / scan: Fix regression related to X-Gene UARTs To: Mark Salter Cc: =?UTF-8?B?RnLDqWTDqXJpYyBEYW5pcw==?= , "Rafael J . Wysocki" , ACPI Devel Maling List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 20, 2018 at 5:29 AM, Mark Salter wrote: > Commit e361d1f85855 ("ACPI / scan: Fix enumeration for special UART > devices") caused a regression with some X-Gene based platforms (Mustang > and M400) with invalid DSDT. I'm not convinced that making changes to the core ACPI device enumeration code in order to cover up for firmware bugs is the right approach. > The DSDT makes it appear that the UART > device is also a slave device attached to itself. With the above commit > the UART won't be enumerated by ACPI scan (slave serial devices shouldn't > be). So check for X-Gene UART device and skip slace device check on it. > > Signed-off-by: Mark Salter > --- > drivers/acpi/scan.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c > index cc234e6a6297..1dcdd0122862 100644 > --- a/drivers/acpi/scan.c > +++ b/drivers/acpi/scan.c > @@ -1551,6 +1551,14 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device) > fwnode_property_present(&device->fwnode, "baud"))) > return true; > > + /* > + * Firmware on some arm64 X-Gene platforms will make the UART > + * device appear as both a UART and a slave of that UART. Just > + * bail out here for X-Gene UARTs. > + */ > + if (!strcmp(acpi_device_hid(device), "APMC0D08")) > + return false; Is the device ID never to be used outside of the broken configurations? Even if that's the plan, how are you going to guarantee that anyway? > + > INIT_LIST_HEAD(&resource_list); > acpi_dev_get_resources(device, &resource_list, > acpi_check_serial_bus_slave, > --