<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/drivers/staging/rspiusb, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/drivers/staging/rspiusb?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/drivers/staging/rspiusb?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2009-09-15T19:02:35Z</updated>
<entry>
<title>Staging: rspiusb: remove the driver</title>
<updated>2009-09-15T19:02:35Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2009-09-03T04:33:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=ffac040c05f7887896fbd5e1139e7fc59c30fa21'/>
<id>urn:sha1:ffac040c05f7887896fbd5e1139e7fc59c30fa21</id>
<content type='text'>
No one cares, it's a custom userspace interface, and the code hasn't
built in a long time.  So remove it.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Staging: rspiusb: Check usb_buffer_map_sg() retval</title>
<updated>2009-09-15T19:02:29Z</updated>
<author>
<name>Roel Kluin</name>
<email>roel.kluin@gmail.com</email>
</author>
<published>2009-08-22T17:32:44Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=48c8276d7ac534d62c594c9a493130ff9137675d'/>
<id>urn:sha1:48c8276d7ac534d62c594c9a493130ff9137675d</id>
<content type='text'>
usb_buffer_map_sg() may return -1, check this directly.

Signed-off-by: Roel Kluin &lt;roel.kluin@gmail.com&gt;
Reviewed-by: Jiri Slaby &lt;jirislaby@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Staging: rspiusb: Fix buffer overflow</title>
<updated>2009-08-07T23:12:03Z</updated>
<author>
<name>Roel Kluin</name>
<email>roel.kluin@gmail.com</email>
</author>
<published>2009-08-07T19:00:10Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=749d00dbf154fc2f9ac59df669205039de0d5b45'/>
<id>urn:sha1:749d00dbf154fc2f9ac59df669205039de0d5b45</id>
<content type='text'>
usb_buffer_map_sg() may return -1. This will result in a read from
pdx-&gt;PixelUrb[frameInfo][-1]

Signed-off-by: Roel Kluin &lt;roel.kluin@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Staging: rspiusb: use NULL virtual address instead of a bogus one</title>
<updated>2009-07-12T20:21:44Z</updated>
<author>
<name>Pete Zaitcev</name>
<email>zaitcev@redhat.com</email>
</author>
<published>2009-06-10T20:44:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=aea0d43bdec32cc4a7ba53d6c82616de3964357a'/>
<id>urn:sha1:aea0d43bdec32cc4a7ba53d6c82616de3964357a</id>
<content type='text'>
The main problem here is that I just cannot see how this could ever
be correct:

	usb_fill_bulk_urb(pdx-&gt;PixelUrb[frameInfo][i], pdx-&gt;udev, epAddr,
		(dma_addr_t *) sg_dma_address(&amp;pdx-&gt;sgl[frameInfo][i]),
 		sg_dma_len(&amp;pdx-&gt;sgl[frameInfo][i]),

You cannot take a DMA address, cast it to a _pointer to_ a DMA address,
and then regard it as a virtual address of the transfer buffer.
However, finding the right virtual address was too hard for me,
so I just stubbed it with NULL. At least usbmon won't oops then
(it will not show any data but it's better than crashing).

Also, too big a buffer was allocated elsewhere.

And since we're at it, drop clearly unnecessary usb_buffer_alloc too,
leaving it where it may be useful.

Signed-off-by: Pete Zaitcev &lt;zaitcev@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Staging: rspiusb: copy_to/from_user related fixes</title>
<updated>2009-06-19T18:00:54Z</updated>
<author>
<name>vibi sreenivasan</name>
<email>vibi_sreenivasan@cms.com</email>
</author>
<published>2009-06-04T15:29:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=7a80bfcd1f4bac61d586d3551f74215ff02e9cba'/>
<id>urn:sha1:7a80bfcd1f4bac61d586d3551f74215ff02e9cba</id>
<content type='text'>
The patch does copy_to/from_user related fixes

*) __copy_from/to_user is enough for user space data buffer checked by access_ok.
*) return -EFAULT if __copy_from/to_user fails.
*) Do not use memcpy to copy from user space.

Signed-off-by: Vibi Sreenivasan &lt;vibi_sreenivasan@cms.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Staging: rspiusb: Fix a bunch of warnings.</title>
<updated>2009-06-19T18:00:54Z</updated>
<author>
<name>vibi sreenivasan</name>
<email>vibi_sreenivasan@cms.com</email>
</author>
<published>2009-06-04T15:26:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=8d2db5169d103d03646e7b7e93798739b2290d22'/>
<id>urn:sha1:8d2db5169d103d03646e7b7e93798739b2290d22</id>
<content type='text'>
The patch fixes the following warnings.

drivers/staging/rspiusb/rspiusb.c: In function ‘pixel_data’:
drivers/staging/rspiusb/rspiusb.c:267: warning: passing argument 1 of ‘SetPageDirty’ makes
pointer from integer without a cast
drivers/staging/rspiusb/rspiusb.c: In function ‘UnMapUserBuffer’:
drivers/staging/rspiusb/rspiusb.c:500: warning: passing argument 1 of ‘put_page’ makes
pointer from integer without a cast
drivers/staging/rspiusb/rspiusb.c: In function ‘MapUserBuffer’:
drivers/staging/rspiusb/rspiusb.c:662: warning: assignment makes integer from pointer without a cast
drivers/staging/rspiusb/rspiusb.c:670: warning: assignment makes integer from pointer without a cast

Signed-off-by: Vibi Sreenivasan &lt;vibi_sreenivasan@cms.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Staging: rspiusb: duplicate code in pixis_io</title>
<updated>2009-06-19T18:00:54Z</updated>
<author>
<name>Richard Genoud</name>
<email>richard.genoud@gmail.com</email>
</author>
<published>2009-05-17T11:06:32Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=14e8bcd0866a93ae1c20efa462e5d4807a1398a0'/>
<id>urn:sha1:14e8bcd0866a93ae1c20efa462e5d4807a1398a0</id>
<content type='text'>
It seems that pixis_io and pixis_io2 should do the same thing.


Signed-off-by: Richard Genoud &lt;richard.genoud@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Staging: rspiusb.c: break the huge piusb_ioctl function into several ones</title>
<updated>2009-06-19T18:00:54Z</updated>
<author>
<name>Richard Genoud</name>
<email>richard.genoud@gmail.com</email>
</author>
<published>2009-05-17T11:06:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=c854b5e58f2a564af1428e12cdb183e9b876fa0f'/>
<id>urn:sha1:c854b5e58f2a564af1428e12cdb183e9b876fa0f</id>
<content type='text'>
This makes the code more readable, makes checkpatch really happy and factorize some code.

Signed-off-by: Richard Genoud &lt;richard.genoud@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Staging: rspiusb: clean rspiusb code</title>
<updated>2009-06-19T18:00:54Z</updated>
<author>
<name>Richard Genoud</name>
<email>richard.genoud@gmail.com</email>
</author>
<published>2009-05-17T11:06:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=f2d46e248a8a825506c21f972fff11e423ff1eea'/>
<id>urn:sha1:f2d46e248a8a825506c21f972fff11e423ff1eea</id>
<content type='text'>
This first patch makes checkpatch happier

Signed-off-by: Richard Genoud &lt;richard.genoud@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Staging: rspiusb: make driver compile</title>
<updated>2009-06-19T18:00:54Z</updated>
<author>
<name>J.R. Mauro</name>
<email>jrm8005@gmail.com</email>
</author>
<published>2009-03-28T04:10:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=6546f08d21921ee13b6265493bebcff750090791'/>
<id>urn:sha1:6546f08d21921ee13b6265493bebcff750090791</id>
<content type='text'>
Convert undefined info() function calls to dev_err, making rspiusb compile

Signed-off-by: J.R. Mauro &lt;jrm8005@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
</feed>
