From patchwork Mon Nov 2 22:28:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 7538471 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 00BFDBEEA4 for ; Mon, 2 Nov 2015 22:28:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2D02920627 for ; Mon, 2 Nov 2015 22:28:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 34B7C205E7 for ; Mon, 2 Nov 2015 22:28:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753440AbbKBW2N (ORCPT ); Mon, 2 Nov 2015 17:28:13 -0500 Received: from mail-lf0-f46.google.com ([209.85.215.46]:36106 "EHLO mail-lf0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753354AbbKBW2M (ORCPT ); Mon, 2 Nov 2015 17:28:12 -0500 Received: by lffz202 with SMTP id z202so69761502lff.3 for ; Mon, 02 Nov 2015 14:28:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded_com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:organization:user-agent :mime-version:content-transfer-encoding:content-type; bh=Z6tr0gXvwmVIDy18C81mzO5ybwSl/hjGalqMwNE7r34=; b=Y28TxiCkeJhb5AgFkkW853fr1uyCWTYtEBvbkfQ7dfgY24a0Egk38PFbbhCgRgWi/e asDktpxVvuw2olNSqpAbGXB7TW4dGn/PHqXwLEpWOaVMQ48aOaYQz5IygLaT1U7NE/I5 OQO793TvfOl/c4A23I6M19o2fsdbcoK7u9QRXOkCno6TqQ8u/DraKTrcEKED8qJYcOui Ie1DUx3cyR0NFJVPZhJASIJ7PHB1QBWXU/B2uFAKVAjKrfROMLZPH4BM9ktv1gWAAIyB qhJaIxvEhlKWwgDNmW1Beicw75vJZlnVwwUX2qbUOWAvH4MI+SVHDgo4I4ObZPm3VP49 5BIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:organization :user-agent:mime-version:content-transfer-encoding:content-type; bh=Z6tr0gXvwmVIDy18C81mzO5ybwSl/hjGalqMwNE7r34=; b=Xr6EqtfownlyQGyusIMK/9hKCeBOsV/HpUKfQam0Pw//SBgP7fLovn3xn2wUmbe/9c V+3s783jyXk9hUrrKS7yLW/duWcr0+j+Sb9uqPmNZClaAbH4/VVWGb1iQrD0m+OfOvTO J6lOfYYKgla3ZH1jyli6ZSzPwHJ/y3z6iyevSqGF3cJhKgAhIvYmyiDEKp+Gx9PWA2rt gpcxyT40e76YPXYZGJ8mpYt2hPceVbiJ84X/ysHnf62b6VQgey3gFxVEZ4iEMi2Qpdwl mgVVnAogPHFcaJpOE529aAa4H/D7v3F4PSn9xX6xpTpoUAPAWoINzsQrUTdvX2C+/Dby lV3w== X-Gm-Message-State: ALoCoQmuJmA0DqToXTbtPSAwM0vqzk19LpQbo79G9tz70Yjg9C+RSDeuqdnmr265UboUqSEo8mNI X-Received: by 10.112.168.10 with SMTP id zs10mr11301910lbb.101.1446503290338; Mon, 02 Nov 2015 14:28:10 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.84.94]) by smtp.gmail.com with ESMTPSA id pd5sm3184989lbc.24.2015.11.02.14.28.09 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Nov 2015 14:28:09 -0800 (PST) From: Sergei Shtylyov To: netdev@vger.kernel.org, linux-sh@vger.kernel.org Subject: [PATCH] sh_eth: fix typo in RX descriptor bit name Date: Tue, 03 Nov 2015 01:28:07 +0300 Message-ID: <2943003.kyUQtQdRCT@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.9 (Linux/4.2.3-200.fc22.x86_64; KDE/4.14.11; x86_64; ; ) MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable 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 The correct name of the RX descriptor 0 bit 30 is RDLE (receive descriptor list end), not RDEL. Signed-off-by: Sergei Shtylyov --- The patch is against the Dave Miller's 'net-next.git' repo. drivers/net/ethernet/renesas/sh_eth.c | 4 ++-- drivers/net/ethernet/renesas/sh_eth.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) -- 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 @@ -1173,7 +1173,7 @@ static void sh_eth_ring_format(struct ne mdp->dirty_rx = (u32) (i - mdp->num_rx_ring); /* Mark the last entry as wrapping the ring. */ - rxdesc->status |= cpu_to_edmac(mdp, RD_RDEL); + rxdesc->status |= cpu_to_edmac(mdp, RD_RDLE); memset(mdp->tx_ring, 0, tx_ringsize); @@ -1547,7 +1547,7 @@ static int sh_eth_rx(struct net_device * wmb(); /* RACT bit must be set after all the above writes */ if (entry >= mdp->num_rx_ring - 1) rxdesc->status |= - cpu_to_edmac(mdp, RD_RACT | RD_RFP | RD_RDEL); + cpu_to_edmac(mdp, RD_RACT | RD_RFP | RD_RDLE); else rxdesc->status |= cpu_to_edmac(mdp, RD_RACT | RD_RFP); Index: net-next/drivers/net/ethernet/renesas/sh_eth.h =================================================================== --- net-next.orig/drivers/net/ethernet/renesas/sh_eth.h +++ net-next/drivers/net/ethernet/renesas/sh_eth.h @@ -285,7 +285,7 @@ enum DMAC_IM_BIT { /* Receive descriptor bit */ enum RD_STS_BIT { - RD_RACT = 0x80000000, RD_RDEL = 0x40000000, + RD_RACT = 0x80000000, RD_RDLE = 0x40000000, RD_RFP1 = 0x20000000, RD_RFP0 = 0x10000000, RD_RFE = 0x08000000, RD_RFS10 = 0x00000200, RD_RFS9 = 0x00000100, RD_RFS8 = 0x00000080,