<html>
<body>
<font size=3>Peter,<br>
&nbsp;&nbsp; Yep, at the moment the Krauler driver works OK for me. So if
you want to make the change that is fine.<br><br>
Regards<br>
&nbsp;  Jon<br><br>
At 03:42 9/02/2007, Peter Selinger wrote:<br>
<blockquote type=cite class=cite cite="">Hi Alexander,<br><br>
thanks for your good work on the megatec_usb driver. I have made a
few<br>
more (cosmetic) changes.<br><br>
Is the driver now working stably for your device? In particular, do<br>
the instant commands (and particularly &quot;upsdrvctl -k&quot
<img src="http://messenger.msn.com/MMM2004-08-11_11.52/Resource/emoticons/wink_smile.gif" width=19 height=19 alt="Winking smiley"> work
properly? <br>
In this case, we could hopefully mark the device as &quot;supported&quot;
and<br>
merge the driver to the main branch. <br><br>
There is still the question of whether to keep separate code for<br>
Ablerex and Krauler. From what I understand, each of these
subdrivers<br>
works for each of the devices. But the Krauler driver is now more<br>
advanced (with the retry feature), so we could remove the Ablerex<br>
subdriver (provided Jon tests the Krauler one to make sure it still<br>
works for the Ablerex device).<br><br>
If I understand correctly, the only change needed would be to
change<br><br>
&nbsp;&nbsp; {0xffff, 0x0000, get_data_ablerex,
set_data_ablerex},<br><br>
to <br><br>
&nbsp;&nbsp; {0xffff, 0x0000, get_data_krauler,
set_data_krauler},<br><br>
is that correct? -- Peter<br><br>
Alexander Gordeev wrote:<br>
&gt; <br>
&gt; Author: agordeev-guest<br>
&gt; Date: Thu Feb&nbsp; 8 16:43:43 2007<br>
&gt; New Revision: 801<br>
&gt; <br>
&gt; Modified:<br>
&gt;&nbsp;&nbsp;&nbsp; branches/megatec-usb/ChangeLog<br>
&gt;&nbsp;&nbsp;&nbsp; branches/megatec-usb/drivers/megatec_usb.c<br>
&gt; Log:<br>
&gt; - drivers/megatec_usb.c: fixed the problem with report descriptor
retrieval at driver startups which caused failures. Since none of the
subdrivers needs this descriptor it isn't retrieved at all.<br>
&gt; <br>
&gt; <br>
&gt; Modified: branches/megatec-usb/ChangeLog<br>
&gt;
==============================================================================<br>
&gt; ---
branches/megatec-usb/ChangeLog<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>
(original)<br>
&gt; +++
branches/megatec-usb/ChangeLog<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Thu
Feb&nbsp; 8 16:43:43 2007<br>
&gt; @@ -1,3 +1,9 @@<br>
&gt; +Thu Feb&nbsp; 8 15:43:00 UTC 2007 / Alexander I. Gordeev
&lt;lasaine@lvk.cs.msu.su&gt;<br>
&gt; +<br>
&gt; + - drivers/megatec_usb.c: fixed the problem with report
descriptor<br>
&gt; +&nbsp;&nbsp; retrieval at driver startups which caused failures.
Since none of the<br>
&gt; +&nbsp;&nbsp; subdrivers needs this descriptor it isn't retrieved at
all.<br>
&gt; +<br>
&gt;&nbsp; Thu Feb&nbsp; 8 15:26:37 UTC 2007 / Alexander I. Gordeev
&lt;lasaine@lvk.cs.msu.su&gt;<br>
&gt;&nbsp; <br>
&gt;&nbsp;&nbsp; - drivers/megatec_usb.c: fixed &quot;UPS No Ack&quot;
issue and optimized<br>
&gt; <br>
&gt; Modified: branches/megatec-usb/drivers/megatec_usb.c<br>
&gt;
==============================================================================<br>
&gt; ---
branches/megatec-usb/drivers/megatec_usb.c<x-tab>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>(original)<br>
&gt; +++
branches/megatec-usb/drivers/megatec_usb.c<x-tab>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Thu Feb&nbsp; 8
16:43:43 2007<br>
&gt; @@ -152,7 +152,7 @@<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&gt;&nbsp; <br>
&gt; -&nbsp;&nbsp;&nbsp; ret =
usb-&gt;open(&amp;udev,&amp;hiddevice,&amp;match,u.report_desc,MODE_OPEN);<br>
&gt; +&nbsp;&nbsp;&nbsp; ret =
usb-&gt;open(&amp;udev,&amp;hiddevice,&amp;match,u.report_desc,MODE_REOPEN);<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (ret&lt;0)<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
usb_open_error(port);<br>
&gt;&nbsp; <br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; nut-commits mailing list<br>
&gt; nut-commits@lists.alioth.debian.org<br>
&gt;
<a href="http://lists.alioth.debian.org/mailman/listinfo/nut-commits" eudora="autourl">
http://lists.alioth.debian.org/mailman/listinfo/nut-commits</a><br>
&gt; </font></blockquote>

<BR><BR>
<TABLE width=400><HR>
<P style="FONT: 9pt/11pt verdana"><a href="http://www.avast.com">avast! Antivirus</a>: Outbound message clean.
<P style="FONT: 8pt/11pt verdana">Virus Database (VPS): 000712-1, 08/02/2007<BR>Tested on: 9/02/2007 5:04:21 AM<BR><FONT color=gray>avast! is copyright (c) 2000-2007 ALWIL Software.</FONT></P>
<TBODY></TBODY></TABLE>
<BR>

</body>
<br>
</html>