Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2923154iog; Mon, 27 Jun 2022 05:52:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vHR6YCrtzP04BrKfcSrQW4Ybxty1IjAxw+4NZO2kwJUXdx8/NUPJPJqRzrBdMFwLm8Sl8Z X-Received: by 2002:a17:902:ab87:b0:162:26cf:bf7a with SMTP id f7-20020a170902ab8700b0016226cfbf7amr13932558plr.168.1656334323574; Mon, 27 Jun 2022 05:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656334323; cv=none; d=google.com; s=arc-20160816; b=QMB6YHOVQSDcN4dIiL1ubyoW49MNCMPS8AT9YNTvmoIPPyJ0ITPMmmMovE5ctvmPCF BZtE2MOSHlWPefpdCIFRgjiVORWpOfLQSxPcFxHpd4WwTYT7zKF3mhVyByWaFhSy8tVD 5a5MJ7S8XS5LiMFWXON9OVhOS33+6QkWsL/OnTZoDHAhWy8MTNX0lbBdoVF9mbwLpQqX l62oZaEmYTMNXbfFJUPmn+3sViNVUcqZDNe39Jm9GNc8/wqO+ZxxKWgfvO3BrYQ2yGvG mCdYAc3z5j91/QYL2d9itlkIeVANGqKvIeDU/NOrVJICnmtloVHd3ybarGO5mva4j+96 thlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=owa5NRLG99yig+2Qw0AcsD3DJxvfb61x8pbB2azoLh4=; b=taverKXRn+uclwRDrK8VGcjqBmW5uNaMwyQV3KzWE0MrAye0XVggtdLahQne57/XQg HWskA64a+u7PEIgdl07stxDUt43lFq1Au3f4V1IKLTCXJCTuvwMonoxF4AgJhOr7h+NE tzzCiVRc2gPeKEY36cT4Vrk8JbuQe7yRspeho5yYgqB1J9htubxzSE+TXdm62ZRHYXxf 97VSz7Dowb7foYU/wbLnbSHfy3MgzbeenjmMmwmEyC30EX3NqfaDEunYu5ZIVT/wQyPO RydXHyqdv4iHQ0kQiEFND3iHLKe9IHslth1a1qSCntavd6GmlDDiJTwl0yscmomrglMh Sqew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="BY/HP/TY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020aa78f05000000b0051c31974ad5si7500207pfr.65.2022.06.27.05.51.52; Mon, 27 Jun 2022 05:52:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="BY/HP/TY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235980AbiF0Lf6 (ORCPT + 99 others); Mon, 27 Jun 2022 07:35:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236382AbiF0Ldp (ORCPT ); Mon, 27 Jun 2022 07:33:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0873B71; Mon, 27 Jun 2022 04:31:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8CA166150E; Mon, 27 Jun 2022 11:31:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9196DC3411D; Mon, 27 Jun 2022 11:31:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656329465; bh=vgvNJrHBHS9C46/WmKV1U9Crcq8Uj+IGHmrgSflbAnM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BY/HP/TYdDG9uB39Q3V6eH6cfR2FaF4nlbNDPZyfqLLIlqYQymKv3bFT27ugF8msh a/kXwRO4HGL/1AgvLriQuuCoGrM7BSOaOcCvfnzRmjI50aJgUsm0hTklH4zMt/6dC4 Z3pdI+OZTeDIPISUeKtqfvNxQY4XzhOHMiZlYGxM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Stable@vger.kernel.org, Jonathan Cameron Subject: [PATCH 5.4 45/60] iio: adc: axp288: Override TS pin bias current for some models Date: Mon, 27 Jun 2022 13:21:56 +0200 Message-Id: <20220627111929.015392263@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111927.641837068@linuxfoundation.org> References: <20220627111927.641837068@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede commit 048058399f19d43cf21de9f5d36cd8144337d004 upstream. Since commit 9bcf15f75cac ("iio: adc: axp288: Fix TS-pin handling") we preserve the bias current set by the firmware at boot. This fixes issues we were seeing on various models. Some models like the Nuvision Solo 10 Draw tablet actually need the old hardcoded 80ųA bias current for battery temperature monitoring to work properly. Add a quirk entry for the Nuvision Solo 10 Draw to the DMI quirk table to restore setting the bias current to 80ųA on this model. Fixes: 9bcf15f75cac ("iio: adc: axp288: Fix TS-pin handling") BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=215882 Signed-off-by: Hans de Goede Link: https://lore.kernel.org/r/20220506095040.21008-1-hdegoede@redhat.com Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/adc/axp288_adc.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/drivers/iio/adc/axp288_adc.c +++ b/drivers/iio/adc/axp288_adc.c @@ -196,6 +196,14 @@ static const struct dmi_system_id axp288 }, .driver_data = (void *)(uintptr_t)AXP288_ADC_TS_BIAS_80UA, }, + { + /* Nuvision Solo 10 Draw */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TMAX"), + DMI_MATCH(DMI_PRODUCT_NAME, "TM101W610L"), + }, + .driver_data = (void *)(uintptr_t)AXP288_ADC_TS_BIAS_80UA, + }, {} };