Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3502142pxf; Mon, 15 Mar 2021 10:57:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwL6Jg2aS4oodKfLsEpare0hjMmSHBdVMxsJXfEkWho8nV0MPTE6HRNMvX60tQIbzIkXDUV X-Received: by 2002:a05:6402:2744:: with SMTP id z4mr8338926edd.347.1615831068245; Mon, 15 Mar 2021 10:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615831068; cv=none; d=google.com; s=arc-20160816; b=bM7rMm7gvFCXKHddCGRuR9a2sOZrWD3FYxA0YbQtdsHBPo+Q3W6AZVvu4c5nydHkSD CusAj7Xp3y0hCcrFyZIwXLupxBAJ7J3jK/qnLKoiIkQd5cZ1k/lI/UCN1NXO1ksYt+ia sLPMsE0W8wgkBzM8quz93D2KqR0SgxLvnig2tRdsg6AqBM2tae0D5z74uLIQblCy6zWO 4oq9KazronslC5nTS85dQQf5hoLT/tactE7uzeW2R6mCHvAv0lggJ82gK2pt7wJ7l+F0 gHuI6+pajFv0u3VgbTYLOGOheVs5XSIPmXfR2lVZS94/LRV/jyyyQmkZJY4YpxfpMVNF k3eg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WLFdDu6PRSqXYl4oBYJvVYiqWSGTiMYH4N1z7sjGDNY=; b=N4ZLy3VDCYD4yyMpoJ4+ytQ5FRsf2l3A/j+z4qBm06RgW1yK5UjaRw2j524ziXx+jy 0TAe+8DrI49XoBohhU8PgaeLBwtQXT2nQxbneh28B/aaDrXaaWe/GT5GTNEKjwe8WniT SQgFYV0wgpYy/W4w2+yccYN6fA/uhQlSz2K3Wgi3A8dh0tC1f7nnT3lqcY3V7zI2k8ic h5Uyg2475m7kpvpMFK57Euo4XGCaS87Fezy9QKwc1ta63JbYv8tAFULocJJECBUvf2iM XK+tbZOkfSvwWnhYTUun19FdVcWe/qyF9pQUd0jOV8yJ0mK4po5o3dRJolBj9jewm1xr CXew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ao7E8gBr; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y101si11591014ede.101.2021.03.15.10.57.25; Mon, 15 Mar 2021 10:57:48 -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=@linuxfoundation.org header.s=korg header.b=ao7E8gBr; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234121AbhCOOC6 (ORCPT + 99 others); Mon, 15 Mar 2021 10:02:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:34114 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230408AbhCON5B (ORCPT ); Mon, 15 Mar 2021 09:57:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 07A4E64F06; Mon, 15 Mar 2021 13:56:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816620; bh=aNzp2xKT799H7IKI2qMUXVMtBu16NwzyqW3yODr+Cro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ao7E8gBrUiM/1pP46PcLd99CubXuo2+q60a6br5P+S0kuk7jyyIpaY9lOiHm5ezeJ dMe6MTKkGIxrNSh2PX9TjlyqEiPQjGn3jpmizM7W8h4ma/6om+W78azSVGzUygujgU j9cqlmI8aHh1poIJs2mCbRcGwe3dEDtWK0czGtMo= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sergey Shtylyov , "David S. Miller" Subject: [PATCH 5.4 008/168] sh_eth: fix TRSCER mask for SH771x Date: Mon, 15 Mar 2021 14:54:00 +0100 Message-Id: <20210315135550.616881194@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135550.333963635@linuxfoundation.org> References: <20210315135550.333963635@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Sergey Shtylyov commit 8c91bc3d44dfef8284af384877fbe61117e8b7d1 upstream. According to the SH7710, SH7712, SH7713 Group User's Manual: Hardware, Rev. 3.00, the TRSCER register actually has only bit 7 valid (and named differently), with all the other bits reserved. Apparently, this was not the case with some early revisions of the manual as we have the other bits declared (and set) in the original driver. Follow the suit and add the explicit sh_eth_cpu_data::trscer_err_mask initializer for SH771x... Fixes: 86a74ff21a7a ("net: sh_eth: add support for Renesas SuperH Ethernet") Signed-off-by: Sergey Shtylyov Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/renesas/sh_eth.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c @@ -1131,6 +1131,9 @@ static struct sh_eth_cpu_data sh771x_dat EESIPR_CEEFIP | EESIPR_CELFIP | EESIPR_RRFIP | EESIPR_RTLFIP | EESIPR_RTSFIP | EESIPR_PREIP | EESIPR_CERFIP, + + .trscer_err_mask = DESC_I_RINT8, + .tsu = 1, .dual_port = 1, };