[PATCH 3/4] power: isp1704_charger: Add callback function set_current

2013-09-08 Thread Pali Rohár
This patch add callback function set_current to platform data. Driver will call this function when isp1704 change current and board provided this callback funtion in platform data. This patch is needed for Nokia RX-51 to tell bq2415x charging chip about connected wallcharger events. Signed-off-by

[PATCH 4/4] RX-51: Add platform function and data for bq24150a charger

2013-09-08 Thread Pali Rohár
This patch will register bq24150a charger in RX-51 board data. Patch also adding platform function between isp1704 and bq2415x drivers for detecting charger type. So finally charging battery on Nokia N900 (RX-51) working automatically without any proprietary Nokia bits in userspace. Signed-off-by

[PATCH 1/4] usb: musb: Call atomic_notifier_call_chain when status is changed

2013-09-08 Thread Pali Rohár
More power supply drivers depends on vbus events and without it they not working. Power supply drivers using usb_register_notifier, so to deliver events it is needed to call atomic_notifier_call_chain. So without atomic notifier power supply driver isp1704 not retrieving vbus status and reporting

[PATCH 0/4] Add support for charging battery in Nokia RX-51

2013-09-08 Thread Pali Rohár
This patch series finally bringing support for charging battery on Nokia N900 (RX-51) without any proprietary Nokia bits in userspace. Pali Rohár (4): usb: musb: Call atomic_notifier_call_chain when status is changed power: isp1704_charger: Fix driver to work with changes introduced in v3.

[PATCH 2/4] power: isp1704_charger: Fix driver to work with changes introduced in v3.5

2013-09-08 Thread Pali Rohár
* omap musb driver does not report USB_EVENT_ENUMERATED event anymore * omap musb driver reporting USB_EVENT_VBUS when charger is connected * read last event from phy->last_event (instead from ulpi register) * do not call wall charger detection more times Signed-off-by: Pali Rohár --- drivers/po

Re: some questions about ehci period scheduling

2013-09-08 Thread vichy
hi Alan: 2013/9/7 Alan Stern : > On Sat, 7 Sep 2013, vichy wrote: > >> hi all: >> when I trace linux ehci driver source code. >> I have some questions >> 1. in itd_slot_ok, why we have to >> uframe %= period; >> and use this uframe to calculate the bandwidth? >> >> suppose start passed

Re: question about webcam audio capture

2013-09-08 Thread vichy
2013/9/8 vichy : > hi all: > I try to do webcam audio capture on my arm platform. > when I execute audio capture I got below message > "retire_capture_urb: 108 callbacks suppressed" > > my questions: > 1. where I can get the message "retire_capture_urb: 108 callbacks > suppressed" show in sound/usb

Re: some questions about ehci period scheduling

2013-09-08 Thread Alan Stern
On Sun, 8 Sep 2013, vichy wrote: > >> suppose start passed to itd_slot_ok is 537, period, usb->interval, is 8. > >> that mean we want to know whether bandwidth of microframe 537 is enough. > >> Not want to know whether 537%8 =1 > >> the bandwidth of microframe 1 is enough. > > > > In fact you need

current version of http://www.linux-usb.org/usbtest/ testusb.c

2013-09-08 Thread joe M
Hello, Just wanted to check if there is a version of http://www.linux-usb.org/usbtest/ testusb.c or test.sh scrpts that work with the current kernel. The files seem to be using usbfs, which is deprecated. ./testusb -a usbfs files are missing Any thoughts, please? Thanks Joe -- To unsubscribe f

Re: current version of http://www.linux-usb.org/usbtest/ testusb.c

2013-09-08 Thread Greg KH
On Sun, Sep 08, 2013 at 01:08:02PM -0500, joe M wrote: > Hello, > > Just wanted to check if there is a version of > http://www.linux-usb.org/usbtest/ testusb.c or test.sh scrpts that > work with the current kernel. > > The files seem to be using usbfs, which is deprecated. > > ./testusb -a > usb

Re: current version of http://www.linux-usb.org/usbtest/ testusb.c

2013-09-08 Thread joe M
Hello greg, > It should be changed to point to where the usbfs files are now located > (i.e. /dev/bus/usb/ instead of the old usbfs mount point.) Thanks, your suggestion helped. I changed /proc/bus/usb/BBB/DDD to /dev/bus/usb/BBB/DDD, and, /proc/bus/usb/devices to /sys/kernel/debug/usb/devices

Re: current version of http://www.linux-usb.org/usbtest/ testusb.c

2013-09-08 Thread joe M
Hello Greg, Trying with the full path of the device helped. Sorry for the bother. smart_sudo ./testusb -D /dev/bus/usb/006/001 Password: ./testusb: /dev/bus/usb/006/001 may see only control tests /dev/bus/usb/006/001 test 0 --> 38 (Function not implemented) /dev/bus/usb/006/001 test 1 --> 38 (Fun

Re: current version of http://www.linux-usb.org/usbtest/ testusb.c

2013-09-08 Thread Johannes Stezenbach
On Sun, Sep 08, 2013 at 01:58:38PM -0500, joe M wrote: > Hello Greg, > > Trying with the full path of the device helped. Sorry for the bother. > > smart_sudo ./testusb -D /dev/bus/usb/006/001 > Password: > ./testusb: /dev/bus/usb/006/001 may see only control tests > /dev/bus/usb/006/001 test 0 --

Re: current version of http://www.linux-usb.org/usbtest/ testusb.c

2013-09-08 Thread joe M
Hello Johannes, > > FWIW, the currrent version of testusb.c is now in the kernel > git tree in tools/usb/. Thanks a lot, Joe -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: "Virtual" Interrupts -- Need help please

2013-09-08 Thread Daniel Santos
On 09/07/2013 07:52 PM, Guenter Roeck wrote: On 09/07/2013 05:19 PM, Daniel Santos wrote: I've posted a number of requests for aid on this and have gotten very little responses and none that were helpful. I have spent at least 24 hours of research time on this and just a little direction from

Re: "Virtual" Interrupts -- Need help please

2013-09-08 Thread Guenter Roeck
On 09/08/2013 04:50 PM, Daniel Santos wrote: On 09/07/2013 07:52 PM, Guenter Roeck wrote: On 09/07/2013 05:19 PM, Daniel Santos wrote: I've posted a number of requests for aid on this and have gotten very little responses and none that were helpful. I have spent at least 24 hours of research

testusb on a HID device

2013-09-08 Thread joe M
Hello, I am trying to use testusb on a HID device for control tests. >From this (http://permalink.gmane.org/gmane.linux.usb.general/55628) discussion, I gather that it should be possible. But, I get these messages for even test 9. ./testusb: /dev/bus/usb/004/002 may see only control tests /dev/

Re: testusb on a HID device

2013-09-08 Thread joe M
Hello, > I do not want to rmmod the hid module as I think it will affect my > being-used usb keyboard and mouse too. I just want to rmmod the hid > module for the device being tested. I got this http://unix.stackexchange.com/questions/12005/how-to-use-linux-kernel-driver-bind-unbind-interface-fo

[PATCH] USB: ehci-fsl: Remove casting the return value which is a void pointer

2013-09-08 Thread Jingoo Han
Casting the return value which is a void pointer is redundant. The conversion from void pointer to any other pointer type is guaranteed by the C programming language. Signed-off-by: Jingoo Han --- drivers/usb/host/ehci-fsl.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[PATCH] USB: ehci-fsl: Remove casting the return value which is a void pointer

2013-09-08 Thread Jingoo Han
Casting the return value which is a void pointer is redundant. The conversion from void pointer to any other pointer type is guaranteed by the C programming language. Signed-off-by: Jingoo Han --- CC'ed Alan Stern. drivers/usb/host/ehci-fsl.c |2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH] usb: gadget: Add UDC driver for Aeroflex Gaisler GRUSBDC

2013-09-08 Thread Andreas Larsson
On 2013-08-28 11:02, Andreas Larsson wrote: On 2013-08-12 16:05, Andreas Larsson wrote: This adds an UDC driver for GRUSBDC USB Device Controller cores available in the GRLIB VHDL IP core library. The driver only supports DMA mode. Any comments? It would be great to get feedback soon in case s

Re: current version of http://www.linux-usb.org/usbtest/ testusb.c

2013-09-08 Thread Pratyush Anand
On Mon, Sep 09, 2013 at 02:08:02AM +0800, joe M wrote: > Hello, > > Just wanted to check if there is a version of > http://www.linux-usb.org/usbtest/ testusb.c or test.sh scrpts that > work with the current kernel. > > The files seem to be using usbfs, which is deprecated. > > ./testusb -a > usb