SuperH 7760 OHCI

2016-05-26 Thread Martin Townsend
Hi, I'm currently trying to get the USB Host working on the SH7760. I tried the platform driver to start with and get the following error on boot: [3.60] usb 1-1: new full-speed USB device number 2 using ohci-platform [3.872000] ohci-platform ohci-platform: frame counter not updating;

Re: SuperH 7760 OHCI

2016-05-26 Thread Martin Townsend
On Thu, May 26, 2016 at 4:24 PM, Alan Stern wrote: > On Thu, 26 May 2016, Martin Townsend wrote: > >> Hi, >> >> I'm currently trying to get the USB Host working on the SH7760. I >> tried the platform driver to start with and get the following error on >>

Re: SuperH 7760 OHCI

2016-05-26 Thread Martin Townsend
On Thu, May 26, 2016 at 4:05 PM, Martin Townsend wrote: > Hi, > > I'm currently trying to get the USB Host working on the SH7760. I > tried the platform driver to start with and get the following error on > boot: > [3.60] usb 1-1: new full-speed USB device numbe

Re: SuperH 7760 OHCI

2016-05-26 Thread Martin Townsend
On Thu, May 26, 2016 at 6:31 PM, Alan Stern wrote: > On Thu, 26 May 2016, Martin Townsend wrote: > >> I tried hacking in the relevant code straight into the OHCI platform driver >> res_mem = platform_get_resource(dev, IORESOURCE_MEM, 1); >> if (res_mem == NULL) {

Re: SuperH 7760 OHCI

2016-05-27 Thread Martin Townsend
On Thu, May 26, 2016 at 8:04 PM, Alan Stern wrote: > On Thu, 26 May 2016, Martin Townsend wrote: > >> >> and setting the HCD_MEMORY_LOCAL flag in the HC driver. >> > >> > Did you do this correctly? That is, in the correct driver? >> > >> I put

SH7760 OHCI

2016-09-17 Thread Martin Townsend
Hi, A while back I was having problems with get the USB Host driver working for the SH7760. I have fixed this problem, it was down to the roothub.a register. So now the OHCI HCD tries to communicate with the host controller on the SH7760 but now there are memory issues. The SH7760 has 8KB of sh

Eject event when using USB Mass Storage Gadget

2019-02-11 Thread Martin Townsend
Hi, I've been trying to find a way of informing user space that the eject button has been pressed on the host PC. I put some debug in do_scsi_command and I only see the TEST_UNIT_READY command with nothing in it to distinguish it from other TEST_UNIT_READY commands. After loading the gadget kerne

Re: Eject event when using USB Mass Storage Gadget

2019-02-11 Thread Martin Townsend
Hi Alan, On Mon, Feb 11, 2019 at 5:28 PM Alan Stern wrote: > > On Mon, 11 Feb 2019, Martin Townsend wrote: > > > Hi, > > > > I've been trying to find a way of informing user space that the eject > > button has been pressed on the host PC. I put some debug

Re: Eject event when using USB Mass Storage Gadget

2019-02-12 Thread Martin Townsend
Hi Alan, On Mon, Feb 11, 2019 at 8:00 PM Alan Stern wrote: > > On Mon, 11 Feb 2019, Martin Townsend wrote: > > > I can confirm that do_start_stop is called and the code where it > > closes the LUN captures the EJECT (tested using Linux and Windows > > host). >