Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-12-03 Thread Greg KH
On Wed, Nov 11, 2009 at 09:06:58AM +0800, Scott Tsai wrote: > On Wed, Nov 11, 2009 at 8:57 AM, Greg KH wrote: > > > > What code? ??Where is it at? > > http://patchwork.ozlabs.org/patch/38118/ > > This code emulates a Vernier Go!Temp device in qemu. > I wrote this to enable people to follow your

Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-11 Thread Greg KH
On Wed, Nov 11, 2009 at 01:15:45AM +0100, Alexander Graf wrote: > > On 11.11.2009, at 01:09, Anthony Liguori wrote: > > > Scott Tsai wrote: > >> On Wed, Nov 11, 2009 at 1:06 AM, Luiz Capitulino >> > wrote: > >> > I'd certainly like to make this code useful for something other > than

Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Scott Tsai
On Wed, Nov 11, 2009 at 8:09 AM, Anthony Liguori wrote: > That said, if we position this as an example device, I think that makes > sense.  But that suggests that we should document the heck out of it and > make it a learning experience for QEMU too.  It could be an example of how > to write a sim

Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Scott Tsai
On Wed, Nov 11, 2009 at 8:57 AM, Greg KH wrote: > > What code?  Where is it at? http://patchwork.ozlabs.org/patch/38118/ This code emulates a Vernier Go!Temp device in qemu. I wrote this to enable people to follow your driver tutorial without buying the gadget. (I implemented functionality not e

Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Alexander Graf
On 11.11.2009, at 01:57, Greg KH wrote: On Wed, Nov 11, 2009 at 01:15:45AM +0100, Alexander Graf wrote: On 11.11.2009, at 01:09, Anthony Liguori wrote: Scott Tsai wrote: On Wed, Nov 11, 2009 at 1:06 AM, Luiz Capitulino wrote: I'd certainly like to make this code useful for something ot

Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Alexander Graf
On 11.11.2009, at 01:09, Anthony Liguori wrote: Scott Tsai wrote: On Wed, Nov 11, 2009 at 1:06 AM, Luiz Capitulino > wrote: I'd certainly like to make this code useful for something other than developer training. How about a new monitor command "thermometer_set" that works like "mouse_mo

Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Anthony Liguori
Scott Tsai wrote: On Wed, Nov 11, 2009 at 1:06 AM, Luiz Capitulino wrote: I'd certainly like to make this code useful for something other than developer training. How about a new monitor command "thermometer_set" that works like "mouse_move"? "thermometer_set" would just set the temperature

Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Luiz Capitulino
On Wed, 11 Nov 2009 01:52:12 +0800 Scott Tsai wrote: > On Wed, Nov 11, 2009 at 1:06 AM, Luiz Capitulino > wrote: > >> > >> I'd certainly like to make this code useful for something other than > >> developer training. > >> How about a new monitor command "thermometer_set" that works like > >> "

Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Scott Tsai
On Wed, Nov 11, 2009 at 1:06 AM, Luiz Capitulino wrote: >> >> I'd certainly like to make this code useful for something other than >> developer training. >> How about a new monitor command "thermometer_set" that works like >> "mouse_move"? >> "thermometer_set" would just set the temperature of th

Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Luiz Capitulino
On Tue, 10 Nov 2009 23:55:10 +0800 Scott Tsai wrote: > On Tue, Nov 10, 2009 at 11:33 PM, Alexander Graf wrote: > > How about having a monitor command to change the temperature, leveraging a > > "common interface"? > > That way in the future real host temperature measurements could maybe get > >

Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Avi Kivity
On 11/10/2009 05:33 PM, Alexander Graf wrote: How about having a monitor command to change the temperature, leveraging a "common interface"? That way in the future real host temperature measurements could maybe get forwarded there too. At least for battery I've had several people ask already if

Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Scott Tsai
On Tue, Nov 10, 2009 at 11:33 PM, Alexander Graf wrote: > How about having a monitor command to change the temperature, leveraging a > "common interface"? > That way in the future real host temperature measurements could maybe get > forwarded there too. At least for battery I've had several people

Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Alexander Graf
On 10.11.2009, at 16:14, Scott Tsai wrote: +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

Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Laurent Vivier
>>> +    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 dr

Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Scott Tsai
>> +    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 deve

Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Avi Kivity
On 11/10/2009 11:37 AM, Scott Tsai wrote: Emulate the Vernier Go!Temp USB thermometer (see: http://www.vernier.com/go/gotemp.html) used in Greg Kroah-Hartman's "Write a Real, Working, Linux Driver" talk. The emulation is complete enough for gregkh's sample driver and using the vendor supplied SD

[Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Scott Tsai
Emulate the Vernier Go!Temp USB thermometer (see: http://www.vernier.com/go/gotemp.html) used in Greg Kroah-Hartman's "Write a Real, Working, Linux Driver" talk. The emulation is complete enough for gregkh's sample driver and using the vendor supplied SDK through the in-kernel 'ldusb' module under