From patchwork Fri May 20 10:33:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 574693 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3EF8C433F5 for ; Fri, 20 May 2022 10:33:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348134AbiETKde (ORCPT ); Fri, 20 May 2022 06:33:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348133AbiETKdd (ORCPT ); Fri, 20 May 2022 06:33:33 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B5728CB20 for ; Fri, 20 May 2022 03:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=k1; bh=3xEy1SebfqFd2pZ8CpY00l8vQjw 1377ptfrPsN5dzwM=; b=cFcf22mBHRwRqJoJL+f8DZ19R4zpXW/+n82DxnFvQ12 bAenlJ4FnSmPUFYZ6NPGwzYe3nfYAji0KJl7xDLuvP3jxuH7m/gEBlkVu8m75GLA UIzl1Kig8M5iXvqHRjDDQo0PY7UdIY52vXg32KZzMfGQx6eRg0b1uJNjh6oGnXLg = Received: (qmail 3736468 invoked from network); 20 May 2022 12:33:30 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 20 May 2022 12:33:30 +0200 X-UD-Smtp-Session: l3s3148p1@GimCBW/f1U5ZD+8D From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Yoshihiro Shimoda , Wolfram Sang Subject: [PATCH 0/2] i2c: rcar: increase robustness against long SMIs Date: Fri, 20 May 2022 12:33:23 +0200 Message-Id: <20220520103325.81110-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org A customer reported problems with the R-Car I2C driver with System Management Interrupts lasting longer than 30us. Let's not comment about SMIs taking this long (and even up to 200us), but improve the driver to handle such situations. Wolfram Sang (2): i2c: rcar: avoid race condition with SMIs i2c: rcar: refactor handling of first message drivers/i2c/busses/i2c-rcar.c | 76 ++++++++++++++++++----------------- 1 file changed, 39 insertions(+), 37 deletions(-)