Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3513230pxf; Mon, 15 Mar 2021 11:12:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzo7cBT0XY/L2D/MapgE5WavBtS8s+v/Y8HhZJUiCrTuuc5fAep7JlKWsuLABv+T4EC49+1 X-Received: by 2002:a05:6402:350f:: with SMTP id b15mr31324780edd.6.1615831938519; Mon, 15 Mar 2021 11:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615831938; cv=none; d=google.com; s=arc-20160816; b=RgVOZZCGzJeTUHCUTETQN4so5quRYfT71gIsPCnw7byfybZdaJJFRFxqLMiZAOnuH8 hd96zd0WlmDVVnLZckBtU5eFdB1F5USkFAuBCF8qXjzbL+wO6kgAfUHLe7XTDsI49MnN 7XQzn+XwU98bYr2yvW3Z3QK9qNzDsGdtA5hS6BjbTlLmXPX2XQ1Y5a3Yd3/ZVlg06Nmu mCBOiHlrw9OF47gBZo02c+WFThNvZCF2WR3CJGlDrZ4vhOk0J8CUFc53LIMDk1V/XF5Y WUXoGMTcRiREgoD6QTJeMaHZMNa7LbOOWF+pgvW0vWAwlcRIpifmIy2pEko4bEiYhoIo QgbQ== 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=ZYaID6TtlBMl2ytr5LlZmBfQ5aXVozsWPpR8kfkCJ28=; b=e47GbgUlhRLD80QqLJlDR0nFacQ62/4lqamKXo/aj2bRztFM8FVYS0NAhvB9rwtIeX cRYjeV06M1faw3EHgNorC51NQ89KljYCExtuC2YarwYTix/tC8l5UcClcmE0VAYMi6Ep tl0ZTEHy4KA3YlYAXm0lJDSxb+E5Arg8VLI6PiWU/1B48CfQ0qOb6UT70QToYwF1MWf3 ySNCNnCDqOfBvXBPmfExlEmoXLeMhB2jQX4Jzua7nVSJldvOyasBwIcZ26nktPL1uXc0 QMg9K9rH9FZc7J8jcHFjz80INx3tsbxiZFnw6APMj1ESblaBKL3SRpb8WYvGyTA1fFRm zioA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xZRNVKKp; 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 gv29si2212771ejc.61.2021.03.15.11.11.46; Mon, 15 Mar 2021 11:12:18 -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=xZRNVKKp; 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 S233331AbhCOOKU (ORCPT + 99 others); Mon, 15 Mar 2021 10:10:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:37632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232289AbhCON6W (ORCPT ); Mon, 15 Mar 2021 09:58:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 78D6364F06; Mon, 15 Mar 2021 13:58:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816697; bh=SRaxMHf8UgfcqAC0BnwYzxqGT0xz4b4gwipGqXpHJnE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xZRNVKKpBix7HklWj+w4o4fbd22WrGtZexKLI9+RdyJTlZCuGunAW/lX65Uf0FGQc sJzXiAbT3zMiFRJXglNEckU23l0pQigtEDwIm2xHzooTefrcfBQA0bwwZgyV2uCOl4 TI+zs0l+pWZyzv+DDRwyzxyHLcTvZnFz+N8BVtvU= 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.10 062/290] r8169: fix r8168fp_adjust_ocp_cmd function Date: Mon, 15 Mar 2021 14:52:35 +0100 Message-Id: <20210315135544.008956536@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135541.921894249@linuxfoundation.org> References: <20210315135541.921894249@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 @@ -1042,7 +1042,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)