Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1398574rwo; Wed, 2 Aug 2023 13:26:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlHakEa0gvPz2t4CS6wlXEQUVKpkzO45qECRmLdur5N4jhZ24gquhlzKAybGp1CS4A4bPAXo X-Received: by 2002:a05:6a21:6811:b0:13e:e450:f4c6 with SMTP id wr17-20020a056a21681100b0013ee450f4c6mr2816450pzb.27.1691007982786; Wed, 02 Aug 2023 13:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691007982; cv=none; d=google.com; s=arc-20160816; b=Y5rQPJddfYeybd8Bj1PcvIO9YflCXQi/hTmC1ns2FWu1p7fKwZe4dBhb82WvHqhKSB dILxjuOYEX8PZJ+9ZeY8nSCHwtuxLlpLGcCTMaTti9Bwk9qnAgYImNG33vKylSg04Hdx bMFp3fM9IMgK3osRLMBl5LEPn1VUfxvf6kSyaqV8R1KmurRnaYL8BrAAvros2ie1ZsS/ znjv0X2br9m58T/oSRwKwzv73C0RBA6MGkhuXIubzOmNih2BRaMaqS2zMg4j/k0FghhP o1tbE2QxygoFrna83j8Pgs8nRppvbRc1z67zOIM/rCkKEcrRTBQz7oukQtsOmGa1c2hR R7ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=tpHV7B+CjUb9ghYtEA7HlWjOQnoWFd3HLmmmqBcThhI=; fh=tXXchmKtGqNT1O26C3N7Ux++yzvUdubFJyYwLiQMsRs=; b=oSw7nT0fdw/8WgI9TSlte+UnES6Ma69/RcSQKGapdo1EcUA3Ou0fTiiA2Z4boHELpw gj0A+ru1aKO4B764z2MhIKgIsuw0kImj+a1e4mbYlbWsDwmeEWmM1SkbAN19+fj5lgPl zCIvPJ+/gPcxbqDEtl8oltKz9O/68spyuAZym6UlryWyDfQXV9cughMBOJtgScHcjfee 1Gpe2n4qQu+o24QgOaYhJsMWufkvPbFYJv/jhSjChnf4i3KwdxMPYEjMYUbOX7OQEvDs KRrozPmM1YgUVOfKLhIfJPhlgyaQ1HCLjCzq395nAmn4uagBEg9PHwCffO+mPFTFoFAZ fTzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ErXtWBg0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m6-20020a632606000000b0053fbb36fc65si11838562pgm.382.2023.08.02.13.26.10; Wed, 02 Aug 2023 13:26:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ErXtWBg0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231669AbjHBUCb (ORCPT + 99 others); Wed, 2 Aug 2023 16:02:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231660AbjHBUCY (ORCPT ); Wed, 2 Aug 2023 16:02:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6780F26BC; Wed, 2 Aug 2023 13:02:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F0F4B61AAD; Wed, 2 Aug 2023 20:02:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFD67C433C7; Wed, 2 Aug 2023 20:02:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691006541; bh=KlYX+t57rsYgh1NP6IiBHAcbF9+7/lO+EJyXHCQqQQI=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=ErXtWBg0QLfz4lla1ShmwUisx5pmay6ZeaPra5WkNnaSlstpZ/sqFRfZ/bhyXLTBv rW8ZGqKqJcS4Fw5XSIr8+hs2Iui3JpspuNcf9zrd4xALoQ6DhZhi5DQhhyjcCRa2MI fODXL1mK6eK+0zaIFeOiZLTLzXtOQzcbH2wQKCOFkUpI/lwobZZO6nXXecsaMd9n1g reoEIh2IEN9NduvO8DZvcOYAgXPIBagi1EoaNudZ96yHjGdA3K8Lyyku760OQiKIxF AcDkyYqogBnV9ZQ5/Gz6XF7a+gzFTa5kA6outNKART7ks9RBCZJIh74DNg4U1mj0tQ cjErOBJ/BQ/9w== From: Andi Shyti To: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Tam Nguyen Cc: patches@amperecomputing.com, jarkko.nikula@linux.intel.com, andriy.shevchenko@linux.intel.com, mika.westerberg@linux.intel.com, jsd@semihalf.com, chuong@os.amperecomputing.com, darren@os.amperecomputing.com In-Reply-To: <20230726080001.337353-1-tamnguyenchi@os.amperecomputing.com> References: <20230726080001.337353-1-tamnguyenchi@os.amperecomputing.com> Subject: Re: [PATCH v2 0/2] i2c: designware: Handle invalid SMBus block data response length value Message-Id: <169100653810.1957828.14708654372750831092.b4-ty@kernel.org> Date: Wed, 02 Aug 2023 22:02:18 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi On Wed, 26 Jul 2023 14:59:59 +0700, Tam Nguyen wrote: > This v2 patch series updates the I2C DesignWare driver to handle invalid > SMBus block data response length value that causes the bus is hang and > can not be recovered. > > v2: > + Create new commit to correct length byte validation logic [Quan] > + Get right data length from IC_DATA_CMD register [Jarkko] > > [...] Applied to i2c/andi-for-current on https://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git Please note that this patch may still undergo further evaluation and the final decision will be made in collaboration with Wolfram. Thank you, Andi Patches applied =============== [1/2] i2c: designware: Correct length byte validation logic commit: 29a1ae0bd13f45da520a7106abfe347f9375f64e [2/2] i2c: designware: Handle invalid SMBus block data response length value commit: dcd14feb235bed87a9cba63538bcf6a7a7e97b78