From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b7nBR-0004Ja-1e for barebox@lists.infradead.org; Tue, 31 May 2016 17:10:27 +0000 Received: by mail-pf0-x242.google.com with SMTP id f144so19580652pfa.2 for ; Tue, 31 May 2016 10:10:04 -0700 (PDT) From: Andrey Smirnov Date: Tue, 31 May 2016 10:09:30 -0700 Message-Id: <1464714580-31488-12-git-send-email-andrew.smirnov@gmail.com> In-Reply-To: <1464714580-31488-1-git-send-email-andrew.smirnov@gmail.com> References: <1464714580-31488-1-git-send-email-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 11/21] e1000: Simplify EEPROM init for e1000_80003es2lan To: barebox@lists.infradead.org Cc: Andrey Smirnov That chip specifies read access uising EERD via use_eerd, which means that none of the more "advanced" EEPROM parameters will be used for reads, so remove them. Signed-off-by: Andrey Smirnov --- drivers/net/e1000/eeprom.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/net/e1000/eeprom.c b/drivers/net/e1000/eeprom.c index e4ef5f9..63e84c1 100644 --- a/drivers/net/e1000/eeprom.c +++ b/drivers/net/e1000/eeprom.c @@ -369,13 +369,6 @@ int32_t e1000_init_eeprom_params(struct e1000_hw *hw) break; case e1000_80003es2lan: eeprom->type = e1000_eeprom_spi; - eeprom->opcode_bits = 8; - eeprom->delay_usec = 1; - if (eecd & E1000_EECD_ADDR_BITS) - eeprom->address_bits = 16; - else - eeprom->address_bits = 8; - eeprom->use_eerd = true; break; case e1000_igb: -- 2.5.5 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox