Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1209732

[PATCH v4 0/5] Introduce usb charger framework to deal with the usb gadget power negotation

Path csiph.com!goblin3!goblin1!goblin.stu.neva.ru!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod
From Baolin Wang <baolin.wang@linaro.org>
Newsgroups linux.kernel
Subject [PATCH v4 0/5] Introduce usb charger framework to deal with the usb gadget power negotation
Date Wed, 19 Aug 2015 11:20:02 +0200
Message-ID <pZ7Hj-1AV-3@gated-at.bofh.it> (permalink)
X-Original-To balbi@ti.com
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=haWsknf6IgP8pR7zCGvxe9APJ1XKcpymf4IQojp3ARI=; b=I9YK+tkfwmwZgPlgck6YfcoLSLITOeF6U2wsun3QTTfChDWwAK2dptmHG6JHnm1hXb yZ55/HQB3j1Rs0o+dzrBV+ovQXgV12vhnDZY+hyMRVbjeyoR0QAo6zKxA8MS7b5buqJL QwJLG4G+VOQfXO0pufSMrfA44gBYjUktP9+oRgNVquQ94x7XRt2YgPDynsqj+VDf8P59 TwI7Pd16QeZ7LMvUALrNDLWjpxWWT+Egc5M5rkiBdaFYLJCKtwFsraHuyzJt2aVwQbG5 Ctdv0BADEH8SgT9m3KxlQC5zXru3vtlZLsk5l1iLtJK4DAl6nVDtASJc9TGJ0cLiagxL MeSA==
X-Gm-Message-State ALoCoQmI8aWQX6LhmYe+d2W+Jqkit+j2cIm5kPU+zI1n226FzPfYlFF5+b5JVwnxyZKqbziFga32
X-Received by 10.70.61.134 with SMTP id p6mr23077714pdr.82.1439975645493; Wed, 19 Aug 2015 02:14:05 -0700 (PDT)
X-Mailer git-send-email 1.7.9.5
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 43
Organization linux.* mail to news gateway
X-Original-Cc broonie@kernel.org, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, baolin.wang@linaro.org, gregkh@linuxfoundation.org, peter.chen@freescale.com, sojka@merica.cz, stern@rowland.harvard.edu, r.baldyga@samsung.com, yoshihiro.shimoda.uh@renesas.com, linux-usb@vger.kernel.org, device-mainlining@lists.linuxfoundation.org, sre@kernel.org, dbaryshkov@gmail.com, dwmw2@infradead.org, sameo@linux.intel.com, lee.jones@linaro.org, patches@opensource.wolfsonmicro.com, linux-pm@vger.kernel.org
X-Original-Date Wed, 19 Aug 2015 17:13:43 +0800
X-Original-Message-ID <cover.1439974219.git.baolin.wang@linaro.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1209732

Show key headers only | View raw


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.

Providing a standard framework for doing this in the kernel.

Now introduce one user with wm831x_power to support and test the usb charger,
which is pending testing. Moreover there may be other potential users will use
it in future.

Changes since v3:
 - Re-order the patch and split the patch to avoid breaking build.
 - Other modifications.

Baolin Wang (5):
  gadget: Introduce the notifier functions
  gadget: Introduce the usb charger framework
  gadget: Support for the usb charger framework
  gadget: Integrate with the usb gadget supporting for usb charger
  power: wm831x_power: Support USB charger current limit management

 drivers/power/wm831x_power.c      |   69 +++++
 drivers/usb/gadget/Kconfig        |    7 +
 drivers/usb/gadget/Makefile       |    1 +
 drivers/usb/gadget/charger.c      |  538 +++++++++++++++++++++++++++++++++++++
 drivers/usb/gadget/udc/udc-core.c |   40 +++
 include/linux/mfd/wm831x/pdata.h  |    3 +
 include/linux/usb/gadget.h        |   20 ++
 include/linux/usb/usb_charger.h   |  138 ++++++++++
 8 files changed, 816 insertions(+)
 create mode 100644 drivers/usb/gadget/charger.c
 create mode 100644 include/linux/usb/usb_charger.h

-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH v4 0/5] Introduce usb charger framework to deal with the usb gadget power negotation Baolin Wang <baolin.wang@linaro.org> - 2015-08-19 11:20 +0200

csiph-web