Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp157702pxa; Wed, 26 Aug 2020 20:58:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgZLeMAIQxwjJtdTLIWTM6P78aSpWGlZ8VfJ0b2Z/lg64EYrOqMVwGtiuB6Ubv+/QI1abp X-Received: by 2002:a05:6402:84e:: with SMTP id b14mr17639398edz.115.1598500712964; Wed, 26 Aug 2020 20:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598500712; cv=none; d=google.com; s=arc-20160816; b=ExvPixTvGXuFeA6D4t1y+Tu7/umBFdrj7HzRedwKSPXAYfZ/4lrHm9aVo1U4C0RLZa UYiaxFBycBxBt/8ijIr/dSFEphXZtllHv1WYBvZiG/Atfe1Qwz/EXqh9USeqYyoTExSc uXBRs3jauLPirGW7tUbH3K1hPrlpf8Rsa5pkyKR8JocHr+g+AiHNd8YW21/Y8X4bekBT X9HIyGPoLPkE2wwczGf9b1bW3kWat3x76FQ4TruMavi634oTi90lSyaFCgLM9D6dSIdT em3IgBQcylcxStPHj9v9+DdnbuRB36znlLsoQ0DnWUmJvPwUj5hZJav6tqQzsRNHWmwn UiAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:ironport-sdr:ironport-sdr; bh=3PMLpGd18Mpx4FlKny+5J9xtDVniPtKpOeDebbWAMds=; b=ajrs8AAQafWectLhc8U5ev4aLfQhgPWzFrzvTlYkWmtw0u3QeFW5iF91860AbXA71W epdgGtbdS5hr3r5U0c581b/0bNG+aL06xa6dVQL4TT5+K9ONiyRp87lDmYurPBgrcSVk 6o1aKoWhRkE4KgG9BMXofj1h0sfbNHBx2kdtUULLbY2PZypL6CasQVTEJ6kP8cd4Mq/g bdWN5BEiKS5yAkwl3B0oBFf18L431+7JVBMkPnElFZPzZ+TYha7C9+GkJpm1AJjG3F7g 9VGByAKEOPFqykUnZymgYi7RRP+adB0OOHjk0vLBpf5Uz6j+Vk1JAij+gRP3RpO0fcl4 DOXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b26si482249ejc.196.2020.08.26.20.58.10; Wed, 26 Aug 2020 20:58:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727017AbgH0D4r (ORCPT + 99 others); Wed, 26 Aug 2020 23:56:47 -0400 Received: from mga17.intel.com ([192.55.52.151]:26018 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726794AbgH0D4p (ORCPT ); Wed, 26 Aug 2020 23:56:45 -0400 IronPort-SDR: sK8aqrfnso6vih/uTUJI5+zJXt6S+cyuI36RWPuzjH/3ps5wg6zG0qEK1OM2STAm8EKxcMHWY0 2HtP16CDYeLw== X-IronPort-AV: E=McAfee;i="6000,8403,9725"; a="136484482" X-IronPort-AV: E=Sophos;i="5.76,358,1592895600"; d="scan'208";a="136484482" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2020 20:56:45 -0700 IronPort-SDR: 1pF0W3/zv1KsciQJ3CX4yuQZcoYqiCXl8sho5I5KXylTlS6MSyrJp0mslecwv1k2jk0xvUaC6+ W41y7Zkp5p4w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,358,1592895600"; d="scan'208";a="280513839" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by fmsmga007.fm.intel.com with ESMTP; 26 Aug 2020 20:56:42 -0700 From: "Ramuthevar,Vadivel MuruganX" To: cw00.choi@samsung.com, linux-kernel@vger.kernel.org Cc: vijaikumar.kanagarajan@gmail.com, krzk@kernel.org, myungjoo.ham@samsung.com, heikki.krogerus@linux.intel.com, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, yin1.li@intel.com, Ramuthevar Vadivel Murugan Subject: [PATCH v2 2/2] extcon: ptn5150: Set the VBUS and POLARITY property state Date: Thu, 27 Aug 2020 11:56:33 +0800 Message-Id: <20200827035633.37348-3-vadivel.muruganx.ramuthevar@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200827035633.37348-1-vadivel.muruganx.ramuthevar@linux.intel.com> References: <20200827035633.37348-1-vadivel.muruganx.ramuthevar@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ramuthevar Vadivel Murugan Set the VBUS and POLARITY property state. Signed-off-by: Ramuthevar Vadivel Murugan --- drivers/extcon/extcon-ptn5150.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/extcon/extcon-ptn5150.c b/drivers/extcon/extcon-ptn5150.c index 8b930050a3f1..b5217a61615c 100644 --- a/drivers/extcon/extcon-ptn5150.c +++ b/drivers/extcon/extcon-ptn5150.c @@ -279,6 +279,12 @@ static int ptn5150_i2c_probe(struct i2c_client *i2c) return ret; } + extcon_set_property_capability(info->edev, EXTCON_USB, + EXTCON_PROP_USB_VBUS); + extcon_set_property_capability(info->edev, EXTCON_USB_HOST, + EXTCON_PROP_USB_VBUS); + extcon_set_property_capability(info->edev, EXTCON_USB_HOST, + EXTCON_PROP_USB_TYPEC_POLARITY); /* Initialize PTN5150 device and print vendor id and version id */ ret = ptn5150_init_dev_type(info); if (ret) -- 2.11.0