Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3514908pxf; Mon, 15 Mar 2021 11:14:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxp7LsJ0zHMUhq1ZV+JEGaaUXflmPXFfQz9kiypooFV/q5bf+ef9br8WtWaa0WPJevSql5S X-Received: by 2002:a05:6402:158d:: with SMTP id c13mr31300992edv.297.1615832079209; Mon, 15 Mar 2021 11:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832079; cv=none; d=google.com; s=arc-20160816; b=XzkQPOlelCoKWLETIBvyEat8SsuqVeBwYp1TRIfw4XP3pZ+0xHBwC8Tqux8EtGVIXR xodFuL+fJox5Z2oDnwXiM7G/qkomNQMQ8TuM0bQ7j/lKw17N2VxS0h99WUyo/8vLXxT2 lbmCMd2UJ21YnO1pbD5G6P2/fLoZp1b3Mv6peQJPTQiYfw0v9dvy4rP90GzUpZcvAO8J 8SiG6BCiMk96WFgo/cUy+rbyUSNzCooKCqhoXUzARFp43hj0WqWma6NwWDxdPCeN1g1P G1iAYic7CYzFLYHZCU7VG+hzWPR4sf2gr2V4DEZl1n+pAuZKwBWenkfS5DbKEf5sRvtA 7B9A== 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=YLbaCxWQVf8vax/9YE1ZAfKR0xQz29909V2+r2IAGuM=; b=huNto/QiP7VCIbjhF5H/dq9ppVRlZkBK7DwAtOtw7HODVNM5rSqItW9Bn/CGagjOrO lmQv6hs8nmGiMeh1okt4hrgZ1MbeVoOe4rL18G14y2z/rJZH0s5bWH+eryMYNtyAr1CL b41XA/EoWm0y/f/51TWQ0c8a5H5yF8SSY+qQa8cWQZCVF/X89qJjwOavmZLml/ze0iE2 QA6mI8zmZAaHNjaqmw909qJMO0v1P2DQ3+xn8mYklJA05+oRW7U7zwFJHW6tbX6yn605 d566Ywn33fyveAM3Vj0Eo10Lf8YhfROY1LoMCuPzFTOzSqF1QDSCxMf/ZZiU28KR8SQ8 mDHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="KgFcZ/tS"; 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 la25si11624132ejb.703.2021.03.15.11.14.16; Mon, 15 Mar 2021 11:14:39 -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="KgFcZ/tS"; 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 S236128AbhCOOMY (ORCPT + 99 others); Mon, 15 Mar 2021 10:12:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:36764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232350AbhCON62 (ORCPT ); Mon, 15 Mar 2021 09:58:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E094764F17; Mon, 15 Mar 2021 13:58:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816706; bh=hJVwzSC6/ST+dE99RgvAl3V8AhpXoY12zMpM3vlMe1M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KgFcZ/tSy97qsvCKoPEXX2hCEWaCWK7A87M/UrG3tjZ4PIylLC+MhUUX8+bbv4dCn 3zl5iH4XWiy2/WKOsWRj7zIHhteLjvnGdte0Sjo95MAxK7OvAJPxz3keZyi9JuW2Ro yEi5m1yypWXODBhKAX+260xAHTtVzggLICmqAuVI= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hayes Wang , Heiner Kallweit , "David S. Miller" Subject: [PATCH 5.11 076/306] r8169: fix r8168fp_adjust_ocp_cmd function Date: Mon, 15 Mar 2021 14:52:19 +0100 Message-Id: <20210315135510.214125519@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135507.611436477@linuxfoundation.org> References: <20210315135507.611436477@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: Hayes Wang commit abbf9a0ef8848dca58c5b97750c1c59bbee45637 upstream. The (0xBAF70000 & 0x00FFF000) << 6 should be (0xf70 << 18). Fixes: 561535b0f239 ("r8169: fix OCP access on RTL8117") Signed-off-by: Hayes Wang Acked-by: Heiner Kallweit Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/realtek/r8169_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -1013,7 +1013,7 @@ static void r8168fp_adjust_ocp_cmd(struc { /* based on RTL8168FP_OOBMAC_BASE in vendor driver */ if (tp->mac_version == RTL_GIGA_MAC_VER_52 && type == ERIAR_OOB) - *cmd |= 0x7f0 << 18; + *cmd |= 0xf70 << 18; } DECLARE_RTL_COND(rtl_eriar_cond)