Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp229284pxb; Mon, 13 Sep 2021 17:46:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdGG5bXXaVQ0G5p1k5n1jq0fduSbb1Ze/ntbyuY6t9IXUzQfGMRidzyR6oQo40T3PyxELY X-Received: by 2002:a17:907:2064:: with SMTP id qp4mr10775823ejb.317.1631580389750; Mon, 13 Sep 2021 17:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631580389; cv=none; d=google.com; s=arc-20160816; b=nzsSrybO3rgwej6v0RBq84tB1BjbtAh+iPg8rRglHOc36MV8xFnHx7661ggAAK2b8H P3LQD/TeW1XWgyEptXzJfmiNS9r5/TcnDKyVLIWJZ5jlfWPRcjmayfly2Hysl9NP0f3B 3A7MLmZnDL57guDw1eYg7Xi9WbOXi81pZhkftUrvXd4l1zRNDZa6MmjZtQMwjZRwa3Pg ujrsXRKT1YIGNBz1jR8qD3UjyYnihjeWKYmvxkf9Z/NidFwGUnXwbj9m/DN6OsUX5UNW Ef/inR8fU3Akkj7jeg32yhvREGs9NYAzmEPgV5eYw2bI7yEbYGGySpilLbkxacQV9T3H JVcA== 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=TVCRvFkdOaCM/5GJMCsr10YmSXylo9LBhfnC8ka1n2o=; b=FiOnYpftvBxPRPy3As5PJKsoKvL8YljMZN7dew2bSonAeeHeEZvfAGdJJaiqSwPRZQ 80nyBy3JTbjo7EYDTrq1aSOtBV5j/qvRoyLqZqPHKcnTgnaP5178dxEsGqfi3vXqJID0 4FQkYg1Mdf3v1RSI9Ji/Dj4GTOoVtODCCignJCV0WaxfDhAtwukLFZrSgIA6j8+SRjKa rV+xGTdXjnLffDzEzW5HzAxsOw6r23KHA8/ySC1A1U09ceN16rmJX87lSnpw7FCXcjLG tQl5KhCQOQRahT8+etv3b6ooh0sPrVofOGxBc/SdnpX13bT3Emk5odUBB9scE/UGEK5o BZ4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="OQ2w0/El"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dg13si4361565edb.604.2021.09.13.17.46.06; Mon, 13 Sep 2021 17:46:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="OQ2w0/El"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S239478AbhIMQ5A (ORCPT + 99 others); Mon, 13 Sep 2021 12:57:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:46538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239888AbhIMQ47 (ORCPT ); Mon, 13 Sep 2021 12:56:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8A1CC60FE6; Mon, 13 Sep 2021 16:55:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631552143; bh=uUD9BeW8jFyLzVb0L7I3RCTD4qAQLcOLZZFlOvJ6GrQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OQ2w0/Elkm+1G3wLjr17l9B2+/QcO0UwFVduMARk/dIt2bTmoS2TlWAgP9Qxzhs/H J+HSjxT9vUVf8XG/e7ZSCTEmCXWQoPnwVdeAh1iAEWfp8EfomkJJy+4Usub5jDVxqt Z+8ktArEH3LiFcHHe9sNaMWlhtfg+cR9P4Xqv2TFxIjmrfBy8hWCPkQIOMJs+GutK0 IAkvz5z2Xn5xMOXmAhYKL5bn4N1fxu9fZB/UU7atC+NguZpIUdcSloYYkqDQybANSk +GethoLYKDThi70fW1qF2HrLi6pMB64PlYmRj5mcJIVrwnF6G8p3bK9JU0voZ/Ofhe xSEeZ2Sl0mYnw== Date: Mon, 13 Sep 2021 12:55:42 -0400 From: Sasha Levin To: Jean Delvare Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Heiner Kallweit , Wolfram Sang , linux-i2c@vger.kernel.org Subject: Re: [PATCH AUTOSEL 5.14 088/252] i2c: i801: Fix handling SMBHSTCNT_PEC_EN Message-ID: References: <20210909114106.141462-1-sashal@kernel.org> <20210909114106.141462-88-sashal@kernel.org> <20210909151320.7bddd134@endymion> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210909151320.7bddd134@endymion> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 09, 2021 at 03:13:20PM +0200, Jean Delvare wrote: >Hi Sascha, > >On Thu, 9 Sep 2021 07:38:22 -0400, Sasha Levin wrote: >> From: Heiner Kallweit >> >> [ Upstream commit a6b8bb6a813a6621c75ceacd1fa604c0229e9624 ] >> >> Bit SMBHSTCNT_PEC_EN is used only if software calculates the CRC and >> uses register SMBPEC. This is not supported by the driver, it supports >> hw-calculation of CRC only (using bit SMBAUXSTS_CRCE). The chip spec >> states the following, therefore never set bit SMBHSTCNT_PEC_EN. >> >> Chapter SMBus CRC Generation and Checking >> If the AAC bit is set in the Auxiliary Control register, the PCH >> automatically calculates and drives CRC at the end of the transmitted >> packet for write cycles, and will check the CRC for read cycles. It will >> not transmit the contents of the PEC register for CRC. The PEC bit must >> not be set in the Host Control register. If this bit is set, unspecified >> behavior will result. >> >> This patch is based solely on the specification and compile-tested only, >> because I have no PEC-capable devices. >> >> Signed-off-by: Heiner Kallweit >> Tested-by: Jean Delvare >> Signed-off-by: Wolfram Sang >> Signed-off-by: Sasha Levin >> --- >> drivers/i2c/busses/i2c-i801.c | 27 +++++++++++---------------- >> 1 file changed, 11 insertions(+), 16 deletions(-) > >This patch fixes a theoretical problem nobody has ever complained >about. I don't think it makes sense to backport it to stable kernel >branches. Sure, I'll drop it. Thanks. -- Thanks, Sasha