Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2567082yba; Mon, 6 May 2019 08:06:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqylJ7BeXm20jpaQQizQ5wcvBCHLCBfnxyQ4PModC4HaqakTr5rxK5/23/rS4m97Lm1AY+rQ X-Received: by 2002:a17:902:521:: with SMTP id 30mr32039460plf.248.1557155203487; Mon, 06 May 2019 08:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557155203; cv=none; d=google.com; s=arc-20160816; b=RpWVYqo4YEUnQljObwLtMIrfoeNI2n4G6JnrjXWLDBBvh0ur6XktXYFA9TaAdBQN0K AqpQpce8xuYE34OYYRqd0Nw6oPn5XSEoQns1DM7VKYvQvJOc54jU0R2bsrwh1hSIvo2l bk9jAiNHqDeoVUeodqHTQjCo2C46JG6MXAmohLfB7jhwc0rSIrNxZygNE+OpopY8BZz5 caNha4fp4hTFUksJPLm7BqBXbiYnkHcfTLJO0B83aSNUeu56xpUzHiL8Q3lK++K69GFH QcVt7rbX7t5SMMYMC5d20c3jiUme8174OsjByjRCNGDeruiH1z+aWTg5ZommTFiGjoRO dZZw== 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=mlLX0xRPIFFhhLcppCT7CVZUXbeO4cUvoOPie4YmAAY=; b=t8zNiuB2U42SjsK95+HJEkP7sbti11ofQawXcENFL/vu9SlLm8Rxofc2O5YuwYxswM 2D7SkMdlSLRx/jt+qKhh9p9ydK5FqzM1eAB7FHbgXvw05GenNggeS+Lts1qxZjTAH16b ht8qG1mCzjEaznrJ+VwzDsDr+2BGPm5JOGr6Y3UenZbRVKInCMcwNI6nyVtkrYhiVGiK ZCDuQAgLtCjDufxbOfc1tEpkhVemAqbunFOe9hPjJiVtd/5EmfbyaYqHUWVSZzs8XJ2c nFz3s0JLWiG5JAG/DQDCDe3Fv0Ba5pbI6bD+i7FvJSdOoT2mLkk7dRbsEilsjdbq9fme n4vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=R+Mi31su; 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 b63si16057017plb.146.2019.05.06.08.06.22; Mon, 06 May 2019 08:06:43 -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=R+Mi31su; 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 S1727913AbfEFPFH (ORCPT + 99 others); Mon, 6 May 2019 11:05:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:60038 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727669AbfEFOip (ORCPT ); Mon, 6 May 2019 10:38:45 -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 240F8214AF; Mon, 6 May 2019 14:38:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557153524; bh=W5TbTrb9af3rDY6Npt3MT/GnE4ifQf79SZVKzKzGJO8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R+Mi31suHjVEiiEsm2Vq4S5ilXJMPuVCn6QJal+ovQ+42FnWpRvlKzMfGM1VE6LQ5 dl6UlXqmqJAdvo7ZS+u54oBc1zkC2Mbd8tRNVMjHUC+bvyKCNccMWYrFDKWW3Ct7gC wzO+hR2p4rmsZRmQFV7a/4v71SPodKTLIsPsZ6ys= 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 5.0 121/122] i2c: i2c-stm32f7: Fix SDADEL minimum formula Date: Mon, 6 May 2019 16:32:59 +0200 Message-Id: <20190506143105.168874070@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190506143054.670334917@linuxfoundation.org> References: <20190506143054.670334917@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: 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 @@ -432,7 +432,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 -