From patchwork Thu Jan 19 16:58:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 91981 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp378664qgi; Thu, 19 Jan 2017 09:08:44 -0800 (PST) X-Received: by 10.99.127.71 with SMTP id p7mr11408731pgn.125.1484845723987; Thu, 19 Jan 2017 09:08:43 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si4089908plm.58.2017.01.19.09.08.43; Thu, 19 Jan 2017 09:08:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754006AbdASRHx (ORCPT + 5 others); Thu, 19 Jan 2017 12:07:53 -0500 Received: from mail-lf0-f47.google.com ([209.85.215.47]:35774 "EHLO mail-lf0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753658AbdASRHc (ORCPT ); Thu, 19 Jan 2017 12:07:32 -0500 Received: by mail-lf0-f47.google.com with SMTP id n124so41298949lfd.2 for ; Thu, 19 Jan 2017 09:07:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=gJ2POQ7mVaV7VQtKWIzhr/s5NtIOFxQugguCukcwHfs=; b=Kv9Ol7vIiIxRQoBBLgxM15zZ0EVllVef+w3SjwpEKF0otRnJoptM2sjVNxaC6CN4I0 KwaI7ewXb8kth+5oXKWX6zTMlfpWy1hvLLGDQ8Dk2L1SzxeKkSf7opLDAUuwnvL8d7W2 6B3iqs/cX6d1KiIy1ARlLk9PaQet7NvFDF4pg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=gJ2POQ7mVaV7VQtKWIzhr/s5NtIOFxQugguCukcwHfs=; b=WoBOVzBDUIOd9lUDyAdY+QDcUW1DIsNQUXay5RxP5+psY3yeQgey8ELdgb0sleynnC oWtO9r4s4HgQIplS5E2CfvTQxqNT6hb6AEr0B14ux02U6cV9oTzvku1c1A74QTr/+ydA 2vHEPu8UzeJeyZi03ADWjpExpHlrK0fk3TtEyaITk4waYYykdA41vGFuHD5Z5NkXhapa jYi6a2mRYrC3SKWF03XWzMDBpes6ahWnNyGWB2RY+LHrB480R/ErgJEDFpq25AeTBA9b PIDax4uyD2sfUeOgS9cbWaLy5ei4JbUMucW9DQY9VxkUJpO4WhMKBV5TxdUVOdBLhUVc MOAw== X-Gm-Message-State: AIkVDXKeGqdLvU4upF+LeKoeiMWhAOTivmyD/uSf+L8QoxOTxBO8nCn4f+HmcdCCB61G/AKg X-Received: by 10.25.32.149 with SMTP id g143mr3447466lfg.7.1484845110525; Thu, 19 Jan 2017 08:58:30 -0800 (PST) Received: from khorivan.synapse.com ([2001:67c:2e5c:2011:b088:28ef:5680:e1cf]) by smtp.gmail.com with ESMTPSA id r27sm2162942ljd.14.2017.01.19.08.58.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 08:58:29 -0800 (PST) From: Ivan Khoronzhuk To: mugunthanvnm@ti.com Cc: grygorii.strashko@ti.com, netdev@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Ivan Khoronzhuk Subject: [PATCH v2 0/5] net: ethernet: ti: cpsw: correct common res usage Date: Thu, 19 Jan 2017 18:58:22 +0200 Message-Id: <1484845107-30331-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This series is intended to remove unneeded redundancies connected with common resource usage function. Since v1: - changed name to cpsw_get_usage_count() - added comments to open/closw for cpsw_get_usage_count() - added patch: net: ethernet: ti: cpsw: clarify ethtool ops changing num of descs Based on net-next/master Ivan Khoronzhuk (5): net: ethernet: ti: cpsw: remove dual check from common res usage function net: ethernet: ti: cpsw: don't disable interrupts in ndo_open net: ethernet: ti: cpsw: don't duplicate ndev_running net: ethernet: ti: cpsw: don't duplicate common res in rx handler net: ethernet: ti: cpsw: clarify ethtool ops changing num of descs drivers/net/ethernet/ti/cpsw.c | 200 ++++++++++++++++++----------------------- 1 file changed, 88 insertions(+), 112 deletions(-) -- 2.7.4