Message ID | 20221127182257.104410-4-hdegoede@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5237628wrr; Sun, 27 Nov 2022 10:26:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf4KOjiFOtOd8779m8XCBLIqlSfweu0UNI+GoZV/44SXCPb3nEJir2qZCiUE/W5sgqKxWk+x X-Received: by 2002:a17:906:34d5:b0:7ae:b9fc:8668 with SMTP id h21-20020a17090634d500b007aeb9fc8668mr38111689ejb.257.1669573579072; Sun, 27 Nov 2022 10:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669573579; cv=none; d=google.com; s=arc-20160816; b=ZEcnTDp04OAXaWwUc48fY/hR0KueTEUOYtN7GQtIeRXs/4VoasrbryldeyPGNa5Sk6 F9CwUhnzKxJSKqA30m/GIC9iD37ectPuNz3ZMA+IN6q5lQry3PGgBE7C3atSyCksZ35X //vjiUq2E9B9KJg1ScRHT3La4wE8X9MvnRCKoO8LSKfEWHwLJ5VtwIgP5jVSpZWAkpTJ 6KHAa2AlsnL1QdsBC9zj7MPiSNORNrilW5TSzPjl6Fn+iEnbEFDTOgLNQueIYkaL7jt7 zCk6zsggLSnUuTX9EfBx0u45bSEJuNcCF2CSgFLAdF7x3QRJakUXLb8kVkeA8ORnB+S2 A73g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oUUOOM+io2yL6/ixiTAeA+s/v26tWSqdvBE3wNHNXLY=; b=sCzsbJoL2htWStWJPnRCqR3BXUw6xMC/apcML5dwhD0cQthQxEbZAfMktM1rnJiBy/ RnWpeBqmw6daTZnpY5KxWWSchM5v2JHryWxtc0XXdCL38WtKvGm3bGY/osm4S7rVMMJw tzJtzcAqD81Ub0Se/XEkbEfM7VS+DlXXF9fZDHOwFWFWQxOEqhQrRFaojITv4dFqYgTE YCqa7X6aNgS36IFA/Z+Lvj2T4vl2sJB1sZTxINKY6VSAnQkoEZJaeHxPURfrc02cu6WK VdX3A10gvKgrgessheo4oxkZX4RnF9CcPugSsmSvmNpY/vl2MNdOSXzpV1yrY35szpgf XPhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=f485tosK; 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=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020a056402280200b0045a1dbedd92si10205808ede.35.2022.11.27.10.25.55; Sun, 27 Nov 2022 10:26:19 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=f485tosK; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229618AbiK0SYV (ORCPT <rfc822;gah0developer@gmail.com> + 99 others); Sun, 27 Nov 2022 13:24:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbiK0SYS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 27 Nov 2022 13:24:18 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B097C2BC9 for <linux-kernel@vger.kernel.org>; Sun, 27 Nov 2022 10:23:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669573397; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oUUOOM+io2yL6/ixiTAeA+s/v26tWSqdvBE3wNHNXLY=; b=f485tosK/kPgrIAaq0LTKPrZBtgC2ABzT+IwA2Dj1wtHV9QC5d5vA0CqXt8Cl7OEaXRkEo DjdwH1lBp6yErPWmxXN34Jamy8P7xRaWJydB3QFpszGHGq+wTo3CHz9MPpKxKWbvnMFRUj 67SgmppS69Fhi29OPLZAMWVPGLzQCsU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-575-awcEhEt8N0W9NCSnDDNNQg-1; Sun, 27 Nov 2022 13:23:13 -0500 X-MC-Unique: awcEhEt8N0W9NCSnDDNNQg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F061D185A78F; Sun, 27 Nov 2022 18:23:12 +0000 (UTC) Received: from localhost.localdomain (unknown [10.39.192.80]) by smtp.corp.redhat.com (Postfix) with ESMTP id EE99349BB61; Sun, 27 Nov 2022 18:23:11 +0000 (UTC) From: Hans de Goede <hdegoede@redhat.com> To: Wolfram Sang <wsa@kernel.org>, Lee Jones <lee.jones@linaro.org>, MyungJoo Ham <myungjoo.ham@samsung.com>, Chanwoo Choi <cw00.choi@samsung.com> Cc: Hans de Goede <hdegoede@redhat.com>, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] extcon: intel-cht-wc: Add support for Lenovo Yoga Tab 3 Pro YT3-X90F Date: Sun, 27 Nov 2022 19:22:57 +0100 Message-Id: <20221127182257.104410-4-hdegoede@redhat.com> In-Reply-To: <20221127182257.104410-1-hdegoede@redhat.com> References: <20221127182257.104410-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750674785287207954?= X-GMAIL-MSGID: =?utf-8?q?1750674785287207954?= |
Series |
mfd/i2c/extcon: Add Lenovo Yoga Tab 3 support to cht-wc PMIC code
|
|
Commit Message
Hans de Goede
Nov. 27, 2022, 6:22 p.m. UTC
The Lenovo Yoga Tab 3 Pro YT3-X90F needs the same handling as
the Lenovo Yogabook models. That is it needs the extcon code to:
1. Control the Vbus regulator and USB-role-switch for the micro-USB
port's host/device mode switching.
2. Register a power_supply device so that the charger-chip driver can
see what sort of charger (SDP/CDP/DCP) is connected.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
drivers/extcon/extcon-intel-cht-wc.c | 1 +
1 file changed, 1 insertion(+)
Comments
On 22. 11. 28. 03:22, Hans de Goede wrote: > The Lenovo Yoga Tab 3 Pro YT3-X90F needs the same handling as > the Lenovo Yogabook models. That is it needs the extcon code to: > > 1. Control the Vbus regulator and USB-role-switch for the micro-USB > port's host/device mode switching. > 2. Register a power_supply device so that the charger-chip driver can > see what sort of charger (SDP/CDP/DCP) is connected. > > Signed-off-by: Hans de Goede <hdegoede@redhat.com> > --- > drivers/extcon/extcon-intel-cht-wc.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/extcon/extcon-intel-cht-wc.c b/drivers/extcon/extcon-intel-cht-wc.c > index c45d7ff6cc61..323ab8731284 100644 > --- a/drivers/extcon/extcon-intel-cht-wc.c > +++ b/drivers/extcon/extcon-intel-cht-wc.c > @@ -539,6 +539,7 @@ static int cht_wc_extcon_probe(struct platform_device *pdev) > cht_wc_extcon_set_gpio(ext, CHT_WC_VBUS_GPIO_CTLO, false); > break; > case INTEL_CHT_WC_LENOVO_YOGABOOK1: > + case INTEL_CHT_WC_LENOVO_YT3_X90: > /* Do this first, as it may very well return -EPROBE_DEFER. */ > ret = cht_wc_extcon_get_role_sw_and_regulator(ext); > if (ret) Acked-by: Chanwoo Choi <cw00.choi@samsung.com> Thanks.
diff --git a/drivers/extcon/extcon-intel-cht-wc.c b/drivers/extcon/extcon-intel-cht-wc.c index c45d7ff6cc61..323ab8731284 100644 --- a/drivers/extcon/extcon-intel-cht-wc.c +++ b/drivers/extcon/extcon-intel-cht-wc.c @@ -539,6 +539,7 @@ static int cht_wc_extcon_probe(struct platform_device *pdev) cht_wc_extcon_set_gpio(ext, CHT_WC_VBUS_GPIO_CTLO, false); break; case INTEL_CHT_WC_LENOVO_YOGABOOK1: + case INTEL_CHT_WC_LENOVO_YT3_X90: /* Do this first, as it may very well return -EPROBE_DEFER. */ ret = cht_wc_extcon_get_role_sw_and_regulator(ext); if (ret)