From patchwork Sun Jul 17 13:09:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 649255 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3rsmqD242Sz9s65 for ; Sun, 17 Jul 2016 23:09:28 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=cogentembedded-com.20150623.gappssmtp.com header.i=@cogentembedded-com.20150623.gappssmtp.com header.b=PaG/bVlZ; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751174AbcGQNJZ (ORCPT ); Sun, 17 Jul 2016 09:09:25 -0400 Received: from mail-lf0-f45.google.com ([209.85.215.45]:35054 "EHLO mail-lf0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751108AbcGQNJX (ORCPT ); Sun, 17 Jul 2016 09:09:23 -0400 Received: by mail-lf0-f45.google.com with SMTP id f93so115504744lfi.2 for ; Sun, 17 Jul 2016 06:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=G7GAfe3baRgotawslsYileWfikyiLJgjKnY6Sx8x6Ho=; b=PaG/bVlZCEeacKRlK6qkHsiMW3tQEk3GQ5U/InjRMe7d+7GQZw9Gsk78y+m4p3q4zN LAnO0SF9QkWZ87tK6m0A61TID4tb7HoilHD2iK+VrhufBU4fDRsh7NuagFU4wa4ZHcxH h5GL7d7dwaGjNAJKz5++OK2tqj7Cjnq51DgPc527iTLVgoeYOS6TjDmu7kCc0sSk1jWK U9YntnLIlQD7yeUsYpm+5NwAonsZt0J9n5+myG+ze6dzW4lKMuEThCZiPQYiGCkrbmPJ /JREg60wPsSuk/HP/Zz2MYzn8BGlLjhNRug6P1iWd58KE2aODfeOJj5QXsJweXLhC4GU GmZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=G7GAfe3baRgotawslsYileWfikyiLJgjKnY6Sx8x6Ho=; b=dBt6Es/OMAdWSZ/TimRqZbQYPRoB6XrT4WoxsFCwdPv2XlGVbgoT4mq2GWfusT8gVO +lcjYet58FiUT8xpL+CaMp9T/KXzkVnHzmsDJVr7qXJTVOXgFOIar3SUBPWVCqxH1ErD wcUBr/fqWAh7kQtDt/7LCizXhCvQVZTuqXBYdH3fipFX6L3wAogonk+c2JoIiJdgkPON fUUi9PEmaITItY3Mq73jRhIm/n71IZBEMg9GsAhP4hicDqMEDa1PJR9izraXjbO8fOPX eIKXfwasfaVF4DUXsZJimB8scUrU2wW8g4//7vJd3lB7Esy21YlVN1QTleTVznpPe6uE RlKg== X-Gm-Message-State: ALyK8tKWh1rjxAVqh4MSHZYU+5LJ2cHHx17z/UYhaS12+nz9fl/+3JbTsFozOKKFKH02lg== X-Received: by 10.25.83.85 with SMTP id h82mr236321lfb.97.1468760961996; Sun, 17 Jul 2016 06:09:21 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.87.153]) by smtp.gmail.com with ESMTPSA id u14sm1687189lja.11.2016.07.17.06.09.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Jul 2016 06:09:20 -0700 (PDT) From: Sergei Shtylyov To: netdev@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org Subject: [PATCH 2/2] sh_eth: fix DMA channel misreporting Date: Sun, 17 Jul 2016 16:09:19 +0300 Message-ID: <3458874.GvGScMe9De@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.4.13-200.fc22.x86_64; KDE/4.14.17; x86_64; ; ) In-Reply-To: <8592210.gMERdmUlCp@wasted.cogentembedded.com> References: <8592210.gMERdmUlCp@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Currently 'ifconfig' for the Ethernet devices handled by this driver shows "DMA chan: ff" while the driver doesn't use any DMA channels. Not assigning a value to 'net_device::dma' causes 'ifconfig' to correctly not report a DMA channel. Signed-off-by: Sergei Shtylyov --- drivers/net/ethernet/renesas/sh_eth.c | 1 - 1 file changed, 1 deletion(-) 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 @@ -2996,7 +2996,6 @@ static int sh_eth_drv_probe(struct platf if (devno < 0) devno = 0; - ndev->dma = -1; ret = platform_get_irq(pdev, 0); if (ret < 0) goto out_release;