From patchwork Fri May 5 06:12:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 98600 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp35730qge; Thu, 4 May 2017 23:13:23 -0700 (PDT) X-Received: by 10.99.2.9 with SMTP id 9mr1322419pgc.69.1493964803395; Thu, 04 May 2017 23:13:23 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r9si4536891plj.158.2017.05.04.23.13.23; Thu, 04 May 2017 23:13:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755555AbdEEGNV (ORCPT + 4 others); Fri, 5 May 2017 02:13:21 -0400 Received: from mail-pg0-f42.google.com ([74.125.83.42]:34999 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753913AbdEEGNU (ORCPT ); Fri, 5 May 2017 02:13:20 -0400 Received: by mail-pg0-f42.google.com with SMTP id o3so3878716pgn.2 for ; Thu, 04 May 2017 23:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=d6/WB1MOn2rmulTqdQNb6pAWmJ/sDl1GJNLV6RXwIoA=; b=Ifel15qoGalQW5iSUTUAezCZcruUewU3mq0hlCKZsY6H8kigRTKbsACXhimFlZxrtB +mCoWHkK1nZj14x8K8eivgnR69m9jTRAfEL+holuW5o6w+DRAz8UpYeenJorFbTme4bM CGO0z9EKCIOUAyz181BdGQU6ZxNg8smYCTzk0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=d6/WB1MOn2rmulTqdQNb6pAWmJ/sDl1GJNLV6RXwIoA=; b=Gj9hYOeP1sau5x/QpZsyPCSTorYpZxHm+SyEllaDyyMX1sV126TnUcr0Of+/Gf4PQ2 7QBuQx9YrYGUb7FfqpBQKIQkJRTc7Z3ap8uwFoxsR3kuoyNYpSJFFOJDM10KD7CaKJI0 fs0goCIy41FfxnABu9Wdwva0NjViuEYeFYtkwhdDo97wWKb56iWCjOw0WBrTs5637mXQ sY6bxdEbQF44mHDWsZadl7JftQUhh1GPsFZb3Y7kTaNDNaNeQ2rXRJUKVh3n8y+MdSUF Rlv9QSz5/lgXf1N6jbef8mTFqUK53nJnt9IaYDl/MpBayTyEx1CHFQZ+zcIsQNvfUjgm e8MQ== X-Gm-Message-State: AN3rC/6wR51ATp3wyPQgQC5nGUHTg1OWnIyvZITVgHCzCoxKQ0yzC1oo K//NTdwsnZwk1dG4 X-Received: by 10.84.224.66 with SMTP id a2mr26791060plt.191.1493964800161; Thu, 04 May 2017 23:13:20 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id l198sm1298760pga.50.2017.05.04.23.13.17 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 May 2017 23:13:19 -0700 (PDT) From: Baolin Wang To: balbi@kernel.org, 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: [PATCH v3 0/3] Introduce one extcon device into usb phy Date: Fri, 5 May 2017 14:12:23 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This patchset introduces one pointer of extcon device into usb phy structure, and some other helper functions to register extcon instead of each phy driver having its own related extcon APIs. Changes since v2: - Support separate extcon device. - Convert the phy-msm-usb driver. Changes since v1: - Fix build errors with random config. Baolin Wang (3): usb: phy: Introduce one extcon device into usb phy usb: phy: phy-qcom-8x16-usb: Remove redundant extcon register/unregister usb: phy: phy-msm-usb: Remove redundant extcon register/unregister drivers/usb/phy/Kconfig | 6 +-- drivers/usb/phy/phy-msm-usb.c | 85 ++++++++--------------------------- drivers/usb/phy/phy-qcom-8x16-usb.c | 20 +++------ drivers/usb/phy/phy.c | 57 +++++++++++++++++++++++ include/linux/usb/phy.h | 7 +++ 5 files changed, 90 insertions(+), 85 deletions(-) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html