Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2911143iog; Mon, 27 Jun 2022 05:36:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sR7NyPn0DcK1p/GB3wJD8+izR7382ShqorH9RRz1h8pXye9Rlw3k9rbawQM5l4EcGDArwh X-Received: by 2002:a17:906:5d0d:b0:726:be8c:804c with SMTP id g13-20020a1709065d0d00b00726be8c804cmr1357088ejt.712.1656333360230; Mon, 27 Jun 2022 05:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656333360; cv=none; d=google.com; s=arc-20160816; b=NhRV/k6Qr/ykanCQr9mtmkD8zJgk3FJ1+IBoBoXKP7GuWLdiyirgnNdTdConB/sO7D wxCLOlZMVH2SvO0eYzSQPfj+pakqyne5GJkeBjlVTgRqEPEocqE6AcemdBN9Hsj2CCGD popFm38g+uOBEFi1ZmoGPl3hlzW+GI2Kj2QMv2EcFj6d3x+5uw2c1FpY5Cwnzjxl42pL 8MAhZonHoVWTnMnMQDvS7h/9GF14b61E9IXM6+iwhWtwxV3HXh4NohM6qpkaMMvODr6v 3WVTwb1/oflqDymOmy8e27059ERFQkm0fR/HoQanf03Zu25lGIPQB+iZ67gSVd2XmPyk mpUA== 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=VjN/y/3hz2gkPJpQjaTt+qCCOaOGI4lC0eLl5etuxlep1C8M9DPkuf2GmQ0d46yJIT 7WdFuCYuNGtRQhMOKY+2TadktcqwSbS1RC7Prh5PupWaX/zWdaVNVreFLQFoM2mTARoo cIZVRGJFXFio92PcoIMj64bWrIAzq3t57Xz3UIfxsYoyt7XoNut7w6BhFBMsHEF//w7c lP55swB3SjjEsOoZx7p7JTxfpGThqrpTnxJZyrCEjgmnB6jOjs0m1+eGDtG8g1EdneII MVqPww/D+AkA5g2zi9gaTE6GEyD4QlugotDA2h3aAfODdu8xQHHI73enbPmHBk3tMVMt 9q/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QHSIVXWJ; 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 ho13-20020a1709070e8d00b00722ebd0d050si11285974ejc.990.2022.06.27.05.35.34; Mon, 27 Jun 2022 05:36:00 -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=QHSIVXWJ; 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 S235534AbiF0LaI (ORCPT + 99 others); Mon, 27 Jun 2022 07:30:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235330AbiF0L3G (ORCPT ); Mon, 27 Jun 2022 07:29:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84EF6AA; Mon, 27 Jun 2022 04:28:04 -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 ams.source.kernel.org (Postfix) with ESMTPS id 32513B8111A; Mon, 27 Jun 2022 11:28:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9AD59C3411D; Mon, 27 Jun 2022 11:28:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656329282; bh=vgvNJrHBHS9C46/WmKV1U9Crcq8Uj+IGHmrgSflbAnM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QHSIVXWJOokS/oyvlSx1Swf6mcTX6jfSz1dka+5HR3eLkdQdv0bGLe9UjpGzQspX2 lrz/3Cz0n0oVUjhHuJ4rZ6FVRVV7bVHia7Dt/Yz8HRYlPepzFmRbYehv+5KkkEc+m4 qVnPPUMNJNt1QW3vuv8ErFWMT8rV9n50NwNnSR/A= 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.10 083/102] iio: adc: axp288: Override TS pin bias current for some models Date: Mon, 27 Jun 2022 13:21:34 +0200 Message-Id: <20220627111935.930159000@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111933.455024953@linuxfoundation.org> References: <20220627111933.455024953@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, + }, {} };