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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 770DCC4332E for ; Tue, 26 Jan 2021 17:09:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4782D22B3B for ; Tue, 26 Jan 2021 17:09:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387732AbhAZRGR (ORCPT ); Tue, 26 Jan 2021 12:06:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389905AbhAZIYC (ORCPT ); Tue, 26 Jan 2021 03:24:02 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30F25C061573 for ; Tue, 26 Jan 2021 00:23:19 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id a1so15480384wrq.6 for ; Tue, 26 Jan 2021 00:23:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=+1Lc4O6nG4WhNY0kjZTVH5GmXcujH+6YTZBb0u4ztaw=; b=NCLjOPCeW0kVxk3yrO3M6dYXo8ICaFIYVCPHHQHMbAIcSB2UiiivZ/bCnB+HvgeLqg PRDdIo9OnDOMnNppoAtmhPaFkxBlmAGOVCiVJVzahSK5U3j0dmNbm6q2bPrVoMRzNL7C MBXylqhLEdzBqWCVQbqclV5j4/GUwRsB0S5RcegmujdDg1G/TthoTLENaueZWFz/Tl6p SGfkm28PzhXCxLQqyZ6lvSM/qF/yVzA+AQmOVr1/bPYJb6J/d7ow4StilDfrA88xFTkm hebdStlzclls7lwSekV3tWVl2dABxUO3o9b8M9yMWUsDzXeJV8Hdxko7KsiuKMI0gtiS 4kqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=+1Lc4O6nG4WhNY0kjZTVH5GmXcujH+6YTZBb0u4ztaw=; b=XAXaiJW6hjSteQacRDXCqmUmVz4kKBarbzB3fRBYHeuujU2/JnuxXQkxt1XtPWn/kn Joxa1TRxB9JjE4WH7bk3E0snRhGckieHsMPCFtZ49wDEQO8kVSPeayaQ3gudX/p57ANN Zoz6Bo8UHq2xht6U40j7jQ1unGyZCBfoEVrYWSGa2R7sGNVpbMkUiS0MYsjP6aIIB9YE Dwjdv4IZr/gIZL88UMavP8T9h60DI1iuwX0H6ZlKGVRXUszduoztyqQHROU+gQY2MNZx vf+H817+6OtUVLdv/uXri5ZE17MdP/GfaBHo1QF8YukNso1AUcN5Pq2y4MvBETQ523Te UE1A== X-Gm-Message-State: AOAM533LsATfM6DLF+F3iwD70pmZ2IcohzF0CmlEMNAl6/SFkBjBEd4I PmSjOzDTZcAWILsnSpujuncnJQ== X-Google-Smtp-Source: ABdhPJxFtksMoT7z7tmcaIzciXM5Yo4ztSCBt2/7Yj5l1ZVRcewTk7AyaBxzF/54i5daAIhUQmoq8Q== X-Received: by 2002:adf:d4ce:: with SMTP id w14mr4596712wrk.89.1611649397976; Tue, 26 Jan 2021 00:23:17 -0800 (PST) Received: from dell ([91.110.221.188]) by smtp.gmail.com with ESMTPSA id v1sm2227852wmj.31.2021.01.26.00.23.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 00:23:17 -0800 (PST) Date: Tue, 26 Jan 2021 08:23:15 +0000 From: Lee Jones To: Mark Jonas Cc: Rob Herring , Support Opensource , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Adam.Thomson.Opensource@diasemi.com, stwiss.opensource@diasemi.com, marek.vasut@gmail.com, "RUAN Tingquan (BT-FIR/ENG1-Zhu)" , "Streidl Hubert (BT-FIR/ENG1-Grb)" , "Jonas Mark (BT-FIR/ENG1-Grb)" Subject: Re: [PATCH 1/1] mfd: da9063: Support SMBus and I2C mode Message-ID: <20210126082315.GE4903@dell> References: <20210125125458.1302525-1-mark.jonas@de.bosch.com> <20210125125458.1302525-2-mark.jonas@de.bosch.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Mon, 25 Jan 2021, Mark Jonas wrote: > Hi, > > I also intended to send a cover-letter but it was somehow lost on the > way. Here it is: > > On an NXP i.MX6 Solo processor we are running an application which > makes use of real-time threads (SCHED_RR). In combination with a > DA9063 we experienced (rare) random shut-downs and reboots. We found > that the issue was caused by a combination of the (default) DA9063 > SMBus mode and non-atomic I2C transactions of the i.MX6 I2C driver. > Because a transaction could be idle for longer than the SMBus clock > time-out due to a real-time thread the DA9063 would time-out and > receive the second half of the transaction as an unintended message. > > The solution we are giving to review in this patch is to allow using > the I2C mode of the DA9063. We kindly ask for feedback and eventually > hope for an integration to the mainline. > > Because we are on a vendor kernel we were not able to test this patch > on the current mainline kernel. Though, we tested a (very similar) > patch on our (close to mainline) Linux 4.14 and 5.4 vendor kernels. This is the 3rd cover-letter I've received now! :) -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog