Web lists-archives.com

Re: [Spca50x-devs] How to increase the packet size (USB)




Hi all,

I could make it work with my TI-DAVINCI board.

The problem was in FIFO Size allocation to the ep which was used by my
webcam.

I identified that webcam and changed the FIFO size to 1024 and it worked..


Thanks
Manjunath.AM


-----Original Message-----
From: davinci-linux-open-source-bounces@xxxxxxxxxxxxxxxxxxxx
[mailto:davinci-linux-open-source-bounces@xxxxxxxxxxxxxxxxxxxx]On Behalf
Of davinci-linux-open-source-request@xxxxxxxxxxxxxxxxxxxx
Sent: Monday, July 09, 2007 10:30 PM
To: davinci-linux-open-source@xxxxxxxxxxxxxxxxxxxx
Subject: Davinci-linux-open-source Digest, Vol 19, Issue 13


Send Davinci-linux-open-source mailing list submissions to
	davinci-linux-open-source@xxxxxxxxxxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
	http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

or, via email, send a message with subject or body 'help' to
	davinci-linux-open-source-request@xxxxxxxxxxxxxxxxxxxx

You can reach the person managing the list at
	davinci-linux-open-source-owner@xxxxxxxxxxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Davinci-linux-open-source digest..."


Today's Topics:

   1. RE: [Spca50x-devs] How to increase the packet size (USB)
      (Manjunath A M)
   2. DVflasher help (Subashini Balaraman)
   3. About SPI Driver (Sean)


----------------------------------------------------------------------

Message: 1
Date: Mon, 9 Jul 2007 15:39:54 +0530
From: Manjunath A M <manjunatham@xxxxxxxxxxxxxxx>
Subject: RE: [Spca50x-devs] How to increase the packet size (USB)
To: "'Michel Xhaard'" <mxhaard@xxxxxxxx>,
	<spca50x-devs@xxxxxxxxxxxxxxxxxxxxx>
Cc: davinci-linux-open-source@xxxxxxxxxxxxxxxxxxxx
Message-ID: <010901c7c211$4c807cb0$9129320a@xxxxxxxxxx>
Content-Type: text/plain;	charset="utf-8"




Hi Michel,


Thanks for your reply, Yes my Hardware usb controller supports isochronous.
No we dont have any other USB device on the same usb host controller. you
can see the details abt my controller in this link
http://focus.ti.com/lit/ug/sprue35a/sprue35a.pdf
still i have the same problem.

As i seen in MUSB driver("drivers/usb/musb/plat_uds.c") the packet allocated
to tx and rx FIFO is 512 bytes. Please suggest me how to goahead to resolve
this issue.

Thanks
Manju.


-----Original Message-----
From: Michel Xhaard [mailto:mxhaard@xxxxxxxx]
Sent: Thursday, July 05, 2007 8:55 PM
To: spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
Cc: Manjunath A M; davinci-linux-open-source@xxxxxxxxxxxxxxxxxxxx
Subject: Re: [Spca50x-devs] How to increase the packet size (USB)


Le Jeudi 5 Juillet 2007 16:03, Manjunath A M a C)crit :
> Hi,
>
> I am using 2.6.20-omap1(montavista) kernel for my TI-DAVINCI based board,I
> am trying to interface USB-webcam to the board using gspcav1-20070508 and
> my application driver is spcaview-20061208.
>
> The problem i am facing is,
> gspca driver needs packet fifo size of 1023 to stream video and give
output
> properly. This is happening perfectly with X86(PC- with same
2.6.20-kernel)
> properly but with our TI-DAVINCI based the packet size allocated is only
> 128(after auto negotiating by driver)due to which only half of the vidoe
> window is displayed on the TV
>
>
> I have attached the demsg of both X86 and TI-BOARD..
>
> please suggest me how i can allocate more packet size to ISOC device ep. I
> need to increase packet size to 1024 in kernel musb driver to make my
> driver work properly ( i feel)..
>
> I tried by changing the .maxpacket value to 1023 in
> "drivers/usb/musb/plat_uds.c", it didn't help me.
>
>
>  Thanks in advance
>  Manjunath AM
>From the gspca logs it is trying to adapt the alternatesetting and decrease
maxpacket size as the usb layer answer "nospace left on device", is there
others usb device on the same usb host controller ? are you sure your
hardware is usb isochronous capable ?
--
Michel Xhaard
http://mxhaard.free.fr



------------------------------

Message: 2
Date: Mon, 9 Jul 2007 03:43:51 -0700 (PDT)
From: Subashini Balaraman <ravibsuba@xxxxxxxxx>
Subject: DVflasher help
To: etanner@xxxxxxxxxxxx, etanner@xxxxxxxxxxxx,	Linux DaVinci
	<davinci-linux-open-source@xxxxxxxxxxxxxxxxxxxx>
Message-ID: <503479.11047.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"


Hello Eric,


We had the same trouble initially though we were using a Nand flash.

We tried a few options on the DDR timings. Mainly, when we started to work
with a 16-bit DDR2 interface mode and when we reduced the PLL1 multiplier,
we found that the problem went away.

But later we found that the actual reason was that the EM_WAIT pin was not
connected to the Nand 's Rdy/Busy pin and when DVFlasher tried to read back,
it did not get the correct magic number for the application and hence used
to goback to BOOTPSP.


Also, we just used to give



DVFlasher -fnandbin u-boot.bin



I am not sure, but if you use your own UBL, see if you are required to
change the load address of your UBL in the DVflasher.cs file.

Regards
Suba.








____________________________________________________________________________
________
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://linux.omap.com/pipermail/davinci-linux-open-source/attachments/200707
09/7f7b6af2/attachment-0001.htm

------------------------------

Message: 3
Date: Mon, 9 Jul 2007 19:11:11 +0800
From: Sean <sean0920@xxxxxxxxx>
Subject: About SPI Driver
To: davinci-linux-open-source@xxxxxxxxxxxxxxxxxxxx
Message-ID:
	<cea6a2f70707090411x37501f36v75f7b230c3d5e704@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Dear

Now I'm trying to write a simple SPI driver for controlling my own SPI
peripheral.
(with our custom board, not EVM)

But I got some troubles...

When I remove all SPI peripherals, I could still receive data from SPI_BUF
!!
As well as, I can read the SPI_BUF register, and SPI_BUF register will
contain the data I wrote to SPI_DAT1.

I think this is abnormal. But I don't know where the mistake is...

I only do the things below

1. Set 0x00000001 to SPIGCR0
2. Set 0x00000003 to SPIGCR1 (CLKMOD & MASTER)
3. Set 0x00000E00 to SPIPC0 (I don't use EN_CS#, only DI, DO and CLK)
4. Initial SPIFMT0 : SHIFTDIR set to 1...
5. Set SPIDAT1 DFSEL to 0x0, CNSR to 0x3
6. Set SPIEMA to SPIGCR1

then I write data to SPIDAT1

>From SPIBUF , I would read the data "0x00000FFF" ( my chrlen is 12 bit)

I'm very confused about this, Thanks for your help.

Regards

-------------------------------------------------------------------------
below is my code :
       control=SPI_REG(SPIBUF);
       MSG("SPIBUF = %08X",control);
       if(control & (1 << 31))
               MSG("!! No Data received ");
       else{
               while(1){
                       control=SPI_REG(SPIBUF);
                       if(control & (1 << 29))
                               continue;
                       else
                               break;
                       MSG("wait for data receive ...");
                       ndelay(200);
               }
               MSG("receive data : %04X", (control & 0xFFFF));
       }

---------------------------------------------------------------------------


------------------------------

_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@xxxxxxxxxxxxxxxxxxxx
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


End of Davinci-linux-open-source Digest, Vol 19, Issue 13
*********************************************************


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs