Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753016AbdC1NlT (ORCPT ); Tue, 28 Mar 2017 09:41:19 -0400 Received: from mga14.intel.com ([192.55.52.115]:13176 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752859AbdC1NlP (ORCPT ); Tue, 28 Mar 2017 09:41:15 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,236,1486454400"; d="scan'208";a="71281277" From: Felipe Balbi To: Baolin Wang , gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, neilb@suse.com, jun.li@nxp.com, peter.chen@freescale.com, broonie@kernel.org, baolin.wang@linaro.org Subject: Re: [PATCH v2 1/2] usb: phy: Introduce one extcon device into usb phy In-Reply-To: <0b16763df04e197fb5b3c21b19799280d3bce275.1490248054.git.baolin.wang@linaro.org> References: <0b16763df04e197fb5b3c21b19799280d3bce275.1490248054.git.baolin.wang@linaro.org> Date: Tue, 28 Mar 2017 16:40:44 +0300 Message-ID: <8737dxh63n.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 604 Lines: 18 Hi, Baolin Wang writes: > Usually usb phy need register one extcon device to get the connection > notifications. It will remove some duplicate code if the extcon device > is registered using common code instead of each phy driver having its > own related extcon APIs. So we add one pointer of extcon device into > usb phy structure, and some other helper functions to register extcon. > > Suggested-by: NeilBrown > Signed-off-by: Baolin Wang will this work with devices which have ID and VBUS from separate EXTCON devices? -- balbi