Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp1079869lqh; Fri, 29 Mar 2024 06:47:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW1iHnRAfSimvRTOLLEwjQ7T69mcEyh1Dm78NJrrXHMZaRopY5rZpsfwLa0zbUWTkUsxegAq/UnvY8GI/3CwsWrUsBYgFygBPMY9vqwmw== X-Google-Smtp-Source: AGHT+IEPBjkVA668Lyu1ZjGCQ3LxVSnxU+Xw99qQb6dXhJ6cp+m8hdTuUNU4ZTDW6SNMJdo2kC61 X-Received: by 2002:ac8:7d83:0:b0:432:b960:b10 with SMTP id c3-20020ac87d83000000b00432b9600b10mr2514983qtd.60.1711720042715; Fri, 29 Mar 2024 06:47:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711720042; cv=pass; d=google.com; s=arc-20160816; b=QU/33EpLgCY/ELzbs5u1Kia1dQbD5lhnVNtcT9enrtT+UBzc38rljUzesjuqRnad6Q wm+ObUuAeUBsBpkHeElnMvwjXuf08ZqFSoo0YNZ7SLHDdXn3tqVeKCiuoyRzXWvK/lqj XKK6B43CC/MrX9vsrN++8bFwLzhDb9TwFf3JW9yAg1Mfbry7o+MC3+fbTB/nVLfM3ilh ZCRNTVvIy2AbYcNIi1S+r7NIKxUNuXAxGghCoRO0OTSGm6l6Q+lHkjqlScG0Wb6iXGtQ IV2/GvbcXJMdCkVqHY80egEFtL8cYlHDZljGVlOwaGtjl120U26HM6bgSKutXP6kEU/h FV8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=cq/5mWPtX0jQwawQIs3SDqzkEUiti3jMuvBpRP2NbvM=; fh=4jQlFCASaVZQ3fW1lVD0mWsYhTSyAnGvnD7XL+MrIIY=; b=Cf0iEMDKrpNCeGhVQQ9eShGygH6pXQ2eD7N1AGUkrfoDO+6rq4rC0JdwxAr11fEFMO Yxy5e9np3VxXFHp9JNGweuFFG/pVYx/05MPVoFpOzjtkjQGKZaEjK7KfDvqFlj28QU0P ntYNkFELogBbUNvMN/x9fLUMs20DsTSu17ILWcNS3+lxknI5qddv5iGWjC5fAbIB0UVK T6cjnvExiON7dc8RVRavUC7Zi5Jr5nZsZW6kidYrDtFQYP56KRDvGAzODZhF6Ed/Y8Nc E6yF+Ot8WkH0iaN3HbGxCVGUAD0g1iyk1qOIe9tCUVNahcibUYNIDOJwWEkpiLxP+L6F cSsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WetOfq6A; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124770-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124770-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u19-20020a05622a011300b00431324fd54csi3685168qtw.519.2024.03.29.06.47.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 06:47:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124770-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WetOfq6A; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124770-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124770-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A301D1C27203 for ; Fri, 29 Mar 2024 13:47:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EB00181D18; Fri, 29 Mar 2024 12:41:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WetOfq6A" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 759DD181D07; Fri, 29 Mar 2024 12:41:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716111; cv=none; b=CC9J6XXV5kJAvf7GW02Gjeaf9CSQW1d4KVrJesrrJKtGyz4mRuf2LBNeAzqbEhFUSdO0GhlVD4p08SHDQPQ1PoNEKCHQfGFTgP8hdw15GqoPfiRJdVugrAfn9DuF3vzDW9hLL9mti8uLllMtK0WEyouge0QmknthnMXyRqxX8r4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716111; c=relaxed/simple; bh=GKj+uGGDM2REz2nuSY3QZu0YyUCCfqb78Y2dQkQ7SFA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EfMBqmbr7OhW7pipcp0Zp9V7c1U7dBgtcYVRgdxEidvdVIMYEF4TLbJojYm2U3OUfwxJymUOajMP6OjcQsPpjjI7o6RDO40+TcILUkPq/LiTN7JhkDBXkj7pcTP6vvYWBRmiDrpPNHFancQ8VvBiT6oqVXQPfR/JZ7C4KKXg2/M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WetOfq6A; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D826C43390; Fri, 29 Mar 2024 12:41:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716111; bh=GKj+uGGDM2REz2nuSY3QZu0YyUCCfqb78Y2dQkQ7SFA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WetOfq6AVE/p+n6xT1pq/OUx1TfKuf+L9E46diaQ1Wt6kV8iZGTI+CdSw4fqKXYKn wZqw6/mUproD+b+h0DrGCM261mCXblMuAEe3QdgbYj1xYXrTQqpARGUbx3DdB5MQYP zRo/9uFyKS/i427HIzaMPYoiegec40VLOPhAff3a7ihOGnK8q074Mkzz8kSGXZltgD 4JcoaCoCYJ0GyDowTjHOm1wPIzLQ6S+7U/Sq4Q2Mc7u3S67nvEMcP+Lp1nIyxZjFo5 tme807+/bKsEgKUKUa+9C+AYa5swLxg53kXxVgGEm0v/Jy/8+SQfiB4/jqosYOrE8r HSEB8LbMBIe4w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jarkko Nikula , Jiawen Wu , Andi Shyti , Sasha Levin , linux-i2c@vger.kernel.org Subject: [PATCH AUTOSEL 6.8 60/98] i2c: designware: Fix RX FIFO depth define on Wangxun 10Gb NIC Date: Fri, 29 Mar 2024 08:37:31 -0400 Message-ID: <20240329123919.3087149-60-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329123919.3087149-1-sashal@kernel.org> References: <20240329123919.3087149-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.8.2 Content-Transfer-Encoding: 8bit From: Jarkko Nikula [ Upstream commit c94612a72ac87b0337a0d85b9263266776ed4190 ] I believe RX FIFO depth define 0 is incorrect on Wangxun 10Gb NIC. It must be at least 1 since code is able to read received data from the DW_IC_DATA_CMD register. For now this define is irrelevant since the txgbe_i2c_dw_xfer_quirk() doesn't use the rx_fifo_depth member variable of struct dw_i2c_dev but is needed when converting code into generic polling mode implementation. Signed-off-by: Jarkko Nikula Tested-by: Jiawen Wu Signed-off-by: Andi Shyti Signed-off-by: Sasha Levin --- drivers/i2c/busses/i2c-designware-core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-designware-core.h b/drivers/i2c/busses/i2c-designware-core.h index a7f6f3eafad7d..ae835000fd32a 100644 --- a/drivers/i2c/busses/i2c-designware-core.h +++ b/drivers/i2c/busses/i2c-designware-core.h @@ -318,7 +318,7 @@ struct dw_i2c_dev { #define AMD_UCSI_INTR_EN 0xd #define TXGBE_TX_FIFO_DEPTH 4 -#define TXGBE_RX_FIFO_DEPTH 0 +#define TXGBE_RX_FIFO_DEPTH 1 struct i2c_dw_semaphore_callbacks { int (*probe)(struct dw_i2c_dev *dev); -- 2.43.0