Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp454303ybl; Fri, 23 Aug 2019 03:28:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4pFdV3qtLUez9aVPkwFpKHiunmvQ8R0Ylrx08fJ3ybMPzUJoSfw8C6XPv+xcQsN2FgU3g X-Received: by 2002:a63:4e05:: with SMTP id c5mr3241017pgb.82.1566556115021; Fri, 23 Aug 2019 03:28:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566556115; cv=none; d=google.com; s=arc-20160816; b=bZy9x6WkGXPiJYkxPEs0dX2ebXqlR2PSSDuzSUkzyMIY1nfZv9yBKeLKE6qTfYiJeE dlExtxkYK5kg16x1dRTlwOKxLqkM90BW8bXWdfZbRxXAi9E7tTqbuuzhdmF1cU1yzjc7 wVwgAK8s+S9geu6KGtMCfStYMacCrtY0+Ppveibd61G0YP2zBfqCz7z5rNY1LxnV7H/1 HNzHI4pz/IKIMkqhq05uqpdndFCaiWjuACLj8q9ns2XXIFj53pTvAPkFY7aMAkYjT/aR VTEZ4as0c1jh4mWSXWETRceTsuklPZ0tuzcBqpzHF8iNtesb8gNv3uG+rCErvbXy1inY 2rng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :authenticated-by; bh=5OgrryTRNfI63Pyj4ink8Z6Amibskiq7cZYcWGJlblo=; b=jp+9KlIJgbDmQPc01dR4Ba+lVqf+x0HeszOyNWaU4X4LuxXxPHASj+aIr2bP9yg1ao WHgNpT9G7K8aH6rOv8u26OWZjqpJfBSlBsIlcU9FaYxaw1EWGP0u1hH3A1nU2r7PG4sJ n0bvdS3y/KrIegFoj/UhXlhJSK+m3Re6cXQcIO8j0U/8Rbyyz/xYs2rH3aUxzPTAStHK /SwlO71biRzdj9hDNsp+c2VSnYQ++uPLmgSdyAcwAG86nzeEuq3BvDmFYenJx+2ApX4b C6hPjtshhqFSx4Or/Ms+4Z2tHiXQUwWaayfC07e89YlRWX3aJADmVl72mniPIw7347M0 2ypA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4si1614418pgh.434.2019.08.23.03.28.19; Fri, 23 Aug 2019 03:28:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733246AbfHWHeL (ORCPT + 99 others); Fri, 23 Aug 2019 03:34:11 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:33740 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbfHWHeL (ORCPT ); Fri, 23 Aug 2019 03:34:11 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x7N7Y96B025710, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTITCASV01.realtek.com.tw[172.21.6.18]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id x7N7Y96B025710 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 23 Aug 2019 15:34:09 +0800 Received: from fc30.localdomain (172.21.177.138) by RTITCASV01.realtek.com.tw (172.21.6.18) with Microsoft SMTP Server id 14.3.468.0; Fri, 23 Aug 2019 15:34:07 +0800 From: Hayes Wang To: CC: , , Hayes Wang Subject: [PATCH net-next v4 0/2] r8152: save EEE Date: Fri, 23 Aug 2019 15:33:39 +0800 Message-ID: <1394712342-15778-311-Taiwan-albertk@realtek.com> X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <1394712342-15778-304-Taiwan-albertk@realtek.com> References: <1394712342-15778-304-Taiwan-albertk@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.177.138] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v4: For patch #2, remove redundant calling of "ocp_reg_write(tp, OCP_EEE_ADV, 0)". v3: For patch #2, fix the mistake caused by copying and pasting. v2: Adjust patch #1. The EEE has been disabled in the beginning of r8153_hw_phy_cfg() and r8153b_hw_phy_cfg(), so only check if it is necessary to enable EEE. Add the patch #2 for the helper function. v1: Saving the settings of EEE to avoid they become the default settings after reset_resume(). Hayes Wang (2): r8152: saving the settings of EEE r8152: add a helper function about setting EEE drivers/net/usb/r8152.c | 182 +++++++++++++++++++++------------------- 1 file changed, 95 insertions(+), 87 deletions(-) -- 2.21.0