From patchwork Wed Jun 5 21:11:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 2674131 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 68D5A40077 for ; Wed, 5 Jun 2013 21:11:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932319Ab3FEVLO (ORCPT ); Wed, 5 Jun 2013 17:11:14 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:39909 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932258Ab3FEVLO (ORCPT ); Wed, 5 Jun 2013 17:11:14 -0400 Received: by mail-lb0-f174.google.com with SMTP id x10so338164lbi.33 for ; Wed, 05 Jun 2013 14:11:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id:x-gm-message-state; bh=c4Y+vMLgqWoKOkMgiXTgOcazxspGEJ4LXI4hRVAB1oc=; b=jqH1sLFkTklXvtqGcD74OWUhERxgN1StKXeGBGIioMGOuiBwVkVasjEYRQG0URpYAF XU6QdkU5VFA05IHxOFXhldl3HuPYbw/00qu1z+NArNP5t9MXYf9SlryGQ8PehtwcHMdf 4qARoNnrcryAp5DlLrehzSssxzQGfqDHHTRYwDUhJzRarnqHDMQXAoh1RP3n6kT1K0O5 lN2ANup/sFOC075gnK4I5X1b3NPSJzXvgBR64H0le+e42nc/Sl1+MxLkqy7aLyfT5ddZ X3+gq8qOyEtmFSlzUjwLm8WJCJ6Er4s6BT/5dhe2Gbs+T2TYnZiDWiKnJUGcBzDegmP7 /0hw== X-Received: by 10.112.18.164 with SMTP id x4mr15964747lbd.127.1370466672465; Wed, 05 Jun 2013 14:11:12 -0700 (PDT) Received: from wasted.dev.rtsoft.ru (ppp91-76-88-205.pppoe.mtu-net.ru. [91.76.88.205]) by mx.google.com with ESMTPSA id p16sm991268lbi.13.2013.06.05.14.11.10 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 05 Jun 2013 14:11:11 -0700 (PDT) From: Sergei Shtylyov Organization: Cogent Embedded To: netdev@vger.kernel.org Subject: [PATCH v4 2/8] sh_eth: use EDSR_ENALL to set EDSR Date: Thu, 6 Jun 2013 01:11:17 +0400 User-Agent: KMail/1.13.5 (Linux/2.6.32.26-175.fc12.i686.PAE; KDE/4.4.5; i686; ; ) Cc: nobuhiro.iwamatsu.yj@renesas.com, linux-sh@vger.kernel.org References: <201306060106.51082.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201306060106.51082.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201306060111.17880.sergei.shtylyov@cogentembedded.com> X-Gm-Message-State: ALoCoQmpPuELxeCpnjpoaixR/eHb8FrZ6WkzUA/egXK+ANRcgRuQaY0QffXphaQu9zK1bDBjPlnK Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Nobuhiro Iwamatsu Use now always available EDSR_ENALL instead of the bare number to set EDSR. Signed-off-by: Nobuhiro Iwamatsu [Sergei: added the changelog, reworded the subject, changing the prefix.] Signed-off-by: Sergei Shtylyov --- Changes in version 4: - added the changelog; - reworded the subject, changing the prefix. drivers/net/ethernet/renesas/sh_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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-next/drivers/net/ethernet/renesas/sh_eth.c =================================================================== --- net-next.orig/drivers/net/ethernet/renesas/sh_eth.c +++ net-next/drivers/net/ethernet/renesas/sh_eth.c @@ -523,7 +523,7 @@ static int sh_eth_reset(struct net_devic int ret = 0; if (sh_eth_is_gether(mdp)) { - sh_eth_write(ndev, 0x03, EDSR); + sh_eth_write(ndev, EDSR_ENALL, EDSR); sh_eth_write(ndev, sh_eth_read(ndev, EDMR) | EDMR_SRST_GETHER, EDMR);