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 gre...@suse.de 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

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 lcapitul...@redhat.com 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 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 SDK

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 development

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 driver development

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 ag...@suse.de 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

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 scottt...@gmail.com wrote: On Tue, Nov 10, 2009 at 11:33 PM, Alexander Graf ag...@suse.de wrote: How about having a monitor command to change the temperature, leveraging a common interface? That way in the future real host 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 scottt...@gmail.com wrote: On Wed, Nov 11, 2009 at 1:06 AM, Luiz Capitulino lcapitul...@redhat.com wrote: I'd certainly like to make this code useful for something other than developer training. How about a new monitor command

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 lcapitul...@redhat.com 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

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 gre...@suse.de 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

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 anth...@codemonkey.ws 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