qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer
@ 2009-11-10 15:22 Laurent Vivier
  0 siblings, 0 replies; 17+ messages in thread
From: Laurent Vivier @ 2009-11-10 15:22 UTC (permalink / raw)
  To: avi, scottt.tw; +Cc: qemu-devel

>>> +    s->temperature++;
>>>
>> You're going to overheat very quickly.
>> Apart from making the driver work, is this actually useful?
>
>I wanted the temperature to change with time to give a sense of
>"something is happening" ^_^
>
>The main user I had in mind was someone new to USB and Linux driver 
>development
>following gregkh's driver tutorial:
>http://www.kroah.com/linux/talks/ols_2005_driver_tutorial/
>My thinking was that if the temperature never changes, all the USB
>packets generated in the 'read_int_callback"
>part of the driver would seem like a waste of effort.
>

Perhaps you could read temperature samples from a file...

Regards,
Laurent

-- 
--------------------- Laurent@vivier.eu  ---------------------
"Tout ce qui est impossible reste à accomplir"    Jules Verne
"Things are only impossible until they're not" Jean-Luc Picard

^ permalink raw reply	[flat|nested] 17+ messages in thread
* [Qemu-devel] [PATCH V2 0/3] usb-gotemp: USB thermometer emulation
@ 2009-11-10  9:37 Scott Tsai
  2009-11-10  9:37 ` [Qemu-devel] [PATCH V2 1/3] usb: move HID request defines to hw/usb.h Scott Tsai
  0 siblings, 1 reply; 17+ messages in thread
From: Scott Tsai @ 2009-11-10  9:37 UTC (permalink / raw)
  To: qemu-devel

Rebased on top of the master branch of git://git.savannah.nongnu.org/qemu.git since
last posting. Any advice on how to get these reviewed and merged or rejected greatly
appreciated!

Greg Kroah-Hartman has been giving a talk titled "Write a Real, Working, Linux Driver"
for the past four years at various conferences.  This patch series enables qemu to emulate
the Vernier Go!Temp USB thermometer used in that talk.

This was motivated by experience from the FreedomHEC Taipei 2009 conference,
where students complained that the gadget was too expensive while professional
developers complained the limited number of devices Greg brought sold out too quickly.

The emulation is complete enough for gregkh's sample driver and 
using the vendor supplied SDK through the in-kernel 'ldusb' module under Linux.
No testing have yet been done with the vendor's fancier Windows software.

Video, slides and code from gregkh's talk:
http://www.kernel.org/pub/media/talks/gregkh/2008_driver_writing_tutorial_gregkh.avi
http://www.archive.org/download/LinuxDriverTutorialFreedomhecTaipei2009_215/06-linux-driver-tutorial.ogg
http://freedomhectaipei.pbworks.com/f/gregkh-driver-tutorial-freedomhectaipei.pdf
http://freedomhectaipei.pbworks.com/f/usb_tutorial.tar.gz

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2009-12-04  5:37 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-10 15:22 [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer Laurent Vivier
  -- strict thread matches above, loose matches on Subject: below --
2009-11-10  9:37 [Qemu-devel] [PATCH V2 0/3] usb-gotemp: USB thermometer emulation Scott Tsai
2009-11-10  9:37 ` [Qemu-devel] [PATCH V2 1/3] usb: move HID request defines to hw/usb.h Scott Tsai
2009-11-10  9:37   ` [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer Scott Tsai
2009-11-10 14:48     ` Avi Kivity
2009-11-10 15:14       ` Scott Tsai
2009-11-10 15:33         ` Alexander Graf
2009-11-10 15:55           ` Scott Tsai
2009-11-10 17:06             ` Luiz Capitulino
2009-11-10 17:52               ` Scott Tsai
2009-11-10 20:52                 ` Luiz Capitulino
2009-11-11  0:09                 ` Anthony Liguori
2009-11-11  0:15                   ` Alexander Graf
2009-11-11  0:57                     ` Greg KH
2009-11-11  1:05                       ` Alexander Graf
2009-11-11  1:06                       ` Scott Tsai
2009-12-04  5:28                         ` Greg KH
2009-11-11  2:10                   ` Scott Tsai
2009-11-10 16:50           ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).