From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS, T_DKIMWL_WL_HIGH,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59160C04A6B for ; Mon, 6 May 2019 14:54:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 23CB92053B for ; Mon, 6 May 2019 14:54:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557154470; bh=7DB5M/yAEt62ek0olJSonmJ4G2XFT7l4b658CUTrFHI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=bvTBAXBk22PBHG/D++/7dEy2aBjDGQ/GLLiNdfZoq8eAq/L3MUOnxguuC8SBkJUb2 l/GOkUncGceiBD068KoZx4fq1avoHNSNgyCrXcvUhJN4r8gTqftXdnP9Wh7ATWexZn Ipw2gVoJB4DRWWJ19AuUvqZz6LK4DjkZ84B7iif4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726283AbfEFOy3 (ORCPT ); Mon, 6 May 2019 10:54:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:44744 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729181AbfEFOqj (ORCPT ); Mon, 6 May 2019 10:46:39 -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 634562087F; Mon, 6 May 2019 14:46:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557153998; bh=7DB5M/yAEt62ek0olJSonmJ4G2XFT7l4b658CUTrFHI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CDgtnxKRaq8h2E67cdGvZzjYWqIAXKkzqWVLp9D83rqSzqz/UN0RXyaAlSBXwqG8N C0hIx5GY9y2u0oxvPq2hSr45lHAukJIPna0e7nHBk/1UWM9n+FMMjeff7NWM09revi vUvK+bDEENnRqtuZI0DKV8CDWPwdE/Dzi/8YD+lw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas Le Bayon , Bich Hemon , Pierre-Yves MORDRET , Wolfram Sang Subject: [PATCH 4.14 74/75] i2c: i2c-stm32f7: Fix SDADEL minimum formula Date: Mon, 6 May 2019 16:33:22 +0200 Message-Id: <20190506143100.045349603@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190506143053.287515952@linuxfoundation.org> References: <20190506143053.287515952@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Nicolas Le Bayon commit c86da50cfd840edf223a242580913692acddbcf6 upstream. It conforms with Reference Manual I2C timing section. Fixes: aeb068c57214 ("i2c: i2c-stm32f7: add driver") Signed-off-by: Nicolas Le Bayon Signed-off-by: Bich Hemon Reviewed-by: Pierre-Yves MORDRET Signed-off-by: Wolfram Sang Signed-off-by: Greg Kroah-Hartman --- drivers/i2c/busses/i2c-stm32f7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/i2c/busses/i2c-stm32f7.c +++ b/drivers/i2c/busses/i2c-stm32f7.c @@ -340,7 +340,7 @@ static int stm32f7_i2c_compute_timing(st STM32F7_I2C_ANALOG_FILTER_DELAY_MAX : 0); dnf_delay = setup->dnf * i2cclk; - sdadel_min = setup->fall_time - i2c_specs[setup->speed].hddat_min - + sdadel_min = i2c_specs[setup->speed].hddat_min + setup->fall_time - af_delay_min - (setup->dnf + 3) * i2cclk; sdadel_max = i2c_specs[setup->speed].vddat_max - setup->rise_time -