From patchwork Thu Jun 6 19:44:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 2683291 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 55EA33FD4E for ; Thu, 6 Jun 2013 19:44:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753313Ab3FFToY (ORCPT ); Thu, 6 Jun 2013 15:44:24 -0400 Received: from mail-la0-f45.google.com ([209.85.215.45]:39555 "EHLO mail-la0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753290Ab3FFToX (ORCPT ); Thu, 6 Jun 2013 15:44:23 -0400 Received: by mail-la0-f45.google.com with SMTP id fr10so2981153lab.18 for ; Thu, 06 Jun 2013 12:44:22 -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=gxaRgI43Ky5JjMiXVWaImM6IdRN+uDIqvS1KUl5+tdJBuBg89D0W1bQzxq89gdmNFq xKZ/ALFf4YMmWHGpRp5UiiR3x4SZMcxzfe88tYC0GybIHEg77607bnCLpo92sR3L8jPl 9m6M7AWhVlolk8vHl1YHczV6YJ1qAjf+9BlkSm9FnSCMHmt2vBx8r7oWhEmpe4n7Nb6w /nyT/pRUOn6D9XYFnFQFg9DqiTtK1c1gbk1VysjLnIw9OjLHYU2LpPB0SoIF3HZTpfF2 /+dTYF+tVLjI9MWc16N2nKy1xP3pZU84Bla2UaeVVIdHxcWvjbMpffQ68PXiD0284s6y ccag== X-Received: by 10.152.116.7 with SMTP id js7mr18607052lab.7.1370547862044; Thu, 06 Jun 2013 12:44:22 -0700 (PDT) Received: from wasted.dev.rtsoft.ru (ppp91-76-148-37.pppoe.mtu-net.ru. [91.76.148.37]) by mx.google.com with ESMTPSA id p6sm20315476lbv.15.2013.06.06.12.44.20 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 06 Jun 2013 12:44:21 -0700 (PDT) From: Sergei Shtylyov Organization: Cogent Embedded To: netdev@vger.kernel.org Subject: [PATCH v5 2/8] sh_eth: use EDSR_ENALL to set EDSR Date: Thu, 6 Jun 2013 23:44:27 +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: <201306062339.21353.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201306062339.21353.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201306062344.28234.sergei.shtylyov@cogentembedded.com> X-Gm-Message-State: ALoCoQkyJDB1MCwqvi1QomEUWWPU5ESOX4sKzNIoDyjgsSRYxZ3L6W8jx5geHCzkKXIU5IFVU+NZ 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);