[v2,resend,3/3] extcon: intel-cht-wc: Add support for Lenovo Yoga Tab 3 Pro YT3-X90F
Message ID | 20230126153823.22146-4-hdegoede@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp347923wrn; Thu, 26 Jan 2023 08:03:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXuxI8rywiHffzyIiQzkSSF6VIOfsB5UDXEhnr8HRDZNqFkYx2gUkjB+rUsdd3LtBjjXHK+h X-Received: by 2002:a05:6a21:6daa:b0:b5:bc9b:36e4 with SMTP id wl42-20020a056a216daa00b000b5bc9b36e4mr47086643pzb.13.1674748982423; Thu, 26 Jan 2023 08:03:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674748982; cv=none; d=google.com; s=arc-20160816; b=J4ND3IZaRX51XYAPoEbTRUlnH7DHsSmfJVUE1i6VMksev5swjhbgPyNCEEs2tV9/GN Apxx6T2six3Qf/hnRmOVXFcQgqXgVZJP1KA6JG9AQOmP1ZHKu9fZSNWkNJzh/A7y63vL +jfsF16vMuGWzIk2f1EV+VsNEZkvIlfZN0jwtnieLPbU0QujvSuSU+1oWQppD0InDrdQ 2MRzNo83TqLiYOGjb+VEnnJcRcFMhveENATdWpEzwuchsVIG9M1D+1jpGOb4NiScld5Z nHltdIl6M+1vnaq0NXXfeywTb6weOKlWEkVvll2aHaBroN5RvAwJXz/vou6+ngAzeZad /sSQ== 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=gTlx+ZJI3PJxitcVm9qA10Txnp7uT/xLZJT2ZCukiFM=; b=MeclU0qTC93P7FPEQcsbbpQoJC4bB23x2JyD9KkC89Kz0TviZfbLjRM8YU4nwIdUd6 5L+Yu9pS4AG8Fcimc6/yu/hhPs7AC2vLV+t+O8ZGZMnNbeD2ExmiTuI0FAEmMl+dK3QQ 68mh82enP4abeWSul9FYDVFxubbFJyqQni8tFBLWNCTi91Fnv/c30GE7XcRQ+0asIFSX 7SPvg7OVl1THrHurJhAsw/Xh+46BGSfFPGt0b4sB5SxBRYkWs6XfOdfKv0Yv/KKFMLxc zmXleAa8VS9lcn9pVHkDg0jsdxGkDWLrfwVxzGCZ+s8JvgQWrzkMzJT4AgHdA5gr9rgo Lz2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=B0OzP3FI; 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 o15-20020a637e4f000000b004780e2b6fc6si1395798pgn.626.2023.01.26.08.02.49; Thu, 26 Jan 2023 08:03:02 -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=B0OzP3FI; 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 S231571AbjAZPjb (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Thu, 26 Jan 2023 10:39:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231378AbjAZPj1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 26 Jan 2023 10:39:27 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FD7F30F4 for <linux-kernel@vger.kernel.org>; Thu, 26 Jan 2023 07:38:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674747521; 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=gTlx+ZJI3PJxitcVm9qA10Txnp7uT/xLZJT2ZCukiFM=; b=B0OzP3FIQh4w5RsM96ehg6rJB8KH4IiyXIlD9oU3drc2ezq7EvZC6FrdNhPZKwGrwIj1EJ NaT1eKLCPMVevjGlPYzgKCOyHjV5SKbsVRXMAsPbJqqg4yzySIwGznEMX7+yUn9zz/mfAc 9MI+NeiTnqygTEY8f0kRZczr6o1mIrI= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-562-6EewG4jDPfq4MmZW3aAVJg-1; Thu, 26 Jan 2023 10:38:37 -0500 X-MC-Unique: 6EewG4jDPfq4MmZW3aAVJg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 457003806639; Thu, 26 Jan 2023 15:38:37 +0000 (UTC) Received: from localhost.localdomain (unknown [10.39.192.43]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3CEB6C15BA0; Thu, 26 Jan 2023 15:38:36 +0000 (UTC) From: Hans de Goede <hdegoede@redhat.com> To: Wolfram Sang <wsa@kernel.org>, Lee Jones <lee@kernel.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 v2 resend 3/3] extcon: intel-cht-wc: Add support for Lenovo Yoga Tab 3 Pro YT3-X90F Date: Thu, 26 Jan 2023 16:38:23 +0100 Message-Id: <20230126153823.22146-4-hdegoede@redhat.com> In-Reply-To: <20230126153823.22146-1-hdegoede@redhat.com> References: <20230126153823.22146-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 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=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: <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?1756101589079509392?= X-GMAIL-MSGID: =?utf-8?q?1756101589079509392?= |
Series |
mfd: intel_soc_pmic_chtwc + cell drivers Lenovo Yoga Tab 3 YT3-X90F support
|
|
Commit Message
Hans de Goede
Jan. 26, 2023, 3:38 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. Acked-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> --- drivers/extcon/extcon-intel-cht-wc.c | 1 + 1 file changed, 1 insertion(+)
Comments
On Thu, 26 Jan 2023, 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. > > Acked-by: Chanwoo Choi <cw00.choi@samsung.com> > Signed-off-by: Hans de Goede <hdegoede@redhat.com> > --- > drivers/extcon/extcon-intel-cht-wc.c | 1 + > 1 file changed, 1 insertion(+) Applied, thanks
diff --git a/drivers/extcon/extcon-intel-cht-wc.c b/drivers/extcon/extcon-intel-cht-wc.c index 89a6449e3f4a..2c55f06ba699 100644 --- a/drivers/extcon/extcon-intel-cht-wc.c +++ b/drivers/extcon/extcon-intel-cht-wc.c @@ -537,6 +537,7 @@ static int cht_wc_extcon_probe(struct platform_device *pdev) cht_wc_extcon_set_5v_boost(ext, 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)