Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754715AbbGXRCr (ORCPT ); Fri, 24 Jul 2015 13:02:47 -0400 Received: from mail-bl2on0143.outbound.protection.outlook.com ([65.55.169.143]:37424 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754603AbbGXRCq convert rfc822-to-8bit (ORCPT ); Fri, 24 Jul 2015 13:02:46 -0400 From: Hartley Sweeten To: Ian Abbott , "driverdev-devel@linuxdriverproject.org" CC: Greg Kroah-Hartman , Bernd Porr , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 0/6] staging: comedi: usbduxsigma: fix some problems in command handling Thread-Topic: [PATCH 0/6] staging: comedi: usbduxsigma: fix some problems in command handling Thread-Index: AQHQxV7dXnwotQFVOEaOc+uJnsCedp3q2bYQ Date: Fri, 24 Jul 2015 17:02:44 +0000 Message-ID: References: <1437666422-25222-1-git-send-email-abbotti@mev.co.uk> In-Reply-To: <1437666422-25222-1-git-send-email-abbotti@mev.co.uk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: mev.co.uk; dkim=none (message not signed) header.d=none; x-originating-ip: [184.183.19.121] x-microsoft-exchange-diagnostics: 1;BY1PR0101MB1062;5:MTMS+mXXtjaoPXPv/NwgZxKRWLtu07Gdp8zDuGI9G6e75NPtuVNvI8iyPbulCCh9sUQcWbVF27pbZj03PxNXoAarMYZnlOul1Ghb/Va2Qjsi5jKKVgNq6X44xqTFqtx/XxteoXHURFfwk65Et5BaUA==;24:GJownbOv/NBmDp68wX/TV1VLuO4aqsgUlJ75ZSlygDL4AhQ5exQ/j7c2vI984VhTqf3BxDBUtmkDqP/6P/ur84oOwtoWedtNSGUJHbNufq4=;20:DcuQYuzBp9OF6vIWzgtLfLUUg9U8eT203PNwJHo1FYfK+9xgq0k4HQXbr2L5dOuVovaBLzNKT+4OEOSXamfoXA== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0101MB1062; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(5005006)(3002001);SRVR:BY1PR0101MB1062;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0101MB1062; x-forefront-prvs: 0647963F84 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(377454003)(122556002)(19580405001)(74316001)(19580395003)(2950100001)(46102003)(189998001)(40100003)(62966003)(5001770100001)(77156002)(33656002)(80792005)(102836002)(5002640100001)(5003600100002)(5001960100002)(87936001)(2900100001)(2501003)(54356999)(50986999)(92566002)(2656002)(77096005)(66066001)(106116001)(76176999)(86362001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY1PR0101MB1062;H:BY1PR0101MB1063.prod.exchangelabs.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: visionengravers.com X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jul 2015 17:02:44.0691 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d698601f-af92-4269-8099-fd6f11636477 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0101MB1062 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1468 Lines: 29 On Thursday, July 23, 2015 8:47 AM, Ian Abbott wrote: > > Fix some minor problems in the testing of asynchronous commands for the AI > and AO subdevices and remove some redundant code. > > The main problem is that the testing of a new command can affect the > operation of an already running command, which it isn't supposed to do. (In > practice, applications don't tend to test new commands while a command is > running on the same subdevice, so the bug can be classed as minor.) This is > corrected by the patches 1 and 2, for the AI and AO subdevices, > respectively. > > 1) staging: comedi: usbduxsigma: don't clobber ai_timer in command test > 2) staging: comedi: usbduxsigma: don't clobber ao_timer in command test > 3) staging: comedi: usbduxsigma: remove AI scan_begin_src == TRIG_FOLLOW > 4) staging: comedi: usbduxsigma: round down AI scan_begin_arg at step 4. > 5) staging: comedi: usbduxsigma: remove unused "convert" timing for AO > 6) staging: comedi: usbduxsigma: round down AO scan_begin_arg at step 4. > > drivers/staging/comedi/drivers/usbduxsigma.c | 139 +++++++++++---------------- > 1 file changed, 54 insertions(+), 85 deletions(-) Reviewed-by: H Hartley Sweeten -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/