Received: by 10.192.165.156 with SMTP id m28csp254183imm; Tue, 17 Apr 2018 09:34:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx49ANDvHF8UGES3rNxRtoZXWbFouUhGt/Z5tKUZWzb+RxIZHSAGZCgX+LCmwQc/cJ6j2RT5a X-Received: by 10.99.145.196 with SMTP id l187mr2329619pge.261.1523982884953; Tue, 17 Apr 2018 09:34:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523982884; cv=none; d=google.com; s=arc-20160816; b=auEBYqh2/toQs5OUH1w03Im1bGrdXiIG2U35rotDXr6yMoGg8WLP0fjvQlWYTSCbAB NKIvmZkDfeJd5TsvIVkEcY6nSKEmTY/d8kfD8QZBlAehLk0AgD14MgIQSKYsVTeUoW6N IWKm/bV+6OXXfgmIbRjCBrA9XiVyKFNbdUoPvGwXR3rrpPe8+gJZhybjAylbF8onyPnJ fCT5doHRV89AVU+AjsYI42XOLldNuVvwFg8FC7bfzi+7p0ew06+7qzEEdwDMdWI8O2wM X1A/Nwf/SFYknCNuHsCejlZ7tcvgWLez+tQG/H0+RIN/xDvIkenWSQ9DcsthBX3/XNxc MnuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=j/kLEkVyo2+5/SMj9Z1tSHz3amvH60WUG/8Fmk/cAyg=; b=c6rXNb/UjJW2fkNP6IaADUzQmANECnpRiVXwf2r7VBatMvpOBQ9bdAZLrMemrfpbEK KsGHSvQmmq8XGBDH+RZ3dEgY289DSh+/XP6Cuh1DRRtm2esA8Kn1OYlXzGR3nE6CzR6A 2rVdi+QcUjavdvzmvBo1u4IJeHrD+iG5riYhAnqbLfzUZzxMBXkSNpVb01Sqryo6MxGS RWf8OGgkVPHYDT2Yfl6VSy0WL2lxdYKAQGPdO0q6mGA+zNBOWzYe+JcNUCO3C2LqOiG6 VvW667awCiUELVeEMfC+mNA0oyvA7EXF95BgTKGmKhaFLlQ/Bu4UazEgOUj1dIHTbnry Sguw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4-v6si9661238plf.543.2018.04.17.09.34.29; Tue, 17 Apr 2018 09:34:44 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755318AbeDQQIB (ORCPT + 99 others); Tue, 17 Apr 2018 12:08:01 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35372 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754477AbeDQQH6 (ORCPT ); Tue, 17 Apr 2018 12:07:58 -0400 Received: from localhost (unknown [46.44.180.42]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B4C5CEF0; Tue, 17 Apr 2018 16:07:57 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Marcel Holtmann Subject: [PATCH 4.14 34/49] Bluetooth: hci_bcm: Treat Interrupt ACPI resources as always being active-low Date: Tue, 17 Apr 2018 17:59:13 +0200 Message-Id: <20180417155716.648412181@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180417155715.032245882@linuxfoundation.org> References: <20180417155715.032245882@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hans de Goede commit bb5208b314c5127b716b2ee4f55803a8bb73b750 upstream. Older devices with a serdev attached bcm bt hci, use an Interrupt ACPI resource to describe the IRQ (rather then a GpioInt resource). These device seem to all claim the IRQ is active-high and seem to all need a DMI quirk to treat it as active-low. Instead simply always assume that Interrupt resource specified IRQs are always active-low. This fixes the bt device not being able to wake the host from runtime- suspend on the: Asus T100TAM, Asus T200TA, Lenovo Yoga2 and the Toshiba Encore, without the need to add 4 new DMI quirks for these models. This also allows us to remove 2 DMI quirks for the Asus T100TA and Asus T100CHI series. Likely the 2 remaining quirks can also be removed but I could not find a DSDT of these devices to verify this. Cc: stable@vger.kernel.org Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=198953 Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1554835 Signed-off-by: Hans de Goede Signed-off-by: Marcel Holtmann Signed-off-by: Greg Kroah-Hartman --- drivers/bluetooth/hci_bcm.c | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) --- a/drivers/bluetooth/hci_bcm.c +++ b/drivers/bluetooth/hci_bcm.c @@ -694,22 +694,6 @@ static const struct acpi_gpio_mapping ac #ifdef CONFIG_ACPI /* IRQ polarity of some chipsets are not defined correctly in ACPI table. */ static const struct dmi_system_id bcm_active_low_irq_dmi_table[] = { - { - .ident = "Asus T100TA", - .matches = { - DMI_EXACT_MATCH(DMI_SYS_VENDOR, - "ASUSTeK COMPUTER INC."), - DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100TA"), - }, - }, - { - .ident = "Asus T100CHI", - .matches = { - DMI_EXACT_MATCH(DMI_SYS_VENDOR, - "ASUSTeK COMPUTER INC."), - DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100CHI"), - }, - }, { /* Handle ThinkPad 8 tablets with BCM2E55 chipset ACPI ID */ .ident = "Lenovo ThinkPad 8", .matches = { @@ -730,7 +714,9 @@ static int bcm_resource(struct acpi_reso switch (ares->type) { case ACPI_RESOURCE_TYPE_EXTENDED_IRQ: irq = &ares->data.extended_irq; - dev->irq_active_low = irq->polarity == ACPI_ACTIVE_LOW; + if (irq->polarity != ACPI_ACTIVE_LOW) + dev_info(&dev->pdev->dev, "ACPI Interrupt resource is active-high, this is usually wrong, treating the IRQ as active-low\n"); + dev->irq_active_low = true; break; case ACPI_RESOURCE_TYPE_GPIO: