Re: host to host usb transfer

2012-10-29 Thread Peter Stuge
Marek Floriańczyk wrote: Well I thought about USB because of two reasons: 1. I need Ethernet port on that Linux box to be used by my server and it needs to be configured accordingly to home network. It would be troublesome to use that. 2. USB is available on most of the computers, and usually

Re: xhci Portsc register issue

2012-10-25 Thread Peter Stuge
Sarah Sharp wrote: I'm not sure, since I've never attempted to memory map PCI registers from userspace. I was under the impression that you just can't do that. Need root, and the kernel still gets a say, but yes, you can just do that. http://stuge.se/physrd.c //Peter -- To unsubscribe from

Re: USB-OTG enabled phone mount desktop partitions via USB port

2012-10-17 Thread Peter Stuge
杨苏立 Yang Su Li wrote: Doesn't the controller come on a PCI card? That's all you need. What else does the evaluation board have? Unfortunately the USB controller doesn't come on a PCI card (to my surprise). Correct. I guess I would have to get an evaluation board

Re: USB-OTG enabled phone mount desktop partitions via USB port

2012-10-17 Thread Peter Stuge
Peter Stuge wrote: Googling NET2280EVB-SW finds http://www.plxtech.com/pdf/usb/NcApi_Vs_NcFwApi.pdf which explains: NET2280 firmware development software is available from PLX as “NET2280EVB-SW”. This software applies to the NET2280 EVB and RDK boards. Linux replaces the function

Re: PDF documentation

2012-10-17 Thread Peter Stuge
Constantine Shulyupin wrote: - what PDF documentation do you use? (You can just drop a link to PDF, for example http://www.ti.com/lit/ds/symlink/omap4430.pdf) I don't understand what you want to know. I have thousands of data sheets for parts that I have used, use, or plan to use.

Re: PDF documentation

2012-10-17 Thread Peter Stuge
Russell King - ARM Linux wrote: You have to be careful of copyright infringement. Yeah, because a company might sue for datasheet copyright infringement when someone is (if only potentially) buying their product. I would think that one through one more time. :) //Peter -- To unsubscribe from

Re: PDF documentation

2012-10-17 Thread Peter Stuge
Russell King - ARM Linux wrote: If there was not a problem here, all documentation would explicitly state that it is able to be freely distributed. Lawyers like job security as much as the guy on the floor, theirs just involves different psychology. //Peter -- To unsubscribe from this list:

Re: PDF documentation

2012-10-16 Thread Peter Stuge
Constantine Shulyupin wrote: It is not so easy to manage a lot of PDF documents sometimes with strange code in file names. I tend to rename them in some way that allows me to find them quickly when I need them. It is not easy to store and share links to documentation. Storing is easy, I

Re: usbserial ftdi_sio problem

2012-10-15 Thread Peter Stuge
Mostafa Kassem wrote: the Wifi module is this one from connectone: http://www.connectone.com/?page_id=233 This may be the dumbest USB wifi module I have seen. Have you already developed a software stack which depends on the proprietary vendor protocol that they call AT+i? If no, I would

Re: usbserial ftdi_sio problem

2012-10-15 Thread Peter Stuge
Greg KH wrote: But, if Mostafa is stuck at RHEL 6, there's nothing that we can do here to help out at all, sorry. Maybe he can help test a driver on an up-to-date kernel.org release, and then perhaps he can ask RH to backport the driver. It should also not be very much effort. Mostafa, can

Re: REGRESSION: usbdevfs: Use-scatter-gather-lists-for-large-bulk-transfers

2012-10-11 Thread Peter Stuge
Henrik Rydberg wrote: What is the programming cable and software that uses it? The programmer is impact, using libusbx-1.0.14-1. Do you know for a fact that your version calls libusb-1.0? Did you establish this with e.g. strace? ISE 11.1 impact uses only libusb.so, ie. libusb-0.1. Depending

Re: REGRESSION: usbdevfs: Use-scatter-gather-lists-for-large-bulk-transfers

2012-10-11 Thread Peter Stuge
Xiaofan Chen wrote: On Thu, Oct 11, 2012 at 2:50 PM, Peter Stuge pe...@stuge.se wrote: But it isn't certain that is is involved at all. If your impact version uses libusb.so like in ISE 11.1 then it will not be. One way to test is by trying to generate a libusb debug log. See https

Re: usb audio device can't work when it is attached to host via usb 2.0 hub

2012-10-11 Thread Peter Stuge
Elric Fu wrote: It is a usb 1.1 device and works at full speed. It is a frequent misunderstanding that a device must be 1.1 only because it does not support high speed. This is not the case. But the interesting thing is the bcdUSB field of device descriptor is 0x0200. It is perfectly legal

Re: REGRESSION: usbdevfs: Use-scatter-gather-lists-for-large-bulk-transfers

2012-10-11 Thread Peter Stuge
handling of large bulk transfers is completely broken; the same user page is read over and over again. Fixed with this patch. Cc: sta...@kernel.org Signed-off-by: Henrik Rydberg rydb...@euromail.se Acked-by: Peter Stuge pe...@stuge.se -- To unsubscribe from this list: send the line

Re: REGRESSION: usbdevfs: Use-scatter-gather-lists-for-large-bulk-transfers

2012-10-10 Thread Peter Stuge
Hej Henrik, Henrik Rydberg wrote: commit 3d97ff63f8997761f12c8fbe8082996c6eeaba1a Author: Hans de Goede hdego...@redhat.com Date: Wed Jul 4 09:18:03 2012 +0200 usbdevfs: Use scatter-gather lists for large bulk transfers breaks an usb programming cable over here. The problem is

Re: USB-OTG enabled phone mount desktop partitions via USB port

2012-10-09 Thread Peter Stuge
杨苏立 Yang Su Li wrote: if SemiconductorStore still can deliver the above NET2280EVB PCI card then you can realize the DRAM-backed storage device using a Linux gadget driver, in a powerful PC with very little effort. I assume I will have to do some PCI programming to move data from memory

Re: USB-OTG enabled phone mount desktop partitions via USB port

2012-10-08 Thread Peter Stuge
杨苏立 Yang Su Li wrote: In order to experiment something I need to pretend that my phone has a super fast SD card (faster than what is available in the market). So I want to simulate it through desktop ramdisk (which is basically disk in memory). And here is basically my plan: 1. Get an

Re: USB-OTG enabled phone mount desktop partitions via USB port

2012-10-08 Thread Peter Stuge
杨苏立 Yang Su Li wrote: is there some hardware I can by to turn my desktop into an USB device or USB OTG device? Preferably this hardware should use my desktop's memory to back-up its storage. Not that I know of. If the USB OTG host has a Micro-AB connector then yes, this cable is needed

Re: USB-OTG enabled phone mount desktop partitions via USB port

2012-10-08 Thread Peter Stuge
Alan Stern wrote: is there some hardware I can by to turn my desktop into an USB device or USB OTG device? Preferably this hardware should use my desktop's memory to back-up its storage. Not that I know of. Linux supports the net2272 and net2280 boards. I'm not sure if they can

Re: USB-OTG enabled phone mount desktop partitions via USB port

2012-10-08 Thread Peter Stuge
杨苏立 Yang Su Li wrote: Connecting an SSD to a cell phone is actually my initial idea. I wanna try memory/ramdisk because I need fine control over the I/O speed I get. As memory is a true random access device, Even DRAM isn't completely random access, but memory controllers do a good job at

Re: USBDEVFS_BULK

2012-09-29 Thread Peter Stuge
Sedki wrote: I'm not an expert, I just wanted to understand. Why do you want to understand? Would you like to use Linux for some task, or are you asking out of academic interest? Both are fine, but you have to provide more information about your motivation in order to get any useful reply.

Re: [usb-storage] Re: usb3 fails to write when using usb3 hub in usb3 port

2012-09-29 Thread Peter Stuge
Adrian Sandu wrote: I wouldn't of expected this from WD .. Like with Theodore's problem you don't really know for sure where the problem was in your setup. Any combination of USB controller hardware in PC, cable, and electronics in drive enclosure can have caused your problem. External disk

Re: cannot submit urb 0, error -22: internal error followed by USB hung tasks

2012-09-29 Thread Peter Stuge
Lassi Väätämöinen wrote: So apparently the USB 2.0 hub has a transaction translation going on, when connecting a USB 1.1 device to it. Yep. And due to the translation, the 1.1 device shows up as USB 2.0 (EHCI) device to the OS/driver. Did I get this correctly? Not this second part. The OS

Re: [usb-storage] Re: usb3 fails to write when using usb3 hub in usb3 port

2012-09-27 Thread Peter Stuge
Adrian Sandu wrote: I tried with a 3.3.8 , same thing happened. I don't understand why my gentoo (asrock) fails and fedora(laptop) didn't ! :| Try what Alan suggested, start the Gentoo userland with the Fedora kernel. Do you have some crazy USE flags for your toolchain? If the Fedora kernel

Re: [Patch v5] ezusb: move ezusb.c from drivers/usb/serial to drivers/usb/misc

2012-09-26 Thread Peter Stuge
Rene Buergel wrote: - renamed CONFIG_USB_EZUSB to CONFIG_USB_EZUSB_FX2 to avoid build errors Is this really the reason for the build error? I doubt it. Also, does the code in fact support only FX2, neither older chips nor newer FX3? diff --git a/drivers/usb/misc/Kconfig

Re: USB port power off discussion

2012-09-23 Thread Peter Stuge
Rafael J. Wysocki wrote: Well, we actually need to handle power domains appropriately. .. Some work in that direction has been done in the ARM space, where we have much more direct access to hardware, and I suppose it may be extended to things like ganged sets of ports (which actually are

Re: USB port power off discussion

2012-09-23 Thread Peter Stuge
Rafael J. Wysocki wrote: Is there already an API for power domains there? What does it look like? Yes, there is, as it turns out. :-) Please see drivers/base/power/domain.c and include/linux/pm_domain.h. Of course, this only covers a limited set of use cases at the moment, but I think

Re: USB port power off discussion

2012-09-21 Thread Peter Stuge
Hi, Sarah Sharp wrote: Two weeks ago at Linux Plumbers Conference, I presented about the Intel Lynx Point USB port power off mechanism. Good session with some participation, thanks to all! The end result of those patches is that we expose a sysfs file per USB port to userspace to allow

Re: USB port power off discussion

2012-09-21 Thread Peter Stuge
Sarah Sharp wrote: a userspace program claims the interface via usbfs and reads from the device when it wants to capture a finger scan. The kernel's auto power policy would turn back on the port as soon as the interface was claimed through usbfs. This translates to a slightly less appealing

Re: USB port power off discussion

2012-09-21 Thread Peter Stuge
Sarah Sharp wrote: How will userspace know why powering off the port does not work? We can expose the power resources in sysfs, so userspace can figure out which ports are under which power resources. Sorry, I should have clarified. If userspace really wants the port off (e.g. to

Re: How to associate lsusb bus/device with /dev entry?

2012-09-16 Thread Peter Stuge
Peter Stuge wrote: Hi all. Could someone tell me how to associate a USB Bus:Device info with a /dev/entry? This is subsystem-specific. Feel free to take inspiration from my script for usb-serial at http://stuge.se/find430.sh You'll have to change the code inside: for usbiface

Re: [PATCH] xhci: Make handover code more robust

2012-08-14 Thread Peter Stuge
Matthew Garrett wrote: +++ b/drivers/usb/host/pci-quirks.c .. @@ -830,9 +830,17 @@ static void __devinit quirk_usb_handoff_xhci(struct pci_dev *pdev) */ ext_cap_offset = xhci_find_next_cap_offset(base, XHCI_HCC_PARAMS_OFFSET); do { + if ((ext_cap_offset +

Re: [PATCH] usb: host: xhci: Fix Compliance Mode on SN65LVPE502CP Hardware

2012-08-01 Thread Peter Stuge
Hi Alexis, Did you run the patch through checkpatch.pl before submitting it? I think you will get a bunch of important and completely automatic feedback when you do that. Please fix everything that the script mentions. Alexis R. Cortes wrote: This patch is intended to work around a known

Re: [PATCH] usb: host: xhci: Fix Compliance Mode on SN65LVPE502CP Hardware

2012-08-01 Thread Peter Stuge
Alexis R. Cortes wrote: This patch is intended to work around a known issue on the SN65LVPE502CP USB3.0 re-driver that can delay the negotiation between a device and the host past the usual handshake timeout, and if that happens on the first insertion, the host controller port will enter in

Re: usb scheduler

2012-07-27 Thread Peter Stuge
Alexey Filin wrote: So USB is not a classic bus and not universal, it is a network with non-constant delay. Whatever classic bus means.. USB is a packet-based communications bus with well-defined timing characteristics. It is obviously not a local bus, as you know from PC architecture the USB

Re: usb scheduler

2012-07-27 Thread Peter Stuge
Alexey Filin wrote: For 2-byte read/write we could use either two bulk IN/OUT endpoints (131 * 8kHz ~ 1 MHz) or one control endpoint (table 5-3, 42 * 8 kHz = 336 kHz). If you can expand further on the details of your application then you will be able to get possibly unparalelled expert

Re: otg: sharing resources between host and gadget

2012-07-23 Thread Peter Stuge
Valentin Sitdikov wrote: How should user-space applications handle possibility of switching between host and gadget mode (for example libusb if controller is working as gadget ?) When switching from host mode libusb simply sees that the other device has disconnected, and libusb is not aware of

Re: controlling record light on camera

2012-07-23 Thread Peter Stuge
Adam Wozniak wrote: so I know this is a control output message with setup values bmRequestType=21, bRequest=01, wValue=0900, wIndex=0700, wLength=0005 and data of 01,0N,00,00,0a where N=1 for on and N=0 for off How would I send this same packet from a userspace application? Install a

<    1   2