Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp226387pxa; Wed, 26 Aug 2020 23:55:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxf9OvNrhxF2HwvTZuak1kVAWBzaBuMScOghfnSfF5Rzunn1wCBkFPfDbBcYb9oEkZrYly/ X-Received: by 2002:a17:907:42cc:: with SMTP id nz20mr19896025ejb.429.1598511317163; Wed, 26 Aug 2020 23:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598511317; cv=none; d=google.com; s=arc-20160816; b=F09GE+9PzvBVA4z6Qdzx40lDJT0DqjtPNgtvYD4KqSg6FhxOEcgtXchjib+goA49ID 3vlZHTXgM1OlMAgp4l0p+XqofArlmwTHolwEgUbgxL1LrvjcdrKsHWXwpRLgytTbwQAp UmC2BoH5vPt3eDva6yt6+QdIOisTy9uIuVu4vU+tXPOWTiJI8n1K+mKO+ohuc586+dY3 NmAI9icmuU1e3gGwKaBMRtRzFMDkPEgltf/gLOVo5NwyAYGFGv8GTp8DYq9XvC78XNxT xx/Aro46E2s9TjK7mxNsCTBdAcJnqFwv9y8f1JqWoXSFSAEurrRz8I+QB+wUY6TLDSTs +xaA== 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=flXwsLJP1PUJZCjQq2mN+BIF3dn51ULvVbIZ6xRTpt8=; b=LqRXbXwVXbVNbFUbT9znbEVnSRYkxV6tYy4GR2J7x5NYwhxnJUmbPptVqesFv/deWG olCzg060aQgAqJ14wqJz+fFImsQbrG2oGBWPkkzC1C44sjrzqVwx89dmw6G6/7zpoClv LqNIa0+riamM3tKUR+M1vjzKE3dIMc1STTw1KesQJOTr69eKp9Utgm0dgBndhMi55Fv8 mmOQSdWk0PN8dOUmchtC3n1oCSKAdrOSaEYFbofEoPKz/anORVV0prW+pQWjGOfhbFN0 Z+3oJTOmNWM8Mb8TspdphspqwwVH+KaNk2uuE0+7dnHXoSS2MP33nO0YAZx+jv33yY9l h/Eg== 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 l15si887959edr.130.2020.08.26.23.54.54; Wed, 26 Aug 2020 23:55:17 -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 S1727909AbgH0Gvj (ORCPT + 99 others); Thu, 27 Aug 2020 02:51:39 -0400 Received: from mga11.intel.com ([192.55.52.93]:32222 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726123AbgH0Gvi (ORCPT ); Thu, 27 Aug 2020 02:51:38 -0400 IronPort-SDR: FJOLZp7GuhgT9V7jFyk5ExVwaQ+0JDw4VoshMNvSVKYVIlGMZhLG0iH34qd1lpQC4aJnsxzlO2 BPnooTLO1bIA== X-IronPort-AV: E=McAfee;i="6000,8403,9725"; a="153995392" X-IronPort-AV: E=Sophos;i="5.76,358,1592895600"; d="scan'208";a="153995392" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2020 23:51:37 -0700 IronPort-SDR: JIzzDn9OhFzxbBRgEzVTX1f/LeBQlkKV1k+ojtu+h/3hBF3kfXdrsGOSjR45iG37syf+LTTtpc TAVZVV2M1gDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,358,1592895600"; d="scan'208";a="444336876" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by orsmga004.jf.intel.com with ESMTP; 26 Aug 2020 23:51:34 -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 v3 1/1] extcon: ptn5150: Set the VBUS and POLARITY property capability Date: Thu, 27 Aug 2020 14:51:28 +0800 Message-Id: <20200827065128.55094-2-vadivel.muruganx.ramuthevar@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200827065128.55094-1-vadivel.muruganx.ramuthevar@linux.intel.com> References: <20200827065128.55094-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 capability value of property for VBUS and POLARITY. Signed-off-by: Ramuthevar Vadivel Murugan --- drivers/extcon/extcon-ptn5150.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/extcon/extcon-ptn5150.c b/drivers/extcon/extcon-ptn5150.c index 841c9fe211f1..20d49a54c36e 100644 --- a/drivers/extcon/extcon-ptn5150.c +++ b/drivers/extcon/extcon-ptn5150.c @@ -275,6 +275,13 @@ 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