Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp252715yba; Mon, 20 May 2019 08:09:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrNABpSSwb/mF07lThLB28Xy/7HLvClrcszKchRtgjn+IvyqPzzs2r3fpnb/Nop+itMw4v X-Received: by 2002:a17:902:e492:: with SMTP id cj18mr19110118plb.341.1558364972778; Mon, 20 May 2019 08:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558364972; cv=none; d=google.com; s=arc-20160816; b=p+jOb9wEuN/MG2IVaeqYp/kh9NQKzKtgApKf1l1FFueCd36brznBFal1HF7e4OIx5U BlMVzBzZJDS5L/Du32ljncajvwVH1QMoSViYOHN3b7QL3wrKCkjGz1oiU6MI7VdZ8TQg WWJHaTMixuePNpX1EhyDXkGEmyuOO7+1Cf1I34Q8WG2ThUpNcCDgBn8GjVdFgVp3CZVe DPKbfWI+HPmwyrG+UjVCZoli+WR5ACDlNbSdVpgLOX/eP00m+Xxm77gTGV0ingXhXufy xz74JXu9dsVbB2NtgfsJMBxjttBoI8sdQvhCpeb8+2DMS9Mr0ZIZpo6QfDgEUm0jD6Mj ZvXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qLIjbUM+Bm674uNMFHDbdAdA/DH4GqeUrEcRU3/7MNk=; b=Xl/VpllWU9n0O/Yp8kRxnMc1r4GzGezkt59DaOb9REXKcLCIaxXLtHNmvVjb/Vexys eF5qpONFrDU2794JKQYsa+IQ+W/IOdvp3wClEtTlW9xadKyytLo/5rIVKua0gGWojicK +8p5U1sJGKjnlpBFPcXReWgxJ+hEZz58O1NTUBsdcfm2jeaxiqOeZvQkPspQmEAmO/Bd uxNrhi41p2dPOqhXFoSJBO1RRLUN5P4x7P8RLF1utE25Fj+L8j2H2j4EVNbjiI4g+Anc JvxxI9PqhrB1k2rHyIoSwWafH+3+AU6WcH6J+kcCAIxBYKgFlPo4PEwRY12CeIe/WFDn szIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1glLL6Oo; 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 c83si20339058pfc.246.2019.05.20.08.09.18; Mon, 20 May 2019 08:09:32 -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=pass header.i=@kernel.org header.s=default header.b=1glLL6Oo; 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 S2388278AbfETMW7 (ORCPT + 99 others); Mon, 20 May 2019 08:22:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:37104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388259AbfETMW4 (ORCPT ); Mon, 20 May 2019 08:22:56 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DB784216C4; Mon, 20 May 2019 12:22:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558354975; bh=kYit0N1s3XyiwEJ9BAPv+JHUmMpjAlox7xrrRbfxqOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1glLL6OoHybrzoQYJsmNTngAa0aUWgfkOp0ATCrznFifzR6itv7gMmSgs5tHL79H+ u5C6hMRGqKuY/NHjgCMs+/WgwhKCj4TmEEfY1iIMWxXs3YaK0nawGzKikgJBaG5J6a hh5ZqiUVMWiDyJBywN9XOxRRfLaK9SD9UnEheXmw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Sebastian Reichel Subject: [PATCH 4.19 011/105] power: supply: axp288_fuel_gauge: Add ACEPC T8 and T11 mini PCs to the blacklist Date: Mon, 20 May 2019 14:13:17 +0200 Message-Id: <20190520115247.828904395@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190520115247.060821231@linuxfoundation.org> References: <20190520115247.060821231@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede commit 9274c78305e12c5f461bec15f49c38e0f32ca705 upstream. The ACEPC T8 and T11 Cherry Trail Z8350 mini PCs use an AXP288 and as PCs, rather then portables, they does not have a battery. Still for some reason the AXP288 not only thinks there is a battery, it actually thinks it is discharging while the PC is running, slowly going to 0% full, causing userspace to shutdown the system due to the battery being critically low after a while. This commit adds the ACEPC T8 and T11 to the axp288 fuel-gauge driver blacklist, so that we stop reporting bogus battery readings on this device. BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1690852 Cc: stable@vger.kernel.org Signed-off-by: Hans de Goede Signed-off-by: Sebastian Reichel Signed-off-by: Greg Kroah-Hartman --- drivers/power/supply/axp288_fuel_gauge.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) --- a/drivers/power/supply/axp288_fuel_gauge.c +++ b/drivers/power/supply/axp288_fuel_gauge.c @@ -696,6 +696,26 @@ intr_failed: */ static const struct dmi_system_id axp288_fuel_gauge_blacklist[] = { { + /* ACEPC T8 Cherry Trail Z8350 mini PC */ + .matches = { + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "To be filled by O.E.M."), + DMI_EXACT_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), + DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "T8"), + /* also match on somewhat unique bios-version */ + DMI_EXACT_MATCH(DMI_BIOS_VERSION, "1.000"), + }, + }, + { + /* ACEPC T11 Cherry Trail Z8350 mini PC */ + .matches = { + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "To be filled by O.E.M."), + DMI_EXACT_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), + DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "T11"), + /* also match on somewhat unique bios-version */ + DMI_EXACT_MATCH(DMI_BIOS_VERSION, "1.000"), + }, + }, + { /* Intel Cherry Trail Compute Stick, Windows version */ .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),