From patchwork Fri Jun 7 15:39:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 166161 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp802488ili; Fri, 7 Jun 2019 08:48:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3GQRJI2JkUFLm6PD8WoV+MdP5m6LzKKUbCt7QdQM6i9dnobhs3GFsNVpJ2XwJBnAZp+/W X-Received: by 2002:a17:90a:778c:: with SMTP id v12mr5897816pjk.141.1559922530473; Fri, 07 Jun 2019 08:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559922530; cv=none; d=google.com; s=arc-20160816; b=IzxW9C7yJUZFghwcKExin0eVecEJ4J7jJfawGWris97yY+fs+Vz//hx9/iAGm5cD4z CJp1bgLzFUQYpJB+hoJxgGf+ZAqtx0qsJ9wN1YmAQ2d/mu8HcctGXweQmwLnKiyIvSZn 74rkh94VVnk0xqT4GdI/MvaShrG2oTNDPKCqcHZUkrdSFZGcfR9IzR1k4wZXGU/+zs4z 0YOjHURy4q+Crb2wVhJ2uKVvD0zLs2tRriZfkgib9Rvk/O3wbsrhInbr14l5+elPx4mo cjc+upESg3QfbU6V2X0OfnzjyQrFlbwRnRiTi+k8RpRiFrk980ZuLeqGnG+NrGAL1z60 Qh5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qJC17B1TBpcsTnQlv5Uk2XMEsJSmwM0VtaDzUTSe2xI=; b=hJVV3mOTe/4CUfsJOCamp9UDUVZbR39KQHje9GT4207lr8Nmu1iqMxzN6gs7nfpmVc wMIesNa2PxTzV7QAFWCtavrn3K6gotDb3xsZ+PL0DdaXWusdaQPLkH0L0txNjkVu54xb rn0/oKsWczC/LxT5GWFujjScmeUvElXRbnB5F/USKFA7xu0Zvxv+TlMy4mKp78PYBGng CSlQx7gzqRAPC4VK6ZZnPC1T/KGmZN2wHzUYcBVJ5+YL7FL0SjpeqF65vYGNHbWaYABz 7MIuccul8MNZ15d/2iJ87gn4xq0jebJjBHp9DgmuvcP0hAplx3n/BOkkX+4hgczlcWSb 3e3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2Dj6Ae3P; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-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 cg6si2427994plb.350.2019.06.07.08.48.50; Fri, 07 Jun 2019 08:48:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-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=@kernel.org header.s=default header.b=2Dj6Ae3P; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730242AbfFGPst (ORCPT + 14 others); Fri, 7 Jun 2019 11:48:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:34292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730217AbfFGPss (ORCPT ); Fri, 7 Jun 2019 11:48:48 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E9E0D20657; Fri, 7 Jun 2019 15:48:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559922528; bh=8E41xG5V2jNOThd7gcCaz3MJfQ+y/Mx6tzLdEWFnsi0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2Dj6Ae3P39KsjT8uCFMuCfV0Jzlyc53Kw5UtvyE8e5y5h6nN1ohW3t7ZvbcQQBHX0 Qsko0kkBwby1PQXZBx1HqQowaZ4o+mG+IBGzW/ZuYayB46XJ23YqHGclXK4v5Zh9RG KFQ48sd5QrhwNgTyHUJWzrbZC4UQB2ckm6iGqmdM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Okamoto Satoru , Masahisa Kojima , Ard Biesheuvel , Wolfram Sang Subject: [PATCH 5.1 45/85] i2c: synquacer: fix synquacer_i2c_doxfer() return value Date: Fri, 7 Jun 2019 17:39:30 +0200 Message-Id: <20190607153854.643228293@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190607153849.101321647@linuxfoundation.org> References: <20190607153849.101321647@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Masahisa Kojima commit ff9378904d9d7a3fcb8406604e089e535e357b1d upstream. 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 Acked-by: Ard Biesheuvel Signed-off-by: Wolfram Sang Signed-off-by: Greg Kroah-Hartman --- drivers/i2c/busses/i2c-synquacer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/i2c/busses/i2c-synquacer.c +++ b/drivers/i2c/busses/i2c-synquacer.c @@ -351,7 +351,7 @@ static int synquacer_i2c_doxfer(struct s /* 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)