From patchwork Tue May 21 01:33:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 164668 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp983112ili; Mon, 20 May 2019 18:35:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/b1aUvxq3q4vtP8iYxt9LQH1RAvYgNLP4FvELx9AnX9SDPdp9Dd6vPPneBaW84wZFVAul X-Received: by 2002:a62:1993:: with SMTP id 141mr83489320pfz.97.1558402541545; Mon, 20 May 2019 18:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558402541; cv=none; d=google.com; s=arc-20160816; b=iVcZE5pM6/wyrldBQDMm9dwW0PO+DFh6cHXrD5M1VD1DWkL+tyBXIyH+ALFcRtYcM/ S7Pv69VASWZns4Q5IQ1pbHm/AFxnTb9/b2azpelUkUaSu31p/Ui1t7j1i4BzP84qWeYX SJUnUhne+mEuVe/zw8/i4o18I6Pq698cD6Zs4to9OH11y2zmwphcqu4pvDnSwy3J0Ona tS0oh5JhDUyu9g0rVW7HI1hk7qNlvfMQ2Oz1rYq6pdRUWz+p4PxJcuxoZkXGLeqtSQUx BwWHwGp2QMdKDiMnHq9QZk4JKq4lEg4/Gpdd/aNKVER3FKOhiZW/HR4ONxj0z2WrDFVL YRIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=gb0yL9y2PsgXv4WkLnp+y0ZvUFalduQd+9R0GCqrRt8=; b=VbGXAInrDMnuXJHJp53u+B/zBW9SNvtvCO6hiUFgsuKW4mccoEUeSjwyFREB5U8p8d KYC/vTVuV771AUUgF0gsLAnhPZB6eKRLqovZTVIRVd0dnHWNxvLGybDmprcDKUcF/c3L NBOCs1eVXFn7cU9WeFwH/+3GmyCr2fKfKYMB/pTYp2pc2mkiACLaHL3jo4sv7jh0lRJP P/KsW7d1wvaFMogBhl+BvOodwNWEEq4zXDdSii8Qpw/GEO+rR4F78wg5VInj7FRb0phA tn1S9hZe33s2/q2XFi/t+ngrx2uuYdWbuPHuonAd3i97B/OD/64VityWHkql5hynR19R kN3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aPaYQvTd; spf=pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12si20049854pgl.77.2019.05.20.18.35.41; Mon, 20 May 2019 18:35:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-i2c-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=@linaro.org header.s=google header.b=aPaYQvTd; spf=pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727099AbfEUBfk (ORCPT + 2 others); Mon, 20 May 2019 21:35:40 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:44203 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727022AbfEUBfk (ORCPT ); Mon, 20 May 2019 21:35:40 -0400 Received: by mail-pl1-f196.google.com with SMTP id c5so7550024pll.11 for ; Mon, 20 May 2019 18:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=gb0yL9y2PsgXv4WkLnp+y0ZvUFalduQd+9R0GCqrRt8=; b=aPaYQvTdfXoDsxffozfBVMLrNC6CfQoqAEeXj3RyJEKRtqYr3cGwN778STMweLrGsS 9mXUBby7aD4IhxKORduCe9wtYdc8dVjYHekFffs/jpDxab5caXTWmZ2Gg1b41GCk9QTu +I1YhquIi1zTTpJnbYS5H5ffiWfWLzjYyVIcyiP5aaXgtDAFxqimvYv4ses3gqLPUN0y lM29y8sZpSOv5m3xm5rHEA2MfLmfg24HLJiLbQhQ6HZ2EsdYWFjbZ/OBlJZFm6/GBGJ7 dIDCP2/35Gq8YcgjyxbG8kZDUVKImdeKf9jAE059kf7lJUOBXun1DCwJ/Le19uatZNnf i68w== 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; bh=gb0yL9y2PsgXv4WkLnp+y0ZvUFalduQd+9R0GCqrRt8=; b=nJK1/FTRlhLz7owjBi4+hTz/p/JtkvDIQSLOoMAMvAr/hxvH1BfA6FYsvs1kGmnNLG LnNukxxhMaK1SESH3RQESxUCR0BWWqp16DiZ9l8OJztAfP0A65gfh18y0pHm/RB694/B +1ruUW21jJrA+LAf5u/DEdPqiNx4xpUqA12DHZb/nxW/laz3S8xInVFbbDWnyBpYzP2c h2yQy3F4FLhQ2R/MXikaIWchEXWnx7kZ09qZpszY4oFq1z7bzggY6aibaj/8d86HNevd qzdy/Hq914hFv1Mp5tbnVA0N47jlb8JJXXcUlHlcxKbFWEo/sjzwDmyfIQFiNm0pMFlK /Zlg== X-Gm-Message-State: APjAAAUqGXLNdQSre5+mwi1wzrAsJnd7w7tZVRbD/cmR9R2tnT02VlQ/ mOPvu0ju521DEAdWhe8YNF0wutX+rCw= X-Received: by 2002:a17:902:7044:: with SMTP id h4mr18487738plt.219.1558402539873; Mon, 20 May 2019 18:35:39 -0700 (PDT) Received: from localhost ([121.95.100.191]) by smtp.gmail.com with ESMTPSA id q17sm31958773pfq.74.2019.05.20.18.35.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 May 2019 18:35:39 -0700 (PDT) From: Masahisa Kojima To: linux-i2c@vger.kernel.org, ard.biesheuvel@linaro.org Cc: okamoto.satoru@socionext.com, Masahisa Kojima Subject: [PATCH] i2c: synquacer: fix synquacer_i2c_doxfer() return value Date: Tue, 21 May 2019 10:33:50 +0900 Message-Id: <20190521013350.8426-1-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.14.2 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org master_xfer should return the number of messages successfully processed. Fixes: 0d676a6c4390 ("i2c: add support for Socionext SynQuacer I2C controller") Cc: # v4.19+ Signed-off-by: Okamoto Satoru Signed-off-by: Masahisa Kojima --- drivers/i2c/busses/i2c-synquacer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.14.2 Acked-by: Ard Biesheuvel diff --git a/drivers/i2c/busses/i2c-synquacer.c b/drivers/i2c/busses/i2c-synquacer.c index f14d4b3fab44..f724c8e6b360 100644 --- a/drivers/i2c/busses/i2c-synquacer.c +++ b/drivers/i2c/busses/i2c-synquacer.c @@ -351,7 +351,7 @@ static int synquacer_i2c_doxfer(struct synquacer_i2c *i2c, /* wait 2 clock periods to ensure the stop has been through the bus */ udelay(DIV_ROUND_UP(2 * 1000, i2c->speed_khz)); - return 0; + return ret; } static irqreturn_t synquacer_i2c_isr(int irq, void *dev_id)