From patchwork Mon May 25 17:49:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 218585 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB26DC433E0 for ; Mon, 25 May 2020 17:52:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BB009207DA for ; Mon, 25 May 2020 17:52:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QFha/vd1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389013AbgEYRwz (ORCPT ); Mon, 25 May 2020 13:52:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388621AbgEYRwy (ORCPT ); Mon, 25 May 2020 13:52:54 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A429C061A0E for ; Mon, 25 May 2020 10:52:54 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id y17so9395822wrn.11 for ; Mon, 25 May 2020 10:52:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=tfdFv/a+uMiR6L3JhyloRU8+aUg1/bmzQFTApQLPVes=; b=QFha/vd1xoP4v8M007AkVTcJ1nBMLaCd8GMy9ZhNKsx1BTz8/b8N8S/7/Vg39Hw3n/ 115r7o9ctPNGs44HWbMyDrcpY4tDkAGDTC5Z+Po20D2rt+1Z9lFkQEIgIMX+1cIFH8Z6 kFVRsYivOijVK90/tVxAbXHrNLD37MHC33kvi4scU346duFKxNsavIg3Byn8VY+lYsxL JOG2NvDt4rj2o/bvAVZc2GD+4e1JaqvKz2JOwIEfC+6mcQln5/so6rXJGVlPjEWJw5AN io8xlihLtUuiWhKAOd0gVhc1BHfq/y9p+aOMDKZ8D9j2hjYhoPrJ2MAZ5TmQssj/MniU YprQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=tfdFv/a+uMiR6L3JhyloRU8+aUg1/bmzQFTApQLPVes=; b=FAs10xr53Uk8RbH83lE1KpdLPUpD8jLI+6Co+JJXC3DBuieIfpCGQXbLSgig3FFr6o /z8am/L3Ee/72ZbQvxS5WldLOl0FYifnlVuf8TzdyRYrVLcxt0B8p8rTs8j4CEkOXLwi QTcUkYCp5X04vEn0NXJqR3NEckCdy1Lzk88qtxMseCtfuexKAYJFvpmpbgvM7qPE6RHe ftisUvmJ+7hbaP0VTRG+8TlsSCo0oJNUDanzMeXyEzpGXSSUyNfqtjra6fvnUeFg+GHk n/d0KSoo3wpEYjyKQhNA318K+Mp0TRPh49TXwKydmtdIQLkziq9hyveQK1O5I4mh8yse KDqw== X-Gm-Message-State: AOAM5327gRwL3iFR0VCShROCD3ObXOj8Gzlw5Azr8jZG0Mv/dg3G2Jzk S/WaBLq1MZNFbvBan2GXnsUKak1+ X-Google-Smtp-Source: ABdhPJxUts+AdAD5r8gdszZgi3IkQLXjuy5iS5EOwLZGe5n9S7IJgd4rzOGyv+F8f6VMIb5weq0PSQ== X-Received: by 2002:a5d:56c6:: with SMTP id m6mr15934429wrw.78.1590429172601; Mon, 25 May 2020 10:52:52 -0700 (PDT) Received: from ?IPv6:2003:ea:8f28:5200:fd94:3db4:1774:4731? (p200300ea8f285200fd943db417744731.dip0.t-ipconnect.de. [2003:ea:8f28:5200:fd94:3db4:1774:4731]) by smtp.googlemail.com with ESMTPSA id 1sm10362786wms.25.2020.05.25.10.52.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 May 2020 10:52:52 -0700 (PDT) Subject: [PATCH net-next 1/4] r8169: sync RTL8168g hw config with vendor driver From: Heiner Kallweit To: Realtek linux nic maintainers , David Miller , Jakub Kicinski Cc: "netdev@vger.kernel.org" References: Message-ID: <82c9a91e-8132-2421-ac84-a92da10fe18e@gmail.com> Date: Mon, 25 May 2020 19:49:15 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Sync hw config for RTL8168g with r8168 vendor driver. Signed-off-by: Heiner Kallweit --- drivers/net/ethernet/realtek/r8169_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index 79090aefa..d034a57a0 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -3019,6 +3019,7 @@ static void rtl_hw_start_8168g(struct rtl8169_private *tp) rtl_eri_write(tp, 0xc0, ERIAR_MASK_0011, 0x0000); rtl_eri_write(tp, 0xb8, ERIAR_MASK_0011, 0x0000); + rtl_eri_set_bits(tp, 0x0d4, 0x1f80); rtl8168_config_eee_mac(tp); From patchwork Mon May 25 17:52:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 218584 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA3C3C433E0 for ; Mon, 25 May 2020 17:52:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BB82320723 for ; Mon, 25 May 2020 17:52:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="rQ8jVsTU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389097AbgEYRw6 (ORCPT ); Mon, 25 May 2020 13:52:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389063AbgEYRw5 (ORCPT ); Mon, 25 May 2020 13:52:57 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3888BC061A0E for ; Mon, 25 May 2020 10:52:57 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id r15so466702wmh.5 for ; Mon, 25 May 2020 10:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=1dlDdoVuRpCznObQ86hCt3JA7rypuAfLbNjCOYmVt4Q=; b=rQ8jVsTUsvLlKYXCyA0lsnWFcLQMnpN5MNGRBhDGEtwcef0ckirCLuXcZt34GWH0PT BBf9qRHiIcp0zcaTjroAmH0ESsh5p0OBAAnj4+MqzY5IvEfjm16Gkk/gWHOlxW89kA50 /LWzjHRoAvNgcyLT4LBR76C/rXgZ+Ngg82BTQHOt84yeF46KoEUeYum3KPIoSM4O6ZR1 au2ImICyygYS+VwVdqmCVITweNmSjSHpU3LzTW6Z7/nudXpzqPk/H97hdVYfrB8oTxcp fbqLhdoW3Y/OUGg4TESpmRtKnDEqCJJhr4VjVbjNpB9VYnvalbkP1v0XuO+KniYqZGVl 94fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1dlDdoVuRpCznObQ86hCt3JA7rypuAfLbNjCOYmVt4Q=; b=hGgtKXLluGCCPvwtxqIFqSZ5XriedLCcM0TZQWT9X7pTSUzP81dYLYvDpTdFqSvAP4 6ln2JX6M5sgx5M77DegXQfuqkA0JbWGr3czIQFBd5JgICgtjKuOtTRlIZQpn7CWTwh/j lkO+pBGBOPxwv3z4M47dC4JPgASLiJy28Md/c2FojDaFiZfFxLmBjyAKYR4Kxqc0JF1M pKSwpTbDWaIyC0tJ3VtqS8whxIT01mlIDShDFWM8/DhAG7okb/IZ3dXvNdlgZynNVMpY Dplx9M0Vd/ZFvSMhDocmYaQTfuRsS3u/hwQ/3GrdXBCt1zBWEm7bHaJjheszu3UbrwP6 dSqg== X-Gm-Message-State: AOAM5324A7uldx8xR5Vgf9xRIf49j0tttTsTPak2uCt93htkmHqaI5L3 fsVlo8VR1lVLdoWijpiuFLSoE2iW X-Google-Smtp-Source: ABdhPJwFZbpiP98Flsl1TV6BN9APdZX9qkB9LmE4+IODmcZzjXBBkaYO2UDkKDICWQlsKFZ+e6FP0A== X-Received: by 2002:a05:600c:1403:: with SMTP id g3mr27756742wmi.51.1590429175471; Mon, 25 May 2020 10:52:55 -0700 (PDT) Received: from ?IPv6:2003:ea:8f28:5200:fd94:3db4:1774:4731? (p200300ea8f285200fd943db417744731.dip0.t-ipconnect.de. [2003:ea:8f28:5200:fd94:3db4:1774:4731]) by smtp.googlemail.com with ESMTPSA id u7sm13397164wrm.23.2020.05.25.10.52.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 May 2020 10:52:55 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH net-next 4/4] r8169: sync RTL8168f/RTL8411 hw config with vendor driver To: Realtek linux nic maintainers , David Miller , Jakub Kicinski Cc: "netdev@vger.kernel.org" References: Message-ID: <6ce5e2a4-8fd0-c2b4-fd98-0d3ef158fe2f@gmail.com> Date: Mon, 25 May 2020 19:52:27 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Sync hw config for RTL8168f/RTL8411 with r8168 vendor driver. Signed-off-by: Heiner Kallweit --- drivers/net/ethernet/realtek/r8169_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index dfb07df47..17c564457 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -2953,11 +2953,11 @@ static void rtl_hw_start_8168f(struct rtl8169_private *tp) rtl_set_def_aspm_entry_latency(tp); rtl_eri_write(tp, 0xc0, ERIAR_MASK_0011, 0x0000); - rtl_eri_write(tp, 0xb8, ERIAR_MASK_0011, 0x0000); + rtl_eri_write(tp, 0xb8, ERIAR_MASK_1111, 0x0000); rtl_set_fifo_size(tp, 0x10, 0x10, 0x02, 0x06); rtl_reset_packet_filter(tp); rtl_eri_set_bits(tp, 0x1b0, BIT(4)); - rtl_eri_set_bits(tp, 0x1d0, BIT(4)); + rtl_eri_set_bits(tp, 0x1d0, BIT(4) | BIT(1)); rtl_eri_write(tp, 0xcc, ERIAR_MASK_1111, 0x00000050); rtl_eri_write(tp, 0xd0, ERIAR_MASK_1111, 0x00000060); @@ -2986,7 +2986,7 @@ static void rtl_hw_start_8168f_1(struct rtl8169_private *tp) rtl_ephy_init(tp, e_info_8168f_1); - rtl_w0w1_eri(tp, 0x0d4, 0x0c00, 0xff00); + rtl_eri_set_bits(tp, 0x0d4, 0x1f00); } static void rtl_hw_start_8411(struct rtl8169_private *tp)