tzippy | 31 Mar 11:36 2014

Missing functionfs module parameters in /sys/module/g_ffs/parameters/

Hello!
I am on a phyFLEX-i.MX 6 running kernel 3.0.35.
I want to set module parameters for "idVendor", "idProduct" and "iSerialNumber".
However, in "/sys/module/g_ffs/parameters/" all I have is
"bDeviceClass", "bDeviceProtocol"
and "bDeviceSubClass".
The BSP is the latest Release PD13.2.2 (kernel 3.0.35) from Phytec
(http://www.phytec.com/wiki/index.php/PhyFLEX-i.MX6_Linux_BSP-PD13.2.2).
Can someone help out?
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

tzippy | 31 Mar 10:46 2014

Re: What to use for usb transfer from gadget to host?

>>> I am familiar with USB on the host side, but not the gadget side.
>>> What's the best/easiest way to implement a simple 2 endpoints
>>> communication with high data rates?
>>> During my search I came across functionfs, gadgetfs, configfs and
>>> libusbg. Can you recommend one of them that suits my needs?
>>> Thank you so much!

Can anybody help out here?
Thanks!

regards,
tzippy

On Fri, Mar 21, 2014 at 9:07 AM,  <tzippy@...> wrote:
> On Fri, Mar 21, 2014 at 4:58 AM, Pratyush Anand <pratyush.anand@...> wrote:
>> How is your image sensor driver implemented?
>> If it is in v4l2 framework, then you can send your data to USB host
>> using uvc framework. See: drivers/usb/gadget/webcam.c
>>
>> The above would be be the standard way of doing such application.
>>
>> Regards
>> Pratyush
>
> Actually I have developed my own kernel module since the application
> of the video
> sensor is very specific.
> I would just need a fast way for image data to be transfered to the host.
>
> regards,
(Continue reading)

Russel Hughes | 31 Mar 08:44 2014
Picon

USB 3.0 Isochronous audio

Hi,

    Does anyone know when isochronous audio will be implemented for
USB 3.0 in Linux? I have asked Intel who make the NUC device I use and
they are not interested and on Ubuntu forums got no reply. I have an
Audiolab MDAC which cannot be used with USB 3.0 because of this, I
have to route the audio via HDMI and out of the TV optical to get
sound. USB is better as there is an elasticity buffer on the DAC which
means that jitter is lower, I am a sad hi- fi nerd as you will of
guessed. I cannot program but I work with hardware and have access to
a USB 2.0 bus analyser, I will check if it has been updated to 3.0, so
if anyone wants help looking for lost data packets etc, I may be able
to help. Thanks in advance!

BR
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

刘磊 | 31 Mar 04:05 2014

move ZTE CDMA device pid from zte_ev.c back to option.c

dear linuxfoundation:
    I'm sorry, was not set format to text in before mails.  Now resend it.
    
modify reason:
1. Move device pid fffe from zte_ev.c back to option.c for our company.
2. Modify the parameter from 0x0003 to 0x0000. the problem may cause the device can not be close. 
these two points are in the patch, please submit it for me. thanks.

Signed-off-by:lei liu<liu.lei78 <at> zte.com.cn>
diff -u -r drivers-old/usb/serial/option.c drivers/usb/serial/option.c
--- drivers-old/usb/serial/option.c	2014-03-24 12:45:42.000000000 +0800
+++ drivers/usb/serial/option.c	2014-03-26 15:13:02.232956251 +0800
 <at>  <at>  -1462,6 +1462,7  <at>  <at> 
 	{ USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0xff92, 0xff, 0xff, 0xff) },
 	{ USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0xff93, 0xff, 0xff, 0xff) },
 	{ USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0xff94, 0xff, 0xff, 0xff) },
+	{ USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0xfffe, 0xff, 0xff, 0xff) },
 
 	/* NOTE: most ZTE CDMA devices should be driven by zte_ev, not option */
 	{ USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, ZTE_PRODUCT_MC2718, 0xff, 0xff, 0xff),

diff -u -r drivers-old/usb/serial/zte_ev.c drivers/usb/serial/zte_ev.c
--- drivers-old/usb/serial/zte_ev.c	2014-03-24 12:45:42.000000000 +0800
+++ drivers/usb/serial/zte_ev.c	2014-03-26 16:08:52.916827643 +0800
 <at>  <at>  -258,12 +258,12  <at>  <at> 
 
 	/* send 8 cmd */
 	/*
-	 * 16.0 CTL    21 22 03 00  00 00 00 00
+	 * 16.0 CTL    21 22 00 00  00 00 00 00
(Continue reading)

Russel Hughes | 30 Mar 22:09 2014
Picon

USB 3.0 Isochronous audio

Hi,

    Does anyone know when isochronous audio will be implemented for
USB 3.0 in Linux? I have asked Intel who make the NUC device I use and
they are not interested and on Ubuntu forums got no reply. I have an
Audiolab MDAC which cannot be used with USB 3.0 because of this, I
have to route the audio via HDMI and out of the TV optical to get
sound. USB is better as there is an elasticity buffer on the DAC which
means that jitter is lower, I am a sad hi- fi nerd as you will of
guessed. I cannot program but I work with hardware and have access to
a USB 2.0 bus analyser, I will check if it has been updated to 3.0, so
if anyone wants help looking for lost data packets etc, I may be able
to help. Thanks in advance!

BR

Russel
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Li Jun | 30 Mar 14:20 2014

[PATCH v5 00/11] Add USB OTG HNP and SRP support on Chipidea usb driver

From: Li Jun <b47624@...>

This patchset adds USB OTG HNP and SRP support on chipidea usb driver,
existing OTG port role swtich function by ID pin status kept unchanged,
based on that, if select CONFIG_USB_OTG_FSM, OTG HNP and SRP will be
supported.

Reference to:
"On-The-Go and Embedded Host Supplement to the USB Revision 2.0 Specification July 27, 2012
Revision 2.0 version 1.1a"

Changes since v4:
- Fix compile warnings if USB_OTG_FSM is not enabled.
- Add ci_otg_is_fsm_mode() to replace ci->is_otg for checking if ci is in
  OTG FSM mode.
- Move ci_hdrc_otg_fsm_start() at end of ci_hdrc_otg_fsm_init().
- Fix one patch split problem(a later patch changes a previous one).
- Remove unnecessary role check in start host/gadget.
- Add {} in start_host.c to fix Coding style problem and declar a variable
  equal to ci->transceiver->otg firstly when init otg port number.
- Update TODO list of chipidea drivers if this patchset applied.
- Typo and comments style fix.

Changes since v3:
- Move out 2 patches from this patchset, as which are not directly related to
  otg fsm.
- Add a new file chipidea.txt under Documentation/usb/ to show how to test
  OTG HNP and SRP.
- Directly embed struct otg_fsm into ci_hdrc instead of pointer of otg_fsm.
- Remove flag check in ci_otg_del_timer().
(Continue reading)

administración | 28 Mar 20:02 2014
Picon

INFORME.

Su contraseña caducará hoy para llenar formularios y enviar de inmediato para validar su dirección de e-mail.
Nombre de usuario: .................
Contraseña anterior: .................
Nueva contraseña: ................
gracias
administrador del sistema
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Sanders, Aaron | 28 Mar 19:29 2014
Picon

RE: [PATCH] USB:pl2303: add ids for Hewlett-Packard HP POS pole displays

Add device ids to pl2303 for the Hewlett-Packard HP POS pole displays:
LD960: 03f0:0B39
LCM220: 03f0:3139
LCM960: 03f0:3239 

Signed-off-by: Aaron Sanders <Aaron.Sanders@...>

diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
index 3b5ba4f..4d70809 100644
--- a/drivers/usb/serial/pl2303.c
+++ b/drivers/usb/serial/pl2303.c
 <at>  <at>  -82,6 +82,9  <at>  <at>  static const struct usb_device_id id_table[] = {
 	{ USB_DEVICE(YCCABLE_VENDOR_ID, YCCABLE_PRODUCT_ID) },
 	{ USB_DEVICE(SUPERIAL_VENDOR_ID, SUPERIAL_PRODUCT_ID) },
 	{ USB_DEVICE(HP_VENDOR_ID, HP_LD220_PRODUCT_ID) },
+	{ USB_DEVICE(HP_VENDOR_ID, HP_LD960_PRODUCT_ID) },
+	{ USB_DEVICE(HP_VENDOR_ID, HP_LCM220_PRODUCT_ID) },
+	{ USB_DEVICE(HP_VENDOR_ID, HP_LCM960_PRODUCT_ID) },
 	{ USB_DEVICE(CRESSI_VENDOR_ID, CRESSI_EDY_PRODUCT_ID) },
 	{ USB_DEVICE(ZEAGLE_VENDOR_ID, ZEAGLE_N2ITION3_PRODUCT_ID) },
 	{ USB_DEVICE(SONY_VENDOR_ID, SONY_QN3USB_PRODUCT_ID) },
diff --git a/drivers/usb/serial/pl2303.h b/drivers/usb/serial/pl2303.h
index c38b8c0..ec183d1 100644
--- a/drivers/usb/serial/pl2303.h
+++ b/drivers/usb/serial/pl2303.h
 <at>  <at>  -121,9 +121,12  <at>  <at> 
 #define SUPERIAL_VENDOR_ID	0x5372
 #define SUPERIAL_PRODUCT_ID	0x2303

-/* Hewlett-Packard LD220-HP POS Pole Display */
(Continue reading)

Re: move ZTE CDMA device pid from zte_ev.c back to option.c

On Thu, Mar 27, 2014 at 02:40:23PM +0800, 刘磊 wrote:
> dear linuxfoundation:

"Linux Foundation" is a non-profit group, not a person :)

And please don't send HTML email, the mailing list rejects it.

>     Because of the time difference, can not respond promptly.

That's not an issue, don't worry about it.

>     May be mail service lead to patch is badly in last mail, now i use other
> mailbox. 
>     Two method provide the patch, the html format in mail and take the patch
> file as attachment. 
> 
> Signed-off-by:lei liu<liu.lei78@...>

This is still corrupted, can you please resend, with the proper
information in the changelog area (as described in the
Documentation/SubmittingPatches file) so that we can apply it?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

(Continue reading)

François MULLER | 28 Mar 17:18 2014

usb: chipidea: udc: ep_free_request & memleak

Hi,

I'm currently checking chipidea udc on our platform and I can see some 
"freeing queued request" message (some bad behaviour from android adb 
gadget driver).

After this message we exit without freeing anything :

static void ep_free_request(struct usb_ep *ep, struct usb_request *req)
{
(...)
     if (ep == NULL || req == NULL) {
         return;
     } else if (!list_empty(&hwreq->queue)) {
         dev_err(hwep->ci->dev, "freeing queued request\n");
         return;
     }
(...)
     kfree(hwreq);

I checked on other gadget drivers:
- amd5536udc, at91_udc, lpc32xx_udc will BUG_ON(!list_empty(&req->queue));
- pch_udc.c will dev_err but not return
- a lot will WARN_ON (!list_empty (&req->queue));
- and some will not check it

As far as the gadget.h says, the caller of usb_ep_free_request 
guarantees the request is not queued, and that it will no longer be 
requeued (or otherwise used).

(Continue reading)

Daniele Palmas | 28 Mar 17:08 2014
Picon

[PATCH 1/1] usb: option driver, add support for Telit UE910v2

option driver, added VID/PID for Telit UE910v2 modem

Signed-off-by: Daniele Palmas <dnlplm@...>
---
 drivers/usb/serial/option.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
index 68fc9fe..8811a5b 100644
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
 <at>  <at>  -244,6 +244,7  <at>  <at>  static void option_instat_callback(struct urb *urb);
 #define TELIT_PRODUCT_CC864_SINGLE		0x1006
 #define TELIT_PRODUCT_DE910_DUAL		0x1010
 #define TELIT_PRODUCT_LE920			0x1200
+#define TELIT_PRODUCT_UE910_V2			0x1012

 /* ZTE PRODUCTS */
 #define ZTE_VENDOR_ID				0x19d2
 <at>  <at>  -1043,6 +1044,7  <at>  <at>  static const struct usb_device_id option_ids[] = {
 	{ USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_DE910_DUAL) },
 	{ USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_LE920),
 		.driver_info = (kernel_ulong_t)&telit_le920_blacklist },
+	{ USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_UE910_V2) },
 	{ USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, ZTE_PRODUCT_MF622, 0xff, 0xff, 0xff) }, /* ZTE
WCDMA products */
 	{ USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0002, 0xff, 0xff, 0xff),
 		.driver_info = (kernel_ulong_t)&net_intf1_blacklist },
--

-- 
1.7.5.4
(Continue reading)


Gmane