Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2761667ybh; Mon, 5 Aug 2019 06:26:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYvwUzzHSaK2M8DxspjqfygdYq9vVxUvFh5UAisejRlSEX7c45b1kw8UoK81TEHI7x5D3u X-Received: by 2002:a17:902:7488:: with SMTP id h8mr70692742pll.168.1565011597498; Mon, 05 Aug 2019 06:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565011597; cv=none; d=google.com; s=arc-20160816; b=q6REYxl1CsBsIImaxpaNx/mAgXPSyhVLXc1SOto1TNeYAnA8UXaM3bEpef8PskLvSz fIqZnerLs/S8jeYJQ0J85aUaCQhmHxr4bjwjNUZu74UCnLC5Ur11nNlFVsxjzzGHucvi ZyTcXGPhJJldd3DjJE7ZzcIj9Xm9yv8wKiqm2W9ymqsCrENZs0BchlcduEclD5tnipiL w09+QpOaB+EyWPVA1g9mDs4ElnxATbpHXmyoGhIyqy6lSyEgRUc8DB3Z53m5cmCAvJtP P0rgc1wBxbZem1DG8DjqLudNWJJD7fBkdPlWUjqL/mmGApfs/aAlUBibzMAWtZqGHuTz 8G6Q== 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=4/pyOtIhMaIGKspDTncPucTFMOoRehamRX9MrD+Gg+U=; b=JIf0gt7jNzZOlqaAueXV4O9lpIg1yjVuM2n7ggWt1YfnYO3qcL3/LOuHbXHA7sVUwR ahON4/281Ix8OzJWfLGnATue16NwSUP58EKvqfVUp8lLO+xeiJENelMEH7WsHAbIDQYH soweIs8dN1D9WWyL0RzhzvEF9ELR5Xz0yLBmQXDkcJJ/fCq8PhX+7pmiQ/2NtlOfS+FB /YoCE4mSAdvBp7h1WMN1GbdnW/sP41VpPVfXf0vLhUwFAz/Vb4MphneaajT80wc2l8Ro eENiB1/C8YNessQ/L4MsgavH9qB5/ZDefMdoAwfVOJS69i+JllbvEsUwy7ju+tWmbXzy AU5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UYg9wZgl; 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 n9si43063297pgq.240.2019.08.05.06.26.22; Mon, 05 Aug 2019 06:26:37 -0700 (PDT) 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=@kernel.org header.s=default header.b=UYg9wZgl; 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 S1729539AbfHENYZ (ORCPT + 99 others); Mon, 5 Aug 2019 09:24:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:32894 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730983AbfHENYV (ORCPT ); Mon, 5 Aug 2019 09:24:21 -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 3786520651; Mon, 5 Aug 2019 13:24:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565011460; bh=V7iHpQlzG47w3l0h0GnwluXQpMNb2nQBW0dYAAujHRc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UYg9wZgl1HTGSeuurs97afsPWjcUJuWLTGkindxODhnxjrlNlIpLjvSWVma+q7OhN b1VnvwhewuxmbNTMuXUT1+aGeHVbv1uL7IZL5/qAcZk+GOY8iicKt/ipGK55xDe5uC 8eNyeuggCO85nLVVMNKaZNH2W7bHHQZsJaOwcZf0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= , Ludovic Desroches , Wolfram Sang Subject: [PATCH 5.2 096/131] i2c: at91: fix clk_offset for sama5d2 Date: Mon, 5 Aug 2019 15:03:03 +0200 Message-Id: <20190805124958.394493325@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805124951.453337465@linuxfoundation.org> References: <20190805124951.453337465@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michał Mirosław commit b1ac6704493fa14b5dc19eb6b69a73932361a131 upstream. In SAMA5D2 datasheet, TWIHS_CWGR register rescription mentions clock offset of 3 cycles (compared to 4 in eg. SAMA5D3). Cc: stable@vger.kernel.org # 5.2.x [needs applying to i2c-at91.c instead for earlier kernels] Fixes: 0ef6f3213dac ("i2c: at91: add support for new alternative command mode") Signed-off-by: Michał Mirosław Acked-by: Ludovic Desroches Signed-off-by: Wolfram Sang Signed-off-by: Greg Kroah-Hartman --- drivers/i2c/busses/i2c-at91-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/i2c/busses/i2c-at91-core.c +++ b/drivers/i2c/busses/i2c-at91-core.c @@ -142,7 +142,7 @@ static struct at91_twi_pdata sama5d4_con static struct at91_twi_pdata sama5d2_config = { .clk_max_div = 7, - .clk_offset = 4, + .clk_offset = 3, .has_unre_flag = true, .has_alt_cmd = true, .has_hold_field = true,