[PATCH v5 0/4] usb: musb: sunxi: Fixes + peripheral-only mode

2016-06-18 Thread Hans de Goede
Hi Kishon, I noticed that you've merged a phy-sun4i-usb fix into your linux-phy/fixes branch, this caused a conflict in the 3th patch of this set, so I'm posting a new rebased version here. Since these patches depend on each other and now also depend on changes in your fixes branch, can you pleas

[PATCH v5 2/4] phy-sun4i-usb: Add support for peripheral-only mode

2016-06-18 Thread Hans de Goede
Use the new of_usb_get_dr_mode_by_phy() function to get the dr_mode from the musb controller node instead of assuming that having an id_det gpio means otg mode, and not having one means host mode. Implement peripheral-only mode by adding a sun4i_usb_phy0_get_id_det helper which looks at the dr_mod

[PATCH v5 3/4] phy-sun4i-usb: Add workaround for missing Vbus det interrupts on A31

2016-06-18 Thread Hans de Goede
The A31 companion pmic (axp221) does not generate vbus change interrupts when the board is driving vbus, so we must poll when using the pmic for vbus-det _and_ we're driving vbus. Signed-off-by: Hans de Goede Acked-by: Kishon Vijay Abraham I --- Changes in v2: -No changes Changes in v3: -No chan

[PATCH v5 1/4] USB: Fix of_usb_get_dr_mode_by_phy with a shared phy block

2016-06-18 Thread Hans de Goede
Some SoCs have a single phy-hw-block with multiple phys, this is modelled by a single phy dts node, so we end up with multiple controller nodes with a phys property pointing to the phy-node of the otg-phy. Only one of these controllers typically is an otg controller, yet we were checking the first

[PATCH v5 4/4] usb: musb: sunxi: Simplify dr_mode handling

2016-06-18 Thread Hans de Goede
phy-sun4i-usb now has proper dr_mode handling, it always registers an extcon, and sends a notify with the mode (even when in peripheral- / host-only mode) at least once. So we can simply the sunxi musb glue by always registering its extcon notifier and relying on sunxi_musb_work() to enable vbus w

[PATCH v5] phy-sun4i-usb: Fix irq free conditions to match request conditions

2016-06-18 Thread Hans de Goede
commit 5cf700ac9d50("phy: phy-sun4i-usb: Fix optional gpios failing probe") changed the condition under which irqs are requested, but omitted matching changes to sun4i_usb_phy_remove(). This commit fixes this. Fixes: commit 5cf700ac9d50("phy: phy-sun4i-usb: Fix optional gpios failing probe") Sign

Re: [PATCH v5] phy-sun4i-usb: Fix irq free conditions to match request conditions

2016-06-18 Thread Sergei Shtylyov
On 6/18/2016 12:31 PM, Hans de Goede wrote: commit 5cf700ac9d50("phy: phy-sun4i-usb: Fix optional gpios failing probe") changed the condition under which irqs are requested, but omitted matching changes to sun4i_usb_phy_remove(). This commit fixes this. Fixes: commit 5cf700ac9d50("phy: phy-sun4

[hid:for-4.8/alps 1/2] drivers/hid/hid-alps.c:139:3-9: ERROR: application of sizeof to pointer

2016-06-18 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-4.8/alps head: 41f61ecc501ca970ae8d9955c57405dc4abfab5a commit: 2562756dde550901c224e3805102bdfc17e7d13a [1/2] HID: add Alps I2C HID Touchpad-Stick support coccinelle warnings: (new ones prefixed by >>) >> drivers/hid/

[PATCH] HID: fix noderef.cocci warnings

2016-06-18 Thread kbuild test robot
drivers/hid/hid-alps.c:139:3-9: ERROR: application of sizeof to pointer drivers/hid/hid-alps.c:148:4-10: ERROR: application of sizeof to pointer sizeof when applied to a pointer typed expression gives the size of the pointer Generated by: scripts/coccinelle/misc/noderef.cocci CC: Masaki Ota S

[GIT PULL] USB driver fixes for 4.7-rc4

2016-06-18 Thread Greg KH
The following changes since commit 1a695a905c18548062509178b98bc91e67510864: Linux 4.7-rc1 (2016-05-29 09:29:24 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-4.7-rc4 for you to fetch changes up to 083d5ad1a924e79ecf92be