Received: by 10.223.164.200 with SMTP id h8csp640087wrb; Sun, 5 Nov 2017 17:27:17 -0800 (PST) X-Google-Smtp-Source: ABhQp+RvFEzlsZQvMjy+Uwo2lP1tSiFNi3EaqvOIzXlzr/2DByUO+g6VuQFQX+N+GRzlxLsWSLR0 X-Received: by 10.99.125.89 with SMTP id m25mr13689331pgn.1.1509931637634; Sun, 05 Nov 2017 17:27:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509931637; cv=none; d=google.com; s=arc-20160816; b=RMRE1fS7/RuK/TR/WsglwmXtHWfp+0ZUGXg4scyNWszrTi9hub4bLdpSuuE8WI7rxT cnR6wtPAH68IQG12NicV9p+6TFcvrNOHBLd1Yakh5tcuvSNX3pNCStTqiujiZCGuc9yX zGgw9cKbD7923sDXExCNQLkm/pOt5SKHVHvxrFSEHGJilVhD81ZrVtZGj0icTV9JyWJ6 yzvoLt2E8bY9owMcSQRql1a7vKUL9UIET+IAmWZQfSyRxoNGLtety1AD9EwGUyq+kDPe KkoGs9mtasbax0Co/RwYFkDM6Y0nrIvxIucWpc/JMDDQIpl5VUQXZ3V3iID8/kLmkO3f Sgqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=FnNweW7OCFZuMdBdLQ6pg04058YwWZ8YxNeUr9nBw3s=; b=qdbAtY7tOYms1q89L7wRdaSyc2Kh0cC7voRHSRNg0cJ5XBrX6B93ZIGZa1JE5lJfJV +WEZpk45vw89VCfLuTD74JUP7zJuvWHfNgXHEKG0WWye0knD9G98Jk8/lwc8QV+rABs4 WSTfi5tt3JPRi/C2wDLAX5/50sxZ6Gue11FnvS1kdvqPkGv4C9sM4+0NtrcLEeU0Gk/+ jSo3opyZKulFxM6LERngbw/hS2shVt9FsYNz4HsEkQ6DEErWBs/+Wug79xWfn75f5sym 0cTIYmWFsgSAQ0ukOgfFUMKd/YsNQbpul6j2w1vjkur21yTmmJhothOaSwbhr7nEldUo RxoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=HTn3y6tq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x85si11303982pff.344.2017.11.05.17.27.04; Sun, 05 Nov 2017 17:27:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=HTn3y6tq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751536AbdKFB0S (ORCPT + 96 others); Sun, 5 Nov 2017 20:26:18 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:45635 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751434AbdKFB0O (ORCPT ); Sun, 5 Nov 2017 20:26:14 -0500 Received: by mail-wm0-f67.google.com with SMTP id y80so10721434wmd.0 for ; Sun, 05 Nov 2017 17:26:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FnNweW7OCFZuMdBdLQ6pg04058YwWZ8YxNeUr9nBw3s=; b=HTn3y6tqx58Oy5Jd57Y6kbKH7EhOm5WsHo/hL/W7TfGhiDbMBlD1R/GWOTNjQVLCvf EN9u8LdIT4mxdZIcfs/a80fy5WW982cho1lzsQ/pnPbhmPjInf/+nlbJxCxu3j4gNOfq Y914zHPGe0aARQkeOPnRgYxKI1LVZRgIXWwA2Su0Sh6gNty8z3Ph1VZtTgjE4cLVYC8X PYcfS+e/8r8uD1gJZp78p5t6b7F652vIVw7s9nd1mA0ZkIMnJaBhJ7ikk4VLUDtYz2gw 1greNjXBqYwRlDzyt92DfF+oPnAFpnvUEefIuUXICT720H/6d5FUvQcnKfnrjXJ84NyL 12DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FnNweW7OCFZuMdBdLQ6pg04058YwWZ8YxNeUr9nBw3s=; b=kTYN6asZ1lCOjh41WukjAqCsN2kO+ywIAaabdinGJHlW++2hxHvzhDuc8fi35Dyzh1 nhfB+9tgIjFJZDtOUp/KLI7TWPDLVH6RP8cc+h3Gm+qkmdTJF1srxcmXcDE1douh79z2 4NcQL28ryAb9jxFQOZeE5bA/KYR9c8OGvtmkFHGe3bFcQc0tJYrXwrqDCVCtS4fveQlZ h72NNXdjAUkT4kCERTYs4XqWu7qg17XXYWyeznKNP9WghRy/BnBPpIjKcMcNmAIHWm27 fujSqEloXphW89rVVLveRO4yljFpwPeO4XYSqURc/TAqZDK2ZVLiDY1i46ElJI8l+n1x 0xgw== X-Gm-Message-State: AMCzsaUv0bbLdgbpHN0OMNTP8vRZLvQkLf5jrETOdVd3QSE+mtv8lm8i DRioiUkD2/Y29aXeh9nLdl5cww== X-Received: by 10.80.155.90 with SMTP id a26mr18409317edj.21.1509931573817; Sun, 05 Nov 2017 17:26:13 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id c32sm10258015eda.57.2017.11.05.17.26.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 05 Nov 2017 17:26:13 -0800 (PST) From: Bryan O'Donoghue To: johan@kernel.org, elder@kernel.org, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, keescook@chromium.org, linux-kernel@vger.kernel.org Cc: Bryan O'Donoghue , Mitch Tasman , greybus-dev@lists.linaro.org Subject: [PATCH v2 2/4] staging: greybus: loopback: Fix iteration count on async path Date: Mon, 6 Nov 2017 01:26:09 +0000 Message-Id: <1509931571-24621-3-git-send-email-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509931571-24621-1-git-send-email-pure.logic@nexus-software.ie> References: <1509931571-24621-1-git-send-email-pure.logic@nexus-software.ie> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 12927835d211 ("greybus: loopback: Add asynchronous bi-directional support") does what it says on the tin - namely, adds support for asynchronous bi-directional loopback operations. What it neglects to do though is increment the per-connection gb->iteration_count on an asynchronous operation error. This patch fixes that omission. Fixes: 12927835d211 ("greybus: loopback: Add asynchronous bi-directional support") Signed-off-by: Bryan O'Donoghue Reported-by: Mitch Tasman Cc: Johan Hovold Cc: Alex Elder Cc: Greg Kroah-Hartman Cc: Mitch Tasman Cc: greybus-dev@lists.linaro.org Cc: devel@driverdev.osuosl.org Cc: linux-kernel@vger.kernel.org --- drivers/staging/greybus/loopback.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c index 20d1b45..9c5980c 100644 --- a/drivers/staging/greybus/loopback.c +++ b/drivers/staging/greybus/loopback.c @@ -1021,8 +1021,10 @@ static int gb_loopback_fn(void *data) else if (type == GB_LOOPBACK_TYPE_SINK) error = gb_loopback_async_sink(gb, size); - if (error) + if (error) { gb->error++; + gb->iteration_count++; + } } else { /* We are effectively single threaded here */ if (type == GB_LOOPBACK_TYPE_PING) -- 2.7.4 From 1583053527599651242@xxx Fri Nov 03 13:58:10 +0000 2017 X-GM-THRID: 1583053527599651242 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread