From patchwork Tue Jun 3 19:42:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4290361 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 087C6BEEA7 for ; Tue, 3 Jun 2014 19:42:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3BEEC2026C for ; Tue, 3 Jun 2014 19:42:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D5B1120253 for ; Tue, 3 Jun 2014 19:42:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932626AbaFCTmY (ORCPT ); Tue, 3 Jun 2014 15:42:24 -0400 Received: from mail-la0-f41.google.com ([209.85.215.41]:48270 "EHLO mail-la0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753996AbaFCTmY (ORCPT ); Tue, 3 Jun 2014 15:42:24 -0400 Received: by mail-la0-f41.google.com with SMTP id e16so3843811lan.28 for ; Tue, 03 Jun 2014 12:42:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:subject:cc:from:organization:date :mime-version:content-type:content-transfer-encoding:message-id; bh=s9/xlHDGcqIZLmcvXOLYAcLoXcmSIxwvTUzE8LnD8PU=; b=lFNHMmj8xIXJug11tRHeD8xBWo1dLNdt+adKyYxKFzDIdBNPJVjsSDdTlH7aFy4ScD u39TxxjAK+SvesvJEI+ZWIEQxGoEjvOcmtulK74wGzuoqLVIcQORwMN8S4QSra0ekPsF I4V5V+l0uhcfzN2QLsOfmXMHtIWllbBP4ShhXdHHEVEDXDOF/kTZnyVERvAkhr6c7Cdx 9EJ+XnexOkoORk2NpTxZLghDHXg33+DCpeB18+Z1ol3CoO9/Y602R/704HEeEvYIoZFY DHKIaBKdCKYbu8pe5oAdXxh6fHVeJT3KnvO2fcFt7oIWwlj8YU7p4GnpmbS83CgbuwqA +zlw== X-Gm-Message-State: ALoCoQnmH4YPwkUIjGnD0/9Vqbazx++ZkBrqahhpQIRo8iXa+stveWvvI34HofxtVHfDONIkUm4N X-Received: by 10.152.205.106 with SMTP id lf10mr36427511lac.21.1401824542409; Tue, 03 Jun 2014 12:42:22 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp23-103.pppoe.mtu-net.ru. [81.195.23.103]) by mx.google.com with ESMTPSA id n3sm153266lan.3.2014.06.03.12.42.21 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 03 Jun 2014 12:42:21 -0700 (PDT) To: netdev@vger.kernel.org Subject: [PATCH] sh_eth: fix SH7619/771x support Cc: linux-sh@vger.kernel.org, yoshihiro.shimoda.uh@renesas.com From: Sergei Shtylyov Organization: Cogent Embedded Date: Tue, 3 Jun 2014 23:42:26 +0400 MIME-Version: 1.0 Message-Id: <201406032342.27160.sergei.shtylyov@cogentembedded.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 4a55530f38e4 (net: sh_eth: modify the definitions of register) managed to leave out the E-DMAC register entries in sh_eth_offset_fast_sh3_sh2[], thus totally breaking SH7619/771x support. Add the missing entries using the data from before that commit. Signed-off-by: Sergei Shtylyov Acked-by: Yoshihiro Shimoda --- The patch is against Dave Miller's 'net.git' repo. Although there have been no complaints during 3+ years of this being broken, I think it's probably worth queuing the patch for the stable trees... drivers/net/ethernet/renesas/sh_eth.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: net/drivers/net/ethernet/renesas/sh_eth.c =================================================================== --- net.orig/drivers/net/ethernet/renesas/sh_eth.c +++ net/drivers/net/ethernet/renesas/sh_eth.c @@ -307,6 +307,27 @@ static const u16 sh_eth_offset_fast_sh4[ }; static const u16 sh_eth_offset_fast_sh3_sh2[SH_ETH_MAX_REGISTER_OFFSET] = { + [EDMR] = 0x0000, + [EDTRR] = 0x0004, + [EDRRR] = 0x0008, + [TDLAR] = 0x000c, + [RDLAR] = 0x0010, + [EESR] = 0x0014, + [EESIPR] = 0x0018, + [TRSCER] = 0x001c, + [RMFCR] = 0x0020, + [TFTR] = 0x0024, + [FDR] = 0x0028, + [RMCR] = 0x002c, + [EDOCR] = 0x0030, + [FCFTR] = 0x0034, + [RPADIR] = 0x0038, + [TRIMD] = 0x003c, + [RBWAR] = 0x0040, + [RDFAR] = 0x0044, + [TBRAR] = 0x004c, + [TDFAR] = 0x0050, + [ECMR] = 0x0160, [ECSR] = 0x0164, [ECSIPR] = 0x0168,