Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3752635rdh; Fri, 29 Sep 2023 00:59:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeo5WKEc4z2ixXRRG/zZI0/C/HNF9QhYhkxlrA+9GREvlKevKr+Q0u6KfJAiRnpZ8NpbAB X-Received: by 2002:a05:6358:3a19:b0:134:ea45:53d7 with SMTP id g25-20020a0563583a1900b00134ea4553d7mr3059000rwe.26.1695974361532; Fri, 29 Sep 2023 00:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695974361; cv=none; d=google.com; s=arc-20160816; b=D6wVklnAPqMMWyM0vTewS3d+VwYUpl3mrptbat70GAnpxqwWPfo1JNQeh6h87GhSHd TgoWq/jqJLKjGJvyzAWCRup4x5r+r+t3Ots/CmozhN6c6WgUv22vg5nmi6YWNAql57tu le2Iaozu56mWrQ9Q83Er0Vcs6kA1G4Eu7kdpmXRz70i/fnd3gIdixPM4jJoktjEJdP6r IYsZIq5Cs8k9RIQg19TAGsyyQFoq9Fo7XdvBow+BtXS/BS++vKWvtQCeEgh4AcVu3xS+ xTZpakMQ1mmpnHmsROGEYiwtouRTEZqkBhlUojM2W/69+4Ek7Z5dVgEGsHmMLIB6UhGV UiIw== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=yAYLz3ukdJtNvf42OO+RRKZ3YtBH+Khh5W18AjODGKs=; fh=h2lAC52eZFPygrsTT7D9yQqMTXdX6u5hPtyDhW3ydbY=; b=GYz/2kGJoQ0Hq+6oqK+CHO7M+suimHm5gk6hzmQ19VpJySDtUd+b1xyY0mSsO5lb17 yZgGrV0G9PlJMTCUpZXUk1nkRDY5FdPVQx+qpjQ4ox+UR7WpZW5hgXeTTYUfCVm2f1bR 5SXvdYkwJUzmNYgqru+WjdmFqEDy0IaKXmtfU3goOJcT/ZxC8rb/GDNFwjsQkBP2NXY4 vyh7HNad2yJHKWFolVDpu5MBUqiZdMf/vST0WJwQvsDJCTllASLwrd/TGxeTsXY8Ex/b +iQ+CR7ESTLDIFyJJ80QCMzYc46W3+IfdofLi4QOaUO6Sozd0ajx2lboqCg74FETq210 /lHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="EEV1O/Or"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id w22-20020a637b16000000b005855424fc29si6436839pgc.53.2023.09.29.00.59.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 00:59:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="EEV1O/Or"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 2BA0380A770F; Fri, 29 Sep 2023 00:39:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232777AbjI2Hjr (ORCPT + 99 others); Fri, 29 Sep 2023 03:39:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232774AbjI2Hjo (ORCPT ); Fri, 29 Sep 2023 03:39:44 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45EDA1A8; Fri, 29 Sep 2023 00:39:41 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 527F2C433C8; Fri, 29 Sep 2023 07:39:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695973180; bh=yAYLz3ukdJtNvf42OO+RRKZ3YtBH+Khh5W18AjODGKs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EEV1O/OrowYxwsT7xTRih0qWIX7q1hjm5Ayp0pZO2vP6t9NZEYYSn2dIQZjBhoMyZ YR49YoxePkb2gTXXgMb9TzBuAX6wuNqtQXG1Ye1TyTwuHU695VfqN97JaLxmBFmPBt RtWcF3OkpBUAkeMc0TxS4r/iQBQSTD1cC61qFiXVg1d2ONNtYhZ5BeANSPE4/btAux TVQCkjxUVDkfDThiGACVsn9i2umC77hcIrAWiuaIaZ8LYm1ZUd67fUVWIiIIm3lZj+ Uv7JhPU9Pp0RP15drIFjgKE4x2m8UhG2pKklx1E2DHGSZvG2bGG4RiCYjdHOuhDeLK y8m6T9k/g4V+w== Date: Fri, 29 Sep 2023 09:39:37 +0200 From: Wolfram Sang To: Jian Zhang Cc: brendan.higgins@linux.dev, benh@kernel.crashing.org, joel@jms.id.au, andrew@aj.id.au, zhangjian3032@gmail.com, yulei.sh@bytedance.com, xiexinnan@bytedance.com, Andi Shyti , Tommy Huang , "open list:ARM/ASPEED I2C DRIVER" , "moderated list:ARM/ASPEED I2C DRIVER" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , open list Subject: Re: [PATCH v2] i2c: aspeed: Fix i2c bus hang in slave read Message-ID: Mail-Followup-To: Wolfram Sang , Jian Zhang , brendan.higgins@linux.dev, benh@kernel.crashing.org, joel@jms.id.au, andrew@aj.id.au, zhangjian3032@gmail.com, yulei.sh@bytedance.com, xiexinnan@bytedance.com, Andi Shyti , Tommy Huang , "open list:ARM/ASPEED I2C DRIVER" , "moderated list:ARM/ASPEED I2C DRIVER" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , open list References: <20230927154244.3774670-1-zhangjian.3032@bytedance.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+myms6uqEERuj8CP" Content-Disposition: inline In-Reply-To: <20230927154244.3774670-1-zhangjian.3032@bytedance.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (howler.vger.email [0.0.0.0]); Fri, 29 Sep 2023 00:39:55 -0700 (PDT) --+myms6uqEERuj8CP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 27, 2023 at 11:42:43PM +0800, Jian Zhang wrote: > When the `CONFIG_I2C_SLAVE` option is enabled and the device operates > as a slave, a situation arises where the master sends a START signal > without the accompanying STOP signal. This action results in a > persistent I2C bus timeout. The core issue stems from the fact that > the i2c controller remains in a slave read state without a timeout > mechanism. As a consequence, the bus perpetually experiences timeouts. >=20 > In this case, the i2c bus will be reset, but the slave_state reset is > missing. >=20 > Fixes: fee465150b45 ("i2c: aspeed: Reset the i2c controller when timeout = occurs") > Signed-off-by: Jian Zhang Somebody wants to add tags here? I think it should go to my pull request this week. --+myms6uqEERuj8CP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmUWfzkACgkQFA3kzBSg KbaStw/+P9lKIzk5K+HPzW686R3QSD4c9L86eK6C7qSbz3dR8WCLARees+FPn7KK SLQxjQzUToKNe8bfW9QnSs65v0koPIADF83FOloDj9+0R3+mbsqVohFn7wcPM5t4 NtAzODYxDYOCQP84m25UZC5A+G7zDXxqHM0gE5Y+cbptMCaSVyzRK4/1gBIeuos/ H++dJ0wJ86ozY69MUjCNA0lQPGooZKiuZ81F9NaGRx6yxHO0aKI6ZLkLHpZ/c2G1 mNbtgy2zR1UbahtKUHmfwmT8XuCOOlpTVCnMfjXl1BaElI4unm3F52ZvaHg375eq 7IDpAO5QC4LNEQEmDE90OgvLa3eS4SvEkHeZ4wgr/iTiBicMrqEYATxka4mnjdfV EyDQIIWgMMaZqpsf0ngjN978y32byRy+IiN47aY2Cn7IeXJxruZ76Cqj6T9Pq4bb Zeqe/xs5Zt2B2wRsxD/fLSbls6gxHRR8yn0mBZD4XgcCxxsxllP5yQ0pukP13v8F WPHGoob7CewyIijzwuI64R0I1dkBRecC7WkD2eRnzL0o33N7ct3VY62qgFX2xmIS AG39798UYyZ/Mecx/hp4/mMnOhXgcPPyYgbmqu9+MGNEG03eHsGumshUOxQIRSnI d9q4OxxEDFTj3/tEMhEtYDkwKnIwEkAnvKYQGmhfYMZOUXFGBII= =00HN -----END PGP SIGNATURE----- --+myms6uqEERuj8CP--