Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1044167ybl; Fri, 23 Aug 2019 12:13:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+PqCKVjJSHPPi/LAjZe2KKNmGkQ8TUQqNa8NENcjew2YBd74spxRXhEh0lpwOKm/aeIKL X-Received: by 2002:a63:8ac2:: with SMTP id y185mr3805117pgd.11.1566587581104; Fri, 23 Aug 2019 12:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566587581; cv=none; d=google.com; s=arc-20160816; b=cgd7d6Ujwe89hQ0wYwjf66dRSWJtEbh7EFuRCikhMo5kB2l3xKpJyc7TNTNV4xPuYe Z4Wv4qqR8/x/4NEG05NzlHrbUxjW0DB6tjICxavxsKhaC4H36N8fJu7f/sFrvKH6Ehmq 7iZBGEX5Q+UQxCr21nMyfszW+/qp45+ZDGxnNGhEiM+rBc6OOZSweo1ELPJCqkLjkG/T +73HFDR8ussRJWxhPLgsFmD5tw2EikYJ6f0DnwblVcvvbtNfzOO0JgF6COfAehwLfSYS ufQVKNE+J9FoqCgBbRkgPYkttFVoGrX1x8ze+Ahl/ti9CeQXT3D5DS0NAh4E+F7OY0aJ gV2Q== 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=YKGH+TQwmMEAuAzrappoRN5LwJFtPBqPJn+bOcfy3B4=; b=hcTgk9Hz6ZQwZbJzEBV3OWiQm1OrD62Ac416JYFxqfzTgPxDFTH0NGfuKzRaAzDNXq 8XsZrpSYQTgIc+BTBy5W6LQasWB5yupcDQaUslAH82jKnI1Prx6BWAYBQhtPoslcPEVy wLY29N4gC7Ht9CnUNHxXjmJ8dsvFGrYSV9TvsnQPbhuH+mpriAWKxcXctjEHEIqgrvvZ cMSddvwQHIU0bh2vaMn5Ks1vzifCpH/y4al1eqQ3BOX5WLL8QSk8tfclMowjPRSeQgQw jEZ7QFDYP60uO77kO2mmtDYqqLuJ2MAjmDpKkrvBKKmpXOmL4pSIomVwBZwevruCUaH+ II5A== 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 a3si3345006plc.412.2019.08.23.12.12.45; Fri, 23 Aug 2019 12:13:01 -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 S2404964AbfHWHTa (ORCPT + 99 others); Fri, 23 Aug 2019 03:19:30 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:33174 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392504AbfHWHT1 (ORCPT ); Fri, 23 Aug 2019 03:19:27 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x7N7JPKs022545, 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 x7N7JPKs022545 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 23 Aug 2019 15:19:25 +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:19:23 +0800 From: Hayes Wang To: CC: , , Hayes Wang Subject: [PATCH net-next v3 0/2] r8152: save EEE Date: Fri, 23 Aug 2019 15:18:59 +0800 Message-ID: <1394712342-15778-308-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 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