Received: by 10.192.165.148 with SMTP id m20csp235823imm; Thu, 19 Apr 2018 20:31:42 -0700 (PDT) X-Google-Smtp-Source: AIpwx48XYsi7pbwkLhI2L7ghK6V+Gf06wuDUZH2PtZ1RcOJWRxJ0+ayI2L8Gc13XA9FvTW4p5HaE X-Received: by 2002:a17:902:e8:: with SMTP id a95-v6mr8505008pla.274.1524195102552; Thu, 19 Apr 2018 20:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524195102; cv=none; d=google.com; s=arc-20160816; b=RNFC84S54i8JCaxz8FkWBc8G//8qZgzjXWnxwZfDCN1i/fb2vFz0YXZddT85wwrG28 V8fyx5UJ7ZfQM8pSJUDNN295VlHSeenIldcKK8FhLSjRAy1bGaXZOdYWLGibdxtD8EWK j+vWnQMpSsYWcL37CvCkglRl2BgM/OnMV5TNnBBkgrKx+Lka2BjP4h7dGRHTDOJjAwYe kU17Emlr8BE5nhK7NhXRr72JpHvdhuMO9GzmihlFbpIh9O3hySK0qsPBUd+IriWoV8uB +pzNd6SMT8fzqjf9Kx0M85IGM1bwUyacoEq0KOGtKk5p3EHzukIMpOWTI/g4ucONSdQj vH6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=xtGenbrPDy64ctw4HE1dSz69E/QV37k2+hJAB3TNhmc=; b=hQRKB18BHTe9DhswLlyUBtttSlTV0LwGkm3jZuAkkLCWQbNwySo/RZImEhCgvh5Rrl w6elsO1ljksvwAf1UE8Q+pS0WIHz9DrpE7ruYEvFrET0Yx5WmJ5Oh487F+1IIYXhTH+Z RjlqnIQqXjw2+l8V+XZuTxntTbBg5AeptJMUg9jQYZdCw1Eid0sMW9J1haJi4KHuQeOb rEV7vGyxLWXKjQ+yyeRfBeRuDKbh0VhPHjkGBP0f0Qo/xzvTQJ266y7j0U7FZj5HX+ea aceErphBPZWLZVKX5bAc8By/oZCy6vQ3C8sR5aZ7T2OTvzEMF8BrGYWFOIooQkIEZuoD eURg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 145si2439252pgd.561.2018.04.19.20.31.27; Thu, 19 Apr 2018 20:31:42 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754231AbeDTDaI (ORCPT + 99 others); Thu, 19 Apr 2018 23:30:08 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:44476 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754077AbeDTDaH (ORCPT ); Thu, 19 Apr 2018 23:30:07 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E0DD34023335; Fri, 20 Apr 2018 03:30:06 +0000 (UTC) Received: from rhp50.localdomain (ovpn-126-45.rdu2.redhat.com [10.10.126.45]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8EAB92166BAE; Fri, 20 Apr 2018 03:30:06 +0000 (UTC) From: Mark Salter To: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= Cc: "Rafael J . Wysocki" , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ACPI / scan: Fix regression related to X-Gene UARTs Date: Thu, 19 Apr 2018 23:29:47 -0400 Message-Id: <20180420032947.23023-1-msalter@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 20 Apr 2018 03:30:06 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 20 Apr 2018 03:30:06 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'msalter@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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; + INIT_LIST_HEAD(&resource_list); acpi_dev_get_resources(device, &resource_list, acpi_check_serial_bus_slave, -- 2.14.3