Re: [linux-usb-devel] spontaneous disconnect with "usb-storage: implement autosuspend"

2007-08-14 Thread Paolo Ornati
Generally a bug report for a specific usb device without vendor:product > is a bad idea. oopss :) HP PHOTOSMART E317 tux ~ # lsusb Bus 007 Device 001: ID : Bus 006 Device 002: ID 03f0:4002 Hewlett-Packard PhotoSmart 720 / PhotoSmart 935 (storage) ... --

[linux-usb-devel] spontaneous disconnect with "usb-storage: implement autosuspend"

2007-08-14 Thread Paolo Ornati
usb 6-2: uevent + hub 6-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x100 + usb usb6: suspend_rh (auto-stop) + hub 6-0:1.0: hub_suspend + usb usb6: bus auto-suspend + usb usb6: suspend_rh config for 2.6.22-gb0e2a705 attached -- Paolo Ornati Linux 2.6.23-rc3 on x86_64

Re: [linux-usb-devel] extended urb information for binary API again

2007-05-10 Thread Paolo Abeni
On Tue, 2007-05-08 at 10:30 -0700, Pete Zaitcev wrote: > On Tue, 08 May 2007 08:48:26 +0200, Paolo Abeni <[EMAIL PROTECTED]> wrote: > > That will be a better solution, but most unfortunately it does not fit > > easily with libpcap design: libpcap is designed to provide a

Re: [linux-usb-devel] extended urb information for binary API again

2007-05-07 Thread Paolo Abeni
e in a contiguous buffer (no support for readv-like interface). ciao, Paolo -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Problemi di Liquidità? Con Logos Finanziaria 30.000 € in 24 ore a dipendenti e lavoratori autonomi con rimborsi fino a 12

Re: [linux-usb-devel] extended urb information for binary API again

2007-05-04 Thread Paolo Abeni
to do that... Anyway I agree that the usbmon header used in my patch is (more than) a bit complicated. Obviously fell free to not use this implementation. ciao, Paolo -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Vuoi essere in grado di saper sc

[linux-usb-devel] extended urb information for binary API again

2007-05-04 Thread Paolo Abeni
--- linux-vanilla.orig/drivers/usb/mon/mon_bin.c +++ linux-vanilla/drivers/usb/mon/mon_bin.c @@ -3,7 +3,7 @@ * * This is a binary format reader. * - * Copyright (C) 2006 Paolo Abeni ([EMAIL PROTECTED]) + * Copyright (C) 2006,2007 Paolo Abeni ([EMAIL PROTECTED]) * Copyright (C)

Re: [linux-usb-devel] usbmon status && extended urb information for binary API

2007-04-13 Thread Paolo Abeni
ntainers. Moreover it wold be nice to have some simply way to query the kernel for the effective version of the usbmon binary api implementation, beside checking the kernel version number (possible issue with non vanilla kernel). Anyway thanks again for the long and detailed review! ciao, Paolo p.s

[linux-usb-devel] usbmon binary extended API [errata]

2007-03-29 Thread Paolo Abeni
s scenario require the user level usbmon reader to maintain some kind of per transfer status in order to fully reconstruct the transfer information. ciao, Paolo -- Index: linux/drivers/usb/mon/mon_bin.c === --- linux.orig/drivers/usb

Re: [linux-usb-devel] usbmon status && extended urb information for binary API

2007-03-28 Thread paolo . abeni
ry to add all the extended information re-using the setup header and adding extra events for the ISO packet descriptors (one event with all the descriptor, like your patch). This patch is only about the binary api extenstion (It's a differential patch against latest bus 0 implementation as seen on

[linux-usb-devel] usbmon status && extended urb information for binary API

2007-03-26 Thread Paolo Abeni
sochronous transfer) or into each 'P' event, like the per frame information. Ok this is a bit complex :-). Anyway please let me know any suggestion. thanks, Paolo -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Tutto per il Modding PC: Case

Re: [linux-usb-devel] usbmon: tentative implementation for 'bus0' interface

2007-03-13 Thread Paolo Abeni
?!?) will simplify the update process ?!? I hope I can get the whole thing a spin in the week-end. Ciao, Paolo -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Le speciali Offerte di Benvenuto di Cassine di Pietra: * scopra il gusto ed i vantaggi delle tr

Re: [linux-usb-devel] usbmon: tentative implementation for 'bus0' interface

2007-03-06 Thread Paolo Abeni
s is not ready to go to Greg yet. What about the device patch ? Should we send differential patch against it or just ignore? thanks, Paolo -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Refill s.r.l. - Tutto per la tua stampante a prezzi incredibili

Re: [linux-usb-devel] usbmon: tentative implementation for 'bus0' interface

2007-03-02 Thread Paolo Abeni
the second solution is that don't work for bus0: it give busnum == 0 that is meaningless. Thanks for the review and best regards, Paolo -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Scopri RIS il sistema di ricarica infinita. Meglio

[linux-usb-devel] usbmon: tentative implementation for 'bus0' interface

2007-02-28 Thread Paolo Abeni
This patch create the bus0 to the usbmon interface. Bus0 provides events for all attached USB buses to any kind of reader (text, binary). Signed-off-by: Paolo Abeni <[EMAIL PROTECTED]> --- This is test implementation to collect comments and suggestion on the subject. The patch is against

[linux-usb-devel] usbmon: Add class for the binary API [third try]

2007-02-28 Thread Paolo Abeni
This patch adds a class which allows for an easier integration with udev. Signed-off-by: Paolo Abeni <[EMAIL PROTECTED]> Signed-off-by: Pete Zaitcev <[EMAIL PROTECTED]> --- The patch is against linux 2.6.21-rc1. I just changed the struct device creation, using the ubus->co

Re: [linux-usb-devel] usbmon packet data format

2007-02-28 Thread Paolo Abeni
etion or error? Well, not exactly. The setup array is valid if setup_flag is 0 (ascii '\0'). If the data has been transferred using DMA, the setup array is active only on certain architecture (currently i386). The same for the URB data. ciao, Paolo -- Email.it, the pro

[linux-usb-devel] usbmon: Add class for the binary API [second try]

2007-02-27 Thread Paolo Abeni
This patch adds a class which allows for an easier integration with udev. Signed-off-by: Paolo Abeni <[EMAIL PROTECTED]> Signed-off-by: Pete Zaitcev <[EMAIL PROTECTED]> --- I just changed the struct device creation, using the ubus->controller for the parent device, as su

Re: [linux-usb-devel] usbmon packet data format

2007-02-27 Thread Paolo Abeni
defined (may always 0, but don't count on this). This lead to some waste of space (8 bytes for each event which don't really carry a setup packet) but lead to a simpler implementation. The choose was debated during usbmon binary API definition/creation. ciao, Paolo -- Email.

[linux-usb-devel] [PATCH] usbmon: add sysfs integration

2007-02-23 Thread Paolo Abeni
ass_device. Signed-off-by: Paolo Abeni <[EMAIL PROTECTED]> -- diff -uprN linux-2.6.21-rc1/drivers/usb/mon/mon_bin.c linux-2.6.21-rc1-mon/drivers/usb/mon/mon_bin.c --- linux-2.6.21-rc1/drivers/usb/mon/mon_bin.c 2007-02-23 09:57:44.0 +0100 +++ linux-2.6.21-rc1-mon/drivers/usb/mon/mon

Re: [linux-usb-devel] usbmon binary API header endianess

2007-01-11 Thread Paolo Abeni
ittle endian byte order and then 'visualized' on an host with big endian byte order (or vice versa) the header is miss-interpreted. I can solve this problem removing memory mapped access and performing the header byte order conversion, but any other suggestion will be very appreciated :

[linux-usb-devel] usbmon binary API header endianess

2007-01-10 Thread Paolo Abeni
e the code to make the header little endian, too ? This will make more uniform the processing of each event at the application level. I'm sorry to have came to this a little too late... Best regards, Paolo -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Re: [linux-usb-devel] usbmon update

2006-12-21 Thread Paolo Abeni
sed -e s/ class_// On the patch should make the work :-). Until January I will have some difficulties to check my mail, so: Marry Christmas to all. Paolo - Take Surveys. Earn Cash. Influence the Future of IT Join Sourc

Re: [linux-usb-devel] usbmon status?!?

2006-12-18 Thread Paolo Abeni
> Changing it now will affect Paolo. I am leaning to leaving it as is. The code for interfacing with the new binary API has not been merged yet into libpcap. If this really matters, I suppose it can be changed... Best regards, Paolo ---

[linux-usb-devel] usbmon update

2006-12-18 Thread Paolo Abeni
integrate nicely with udev, with the following rule: KERNEL=="usbmon[0-9]*", NAME="usbmon%n", MODE="0440",OWNER="root",GROUP="bin" Paolo -- diff -uprN linux-2.6.19-vanilla/Documentation/usb/usbmon.txt linux-2.6.19.1/Documentation/usb/usbmon.txt ---

Re: [linux-usb-devel] usbmon status?!?

2006-12-18 Thread Paolo Abeni
_init. The class devices are created with the 'struct device' parameter set to NULL, in order to simplify the class device initialization. A little modification to the mon_bus struct is required, because I think to store there the class device pointer.

Re: [linux-usb-devel] usbmon status?!?

2006-12-13 Thread Paolo Abeni
253 3 mknod /dev/usbmon/4 c 253 4 I don't use a udev rule because I was not able to write a working one. I think that udev is not receiving the device creation event for usbmon: perhaps a usbmon device class should be registered under sysfs to make udev receive this even

[linux-usb-devel] usbmon status?!?

2006-12-12 Thread Paolo Abeni
found here: http://thread.gmane.org/gmane.network.tcpdump.devel/1984/focus=1984 and hopefully will be merged into the pcap tree. I have not performed formal regression test, but I simply run wireshark +libpcap+usbmon and the data collected was reasonable. ciao, Paolo

Re: [linux-usb-devel] usbmon again

2006-12-05 Thread Paolo Abeni
sistency of the received packet chain). Best regards, Paolo - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & busin

[linux-usb-devel] again usbmon

2006-11-24 Thread Paolo Abeni
hi Pete, In the hope to make your work easier/faster I merged the latest fix signaled on the mailing list, the mmap implementation, the mfetch and mflush ioctl methods, and reworked mon_bin_get_event and mon_bin_read to use a common helper function to wait for data on the ring buffer. This is th

Re: [linux-usb-devel] usbmon, next round

2006-11-24 Thread Paolo Abeni
ate(TASK_RUNNING); > + remove_wait_queue(&rp->b_wait, &waita); > + return -EWOULDBLOCK; /* Same as EAGAIN in Linux */ Before returning the mutex 'fetch_lock' is hold, shouldn't it be released ?!? The same situation happe

Re: [linux-usb-devel] usbmon, next round

2006-11-23 Thread Paolo Abeni
ioctl command ?!? ciao, Paolo - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics thro

[linux-usb-devel] last usbmon binary interface work

2006-11-06 Thread Paolo Abeni
Hello, I would like to share my last work to add a binary interface to usbmon. This is still quite rough and does use the dreaded next_urb field into the urb header structure, so it's not intended as a finished work. -- diff -upN linux-2.6.18-vanilla/drivers/usb/mon/Makefile linux-2.6.18-mon_mm

Re: [linux-usb-devel] usbmon binary interface

2006-10-31 Thread Paolo Abeni
roblems be fixed with some kind of memory barrier implemented into the driver after writing the urb header?!? ciao, Paolo - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly wi

[linux-usb-devel] [PATCH] usbmon: add binary interface

2006-10-11 Thread Paolo Abeni
From: Paolo Abeni <[EMAIL PROTECTED]> A binary interface is added to usbmon. For each USB bus present on the host system a new file is added to the debugfs directory, in the form "usb%db". USB records are stored in a liked list, alike current text interface implementation,

[linux-usb-devel] [PATCH] usbmon: control the max amount of captured data for eachurb

2006-10-08 Thread Paolo Abeni
From: Paolo Abeni <[EMAIL PROTECTED]> An ioctl method is added to each usbmon text files. The ioctl implements two operation: retrieving the max size of data that usbmon is able to capture for each URB, and changing this value. Captured data is stored in buffers allocated from a slab cache

[linux-usb-devel] usbmon binary interface and whole URB data dump

2006-10-06 Thread Paolo Abeni
31969 Is there any further development ?!? I'm working to extend the current text interface; perhaps is not the best way, but it should be the more easier/less intrusive. Is any patch on this subject of more general interest ?!? Best regar

[linux-usb-devel] Usb-monitor

2005-02-14 Thread Paolo
Hi all. I'd like to try the usbmon option (to monitor the usb connection), as suggested in Irc. I don't want to change kernel, so if there is any patch for my kernel (2.6.10), i'll be very glad. I've searched in Google, but i didn't found clear informations. Thanx. --

Re: [linux-usb-devel] Initializing a device using windows instructions

2005-02-12 Thread Paolo
Is this aiptek? Wouldn't it be better to fix the driver so it initializes the device properly? Perhaps you can post the info you gathered from windows (if it is too huge, maybe you can stick it on a web-page somewhere)? Ciao, Duncan. Hi Duncan :) Well, the tablet is an Aiptek, right. By now

[linux-usb-devel] Initializing a device using windows instructions

2005-02-12 Thread Paolo
Hi. My graphic tablet seems to be supported (in Linux), but can't work. Booting in Windows and then soft-booting in Linux, i can use it without problems. So, i've dumped the instructions sent to my graph-tablet in Windows... now i'd like to use those informations with usb-robot-slave, to make

[linux-usb-devel] Problems with STV680 + uhci driver

2003-10-11 Thread Paolo Ornati
or me ;-). I think "2.4.x UHCI alternate driver" && "2.6.x UHCI-HCD" have some problems on my hardware (my chipset is VIA KT133 on Asus motherboard). Full info on my hardware / software have been posted to this list on my previous message: http://marc.theaimsgroup.com/?

[linux-usb-devel] USB-Problems with uhci_hcd + V4L + stv680 driver

2003-09-30 Thread Paolo Ornati
- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- Capabilities: [60] Power Management version 1 Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- -- Paolo Ornati Linux v2.4.22 config-2.6.gz Description: GNU Zip compressed data

[linux-usb-devel] schedule_timeout problem with usb.c in 2.4.18 on ARM

2003-09-22 Thread Pier Paolo Glave
anyway, with the URB requests correctly done. It is not clear to me why this function call can cause problems in my architecture, and I don't know either if my modification will result in buggy or unstable system behaviour. What do you think about it? Thank you in advance -

[linux-usb-devel] Re: [2.4.21] USB very strange problems! (fwd) POST 2

2003-08-14 Thread Paolo Ornati
On Wednesday 13 August 2003 22:38, you wrote: > On Wed, Aug 13, 2003 at 10:25:51PM +0200, Paolo Ornati wrote: > > On Wednesday 13 August 2003 18:37, you wrote: > > > On Tue, Aug 12, 2003 at 02:13:21PM -0300, Marcelo Tosatti wrote: > > > > Paolo, > >