Received: by 10.223.164.200 with SMTP id h8csp644457wrb; Sun, 5 Nov 2017 17:34:33 -0800 (PST) X-Google-Smtp-Source: ABhQp+ToG8KcMPo1iLyzcj+j3zjIavZ3+he0YDTXkmZIlTPsupMK+XzdTFEkTPDpYMBN55JY7hF6 X-Received: by 10.99.65.131 with SMTP id o125mr13434472pga.83.1509932073673; Sun, 05 Nov 2017 17:34:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509932073; cv=none; d=google.com; s=arc-20160816; b=yqPVv4aBijXg5zLxYaK4Wd+wr9Xe7qJKqBvnZHkJ3paxYYjBpkijJlHnaGo8J7EM27 2RM6HzEPOJ25bVYo2ghOKX0xIpPfNYNJvxwMYUCrtTlAXkfJZo1dI07KRYamTIeNUz6s /OlmEZRbY8zNPdZXP4gCEGuwkODqXnQbvTeDaDSyaaI9Tqf2Xxkd6Vfqa4EAbZ83THZC 2XZX8Q7nF6s0yqdZqAZ0+TZ3UL8RfkJr9nouyGxBg9322nfdg3iYbNj3IPT3Oy7UWdJz cVBivLK8AMiCnvjUfnMdolFlPI1D69dLyO1X9GYONTBddlmpOBILebSBzfJJa3oxdSJp pUjA== 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=ZiVrj07q8Qrbo1CpdhqonatXvT35Qxv4nBfPTLEBORztrjXC8FnvoCFJgDUU0CtOcn XmaHTNuSz25htwW95Ip/Frns33sn67dTiZO8ZqMZov0D8i66akDMUriFRjXAH7nEB0QW goaIfufsmeecj8qzRz83XhBkMaaqmA0XKyibfbUm/zzT0BY0O1bH5wI4jj9DY98RmM1K tvcuLfXlf4aMQ+ye4w0wGgYPyEFpSgFM3tRkwtYSqZ2bbigCDaqtG8cMCLiwdEGvSH4e D5R7IYgjA95lS6FPf1foKstIWZ7uoV2baY8+3zXu9/VoV1N4ODiCn4jA4tA7gUnsF87F QnGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=Wzn2mURR; 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 a2si8475638plp.344.2017.11.05.17.34.20; Sun, 05 Nov 2017 17:34:33 -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=Wzn2mURR; 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 S1751874AbdKFBdF (ORCPT + 96 others); Sun, 5 Nov 2017 20:33:05 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:48396 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751550AbdKFBc0 (ORCPT ); Sun, 5 Nov 2017 20:32:26 -0500 Received: by mail-wm0-f65.google.com with SMTP id p75so10754826wmg.3 for ; Sun, 05 Nov 2017 17:32:26 -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=Wzn2mURRpxecTU8z1uMdjv4XR7ePG3kZ7hhFGcBN7PAUqrAP7hJmjU+zUudd+DMK8d WOGIet1PDFx5LMpctLSJaqUYCe75oT5HszaS3v+SZ7tXoS5xzTNzmjd+SSn4JyRBXb8Q 84GH55XRVoCbcEtOrhw8PA2zVpgsyDdtLvRpX0D+eFvR4q1eixa3omOjdaXlook3Y6G4 d1hcVOlw6l/dOB+HfIuAZKNuKVFhUKS2+LwV/3hXnW4ZEU+vEJ3oJEjQTi6Z/qjPH8m9 4RaQEkiLjDTVGJclG3oo7Exu7Mwj7WgsT/kEFUYQTx3nzpva26d7EKNnWKd9viXop4pu HmmA== 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=FfxScjFrnPEqSi/TH7m+9VGvbLhjncclk/tWVz9+bo3bu4fjkLPQBtSZrhewD+1JmO L0oN8qU5azQlURMRP6srRZIIxegYLjpNGCETDhVKTxcncnj4+C7NNQUmsxloKo85BFjS 3hv32stq7WiSmA8Vrjx1hwz131CQvR7ICqpfHmbSGYFGhvXRV4W5pLIYytoY5UnU8a1v LsAFVXckcuAIaprIzw4oiqngbJmSFfYjKR7KCHgsiDlrEon4Ctlzaha69oywVU8KuT3Q 9nCAstveTq+EjNjwLJcpYj/U3ULsr4f7etShnBSX+4HxkDdY6XyPMjiIyxj9oirdDwTD Mi7w== X-Gm-Message-State: AMCzsaXAJNoneq9GR9iW6DmliLDscu3oZJWCrMo8PJN/wmVuzdgqHeZv k7bZBRsIX5ylHZy86ZLpSzKxGg== X-Received: by 10.80.158.108 with SMTP id z99mr17824114ede.262.1509931945793; Sun, 05 Nov 2017 17:32:25 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id c7sm10603213edc.26.2017.11.05.17.32.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 05 Nov 2017 17:32:25 -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 v3 2/4] staging: greybus: loopback: Fix iteration count on async path Date: Mon, 6 Nov 2017 01:32:20 +0000 Message-Id: <1509931942-25712-3-git-send-email-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509931942-25712-1-git-send-email-pure.logic@nexus-software.ie> References: <1509931942-25712-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 1583278076971740474@xxx Mon Nov 06 01:27:17 +0000 2017 X-GM-THRID: 1583278076971740474 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread