From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-174.mta0.migadu.com (out-174.mta0.migadu.com [91.218.175.174]) (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 131961F4604 for ; Thu, 24 Apr 2025 07:35:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745480129; cv=none; b=VE5ZELUjTwI9OixMYA252jbDyFi60s82uYG0TrfXAhFXgX/6GN0VdO5dH0LFwa5pPpZgn6MLTfrjkv8NreUk0l3N1vZBeiPb45OjnWBEdSknzDW1wvPKdsJlZM7LdEx52DCNQiFY4xrEYimUG1OZWVVctM26n/QIJlZ1Rm95Ljc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745480129; c=relaxed/simple; bh=T0kwBGjxljasHaaepEeFq7C9uTMkSN2h2iiLB3v6ask=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=p7U0zlZGKeABwbTxKvkNq2Q3ThetBrUxtIwpR07I6/Rh+s9Cdu5apVJrUonBEyqcvqRPWPwlvoN3ppYTOgkjsv2i22CDHMs0Q4QQIxS/r1foFM2/tKddadXCEUhIBXZIwhvP0NqyknEmkioI1zBth18uzI2KxkliLoMkTJ5m61c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=SGIdEUv8; arc=none smtp.client-ip=91.218.175.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="SGIdEUv8" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1745480124; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T0kwBGjxljasHaaepEeFq7C9uTMkSN2h2iiLB3v6ask=; b=SGIdEUv8ixPZp7SJPeHj00XJWK5dX4df6qcw+dvgwU5WLKqtNwbeGLyNbJbKAJ08flmTOk TdkOPOj6GklqJF1f3tYIgxvabWGeHksCAJctFe5sMWcjU76qWFqMhTstffeef5NXTe9cj9 D9p/cACXtMvKw+47m3OGBb/u+RJPzC0= Date: Thu, 24 Apr 2025 15:35:07 +0800 Precedence: bulk X-Mailing-List: loongarch@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH net-next V3 2/3] net: stmmac: dwmac-loongson: Add new multi-chan IP core support To: Huacai Chen , Huacai Chen , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Feiyang Chen , loongarch@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , Henry Chen , Biao Dong , Baoqi Zhang References: <20250424072209.3134762-1-chenhuacai@loongson.cn> <20250424072209.3134762-3-chenhuacai@loongson.cn> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yanteng Si In-Reply-To: <20250424072209.3134762-3-chenhuacai@loongson.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 在 4/24/25 3:22 PM, Huacai Chen 写道: > Add a new multi-chan IP core (0x12) support which is used in Loongson- > 2K3000/Loongson-3B6000M. Compared with the 0x10 core, the new 0x12 core > reduces channel numbers from 8 to 4, but checksum is supported for all > channels. > > Add a "multichan" flag to loongson_data, so that we can simply use a > "if (ld->multichan)" condition rather than the complicated condition > "if (ld->loongson_id == DWMAC_CORE_MULTICHAN_V1 || ld->loongson_id == > DWMAC_CORE_MULTICHAN_V2)". > > Reviewed-by: Andrew Lunn > Tested-by: Henry Chen > Tested-by: Biao Dong > Signed-off-by: Baoqi Zhang > Signed-off-by: Huacai Chen Reviewed-by: Yanteng Si Thanks, Yanteng