Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2303106rdh; Tue, 26 Sep 2023 20:49:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGCdLVG5RHXGfCHU/O4sRbZFB526JCsmH9gnkVKC4YBQZbf2rJK5UCe7lAHIuCjm7EuMb/j X-Received: by 2002:a17:90a:69c1:b0:274:751a:3f3 with SMTP id s59-20020a17090a69c100b00274751a03f3mr7250650pjj.7.1695786570941; Tue, 26 Sep 2023 20:49:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695786570; cv=none; d=google.com; s=arc-20160816; b=rb3ma0tst62Jk0Ggoexz/wJCJUNa5WUG7vDF8LVgmui3FSvWTbu/NXOtJb9ziZY8mU 6AoaMuUOiHxgCUA18Jb4o8OGEfcHrbBx7J/1LzWAP6MXx6WmSUWgrbla6qt6wLlOWmTw HDLMYgzYGyJXIk8vkaqJPjaowcHuwuNqjEePEnZTQVkp7D6dHUD3AI4qmBqN4SF98Ga/ bHEvIaLQVcii+m0FjrywNEvJQ5R49WEIn6Gta5BoDCIWrmkQqXwxUPajTAVz374+qvSU EK/Z4TwB5y7hAcAg1/WiM6puNDjsrjIfxjJZT5FCjvKaEcR7J2W0xeNSfgGvbAGfehhr xFJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=VMinxs6nfn6iZUfMzZa2WeT44I91Ws9Lj88tZvpoGtU=; fh=MgYAO5PYizPvllra+59GIBxFIRWJ6GlINvQ9jXkUJCM=; b=trBa38VEOL5ZfbplImIEmlgTLrivDwavgoVKmzT4CFWMUPysA0KaL2R48G5g4xwl2A z066zU9Kgy1OtOd9Eis/oCTLBs4RBVrKaZxx6nAt5cnUqP4n4H6f/0uwQKGMm6zXyApd H9ScA0kc1qoUGkbsTdrGieYmHXEi20v9BCPN6U3Y2OYLeQar6K7nMF8bjMQPnVScu2SG X/QcCNkqIkV/XVcap4jPXVuRqLL6ibZBM0xcmZrQKV+vwtxCowWHkS4i/k6ZhNMH6+U9 PHXVR7uLNb0PYxyUHl/ZlGx310pqvyuRB17f+n22/zTJ0xKrwUusqIkdyLzPNgMhFew8 NSDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=DnQ0O7Tx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id u11-20020a6540cb000000b0057e0c5a34f2si10963056pgp.631.2023.09.26.20.49.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 20:49:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=DnQ0O7Tx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E460280C2E2B; Tue, 26 Sep 2023 20:23:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229513AbjI0DXN (ORCPT + 99 others); Tue, 26 Sep 2023 23:23:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231960AbjI0DUs (ORCPT ); Tue, 26 Sep 2023 23:20:48 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD683158B4; Tue, 26 Sep 2023 19:42:59 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2c131ddfc95so159430801fa.0; Tue, 26 Sep 2023 19:42:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; t=1695782578; x=1696387378; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VMinxs6nfn6iZUfMzZa2WeT44I91Ws9Lj88tZvpoGtU=; b=DnQ0O7TxSFeJaq/njn8sQ8a1nLF38MLqJIXu2k/JomimIGFmuLaz7pci0w7/XGu8+I Iq9nKckfkQpySiEqIFH9PM6ao+Svi/sziBju5qo4a/LdkqkC4PAPlc3qgWlKosWFkwaA o9VcQnThDB6+FJI5QL4qqMHqlUOIBrCDNuo4A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695782578; x=1696387378; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VMinxs6nfn6iZUfMzZa2WeT44I91Ws9Lj88tZvpoGtU=; b=DkbBTQx0fGO1Ao7E9JQdIXsbSMci8ydNr9H8/oOrAgAq9XOS4Nzg08lymabaN2sryO 7NqRzNaX5sg62pGSSTCR86pMarTqUEvvaYGW9kF0Sage3HcvNvyiDyELdIGW3UEmduOw 5KVKTKh0WEbqfQyRRzJzXFjBdrc/eGik1Jd81vdv5M0jBrZs49c33W8cP2Nx/e334Egs LGAszw5pJ9h7PURtz9e8dlxPCFobSo7lsA9woUtgvH5dl+63KFV7yW7phVH6Bj+Tu86p 0FpnbBwnnlOebfRo9DUT8U3WzDJi7bBTgOwLZgCa63+d6ScibkeWF20U+G8OhV5Ndsz9 mNVA== X-Gm-Message-State: AOJu0YyOrmkTnXNl1pv6G9qBWxYJMZMjejSHxMym/85FlhkyGVN3wrSi dCREO8PNjnr87OGzrg4KSpHac3NlChxeK91RDvo= X-Received: by 2002:a2e:808d:0:b0:2bf:f599:be63 with SMTP id i13-20020a2e808d000000b002bff599be63mr681593ljg.41.1695782577775; Tue, 26 Sep 2023 19:42:57 -0700 (PDT) MIME-Version: 1.0 References: <20230810072155.3726352-1-zhangjian.3032@bytedance.com> In-Reply-To: From: Joel Stanley Date: Wed, 27 Sep 2023 02:42:46 +0000 Message-ID: Subject: Re: [External] Re: [PATCH] i2c: aspeed: Fix i2c bus hang in slave read To: Jian Zhang Cc: Tommy Huang , brendan.higgins@linux.dev, benh@kernel.crashing.org, andrew@aj.id.au, zhangjian3032@gmail.com, yulei.sh@bytedance.com, xiexinnan@bytedance.com, "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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 26 Sep 2023 20:23:37 -0700 (PDT) On Fri, 22 Sept 2023 at 14:39, Jian Zhang wrote: > > > > Tommy has submitted a similar fix: > > > > https://lore.kernel.org/linux-i2c/20230906004910.4157305-1-tommy_huang@aspeedtech.com/ > > > > His change is very heavy handed; it reinitialises the bus including > > re-parsing the device tree (!). > > > > Should we have merged this fix instead? If not, are you able to > > confirm that his change fixes your issue? > > I feel it's for solving the same issue, but I think this patch is > missing the action > `bus->slave_state = ASPEED_I2C_SLAVE_INACTIVE;`, > which means it can't resolve my problem. @Tommy, can you help confirm this? You're right, it doesn't change the slave_state at all. Unfortunately, despite no acks from the maintainers, this patch has now been merged and backported to stable. We should complete the fix, or revert it asap.