Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752091AbdGCGH5 (ORCPT ); Mon, 3 Jul 2017 02:07:57 -0400 Received: from mail-pg0-f49.google.com ([74.125.83.49]:33973 "EHLO mail-pg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750793AbdGCGHy (ORCPT ); Mon, 3 Jul 2017 02:07:54 -0400 From: Baolin Wang To: balbi@kernel.org, gregkh@linuxfoundation.org, sre@kernel.org Cc: jun.li@nxp.com, peter.chen@freescale.com, broonie@kernel.org, john.stultz@linaro.org, neilb@suse.com, patches@opensource.wolfsonmicro.com, baolin.wang@linaro.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, device-mainlining@lists.linuxfoundation.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] Introduce USB charger support in USB phy Date: Mon, 3 Jul 2017 14:07:12 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1058 Lines: 26 Currently the Linux kernel does not provide any standard integration of this feature that integrates the USB subsystem with the system power regulation provided by PMICs meaning that either vendors must add this in their kernels or USB gadget devices based on Linux (such as mobile phones) may not behave as they should. Thus provide a standard USB charger support in USB phy core for doing this in kernel. Now introduce one user with wm831x_power to support and test the usb charger. Changes since v1: - Fix building errors. Baolin Wang (3): include: uapi: usb: Introduce USB charger type and state definition usb: phy: Add USB charger support power: wm831x_power: Support USB charger current limit management drivers/power/supply/wm831x_power.c | 61 ++++++++ drivers/usb/phy/phy.c | 265 +++++++++++++++++++++++++++++++++++ include/linux/usb/phy.h | 49 +++++++ include/uapi/linux/usb/charger.h | 31 ++++ 4 files changed, 406 insertions(+) create mode 100644 include/uapi/linux/usb/charger.h -- 1.7.9.5