Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2163705rda; Tue, 24 Oct 2023 14:35:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IElU+b+/HufkVYyst6WKhwZxElZO9eNp5K0/Xb9aoqv1GQK+d5Z7FwKddE43Wf9bAj/gO4O X-Received: by 2002:a17:903:244a:b0:1c9:e508:ad3b with SMTP id l10-20020a170903244a00b001c9e508ad3bmr17830561pls.14.1698183335971; Tue, 24 Oct 2023 14:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698183335; cv=none; d=google.com; s=arc-20160816; b=d94B2kexb3uL+Dy/oHcMNwJWVBWLhrHwujLOgvRkhxRqT7rSaGhUmCWKKaWv9KQuZl 3fKUXzagr7wlAFCmIGiRcan4harET+zJcu/fs5q2PRhzMRBw5hi+mo2TBkH9byKwEJGl CF0xKtFx5/XJOeTg7hTkjoaUhXhn/QwHHjRodhsvWdXYb2/c8g2tJXFJJfXhmNJkb1IV 7XWlejWXfHa/Y4fvrCvv2uilR1+NuoUtluGrRhakUL/9xW6WRALdRlH5DnG/H8346ySt umDloa8ScPraahUXS0XkFhw3nzOnyPoz0YRlm42POHJ8sikSpMzSOWOumEkGA8cpXUZW pvRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OYMrgtsbM96I39I+nQPvvr1OsVZS1/s9XO0xNU5E+DI=; fh=SwXRDT3wef7eYr+GiOVvHhMXJPt0P6DhPR6I4tBQCDQ=; b=w/UrwZt50rZ0IRc/aBN6LZ0OObmBgG7IEWHgHIUPOsIbrwm9EAURst9KU6UFGVGjWP vhpSOHzGeUfpC6zNez+U2OBoxf9HsMuHs++WfuCgoSZtJ4KkRlEpPXDMVz1ceu6QYyJr GD8Vdz7ggFUBYbuXFwgmGP+IthRvYB75yv8YGWmzRRhMlTLpTsGbqCuJqQ3pQFyxbj2H MGy6/6qVWKhU6TdjDYPafe/oPYSAvh6SruG1SHb1kHU0YWoTJI3mmJzOIGUv+6l4P2/j mXLz/IcNH07BePzOI49eWseMoi87sSevGGorLpKjUgKrXVTRwHFtMbGQ+ZL++R3BiMyk RTEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N3mXbTyH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id u3-20020a17090282c300b001c72c792794si8637900plz.47.2023.10.24.14.35.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 14:35:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N3mXbTyH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C504C8020C1B; Tue, 24 Oct 2023 14:35:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344395AbjJXVfQ (ORCPT + 99 others); Tue, 24 Oct 2023 17:35:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234965AbjJXVfP (ORCPT ); Tue, 24 Oct 2023 17:35:15 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EEADA3; Tue, 24 Oct 2023 14:35:13 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40079C433CC; Tue, 24 Oct 2023 21:35:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698183312; bh=OYMrgtsbM96I39I+nQPvvr1OsVZS1/s9XO0xNU5E+DI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N3mXbTyHQZWcAaDxy4MnwkUz4X7nYsj1YuGMj2zaY1t+CNBhI7M/HQ7AkxaXE1UlI f1yN24qmxV0Gd9zFA/SaMXuUHfw1mEMFjDnfGWnesax/r51QQXOS+cBRrprxeGsQKI b2xI2f15qlxgo6pt7kGpVjd8VeqsoCMyN2inRkFJbvKy2gOuMIusIrMTStAZjpu/Lz zCmgP0/jE+Z9D/HVPDQNX+2I36FZoD9uEuR9AAbqUKR8xQqZdZBoiLBvggMkR3QnNt LmAFDg0uJ2X/nXgZ36uS5hDrnWk1ePD4tHRQ8WCSBvbpQ41g7P/orf54UNEfR10VK6 JIqXlrjHNF8kg== Date: Tue, 24 Oct 2023 23:35:08 +0200 From: Andi Shyti To: Huangzheng Lai Cc: Orson Zhai , Baolin Wang , Chunyan Zhang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, huangzheng lai , Xiongpeng Wu Subject: Re: [PATCH V2 5/7] i2c: sprd: Configure the enable bit of the I2C controller before each transmission initiation Message-ID: <20231024213508.7hlkfpf52ebpohoh@zenone.zhora.eu> References: <20231023081158.10654-1-Huangzheng.Lai@unisoc.com> <20231023081158.10654-6-Huangzheng.Lai@unisoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231023081158.10654-6-Huangzheng.Lai@unisoc.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 24 Oct 2023 14:35:33 -0700 (PDT) On Mon, Oct 23, 2023 at 04:11:56PM +0800, Huangzheng Lai wrote: > When a timeout exception occurs in the I2C driver, the I2C controller > will be reset, and after resetting, control bits such as I2C_EN and > I2C_INT_EN will be reset to 0, and the I2C master cannot initiate > Transmission unless sprd_i2c_enable() is executed. To address this issue, > this patch places sprd_i2c_enable() before each transmission initiation > to ensure that the necessary control bits of the I2C controller are > configured. where is the timeout occurring? Is it a sporadic failure? > Signed-off-by: Huangzheng Lai Would be nice if any from Orson, Boulin or Chunyan could take a look here. Andi