From patchwork Fri Dec 1 00:21:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 843277 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="bjsXw1Zw"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3ynw8241Qgz9s03 for ; Fri, 1 Dec 2017 11:27:14 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752218AbdLAA0i (ORCPT ); Thu, 30 Nov 2017 19:26:38 -0500 Received: from lelnx193.ext.ti.com ([198.47.27.77]:44452 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751852AbdLAAV1 (ORCPT ); Thu, 30 Nov 2017 19:21:27 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id vB10LNA8011017; Thu, 30 Nov 2017 18:21:23 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1512087683; bh=r6AI2Ub+BHVVc/UdbbwmLg56KevFQTHsgkKu3Ypg+TU=; h=From:To:CC:Subject:Date; b=bjsXw1ZwCPFshSmsK4rrJvffl9xLafSkxHhjkqrjqlew8drUYj4bxPZDTNn3/GxKz HC/UioQtB/sQ6wThmVyAIIRO52UTI/b+RhZNyC/C9HfoKek6KbxVRwyp4DXSiQ0C6e M4zzk/9dg3+5cQvZcLRbG5fs+1SfR1NPogMwCnXQ= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id vB10LNmT031155; Thu, 30 Nov 2017 18:21:23 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Thu, 30 Nov 2017 18:21:23 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Thu, 30 Nov 2017 18:21:23 -0600 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id vB10LNpv032322; Thu, 30 Nov 2017 18:21:23 -0600 Received: from localhost (uda0226610.dhcp.ti.com [128.247.59.147]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id vB10LN302513; Thu, 30 Nov 2017 18:21:23 -0600 (CST) From: Grygorii Strashko To: "David S. Miller" , CC: Sekhar Nori , , , Ivan Khoronzhuk , Murali Karicheri , Grygorii Strashko Subject: [PATCH net-next 00/11] net: ethernet: ti: cpsw/ale clean up and optimization Date: Thu, 30 Nov 2017 18:21:09 -0600 Message-ID: <20171201002120.13483-1-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.10.5 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This is set of non critical clean ups and optimizations for TI CPSW and ALE drivers. Rebased on top on net-next. Grygorii Strashko (11): net: ethernet: ti: cpsw: drop unused var poll from cpsw_update_channels_res net: ethernet: ti: cpsw: use proper io apis net: ethernet: ti: cpsw: move platform data struct to .c file net: ethernet: ti: cpsw: move mac_hi/lo defines in cpsw.h net: ethernet: ti: cpsw: fix ale port numbers net: ethernet: ti: ale: use proper io apis net: ethernet: ti: ale: disable ale from stop() net: ethernet: ti: ale: optimize ale entry mask bits configuartion net: ethernet: ti: ale: move static initialization in cpsw_ale_create() net: ethernet: ti: ale: use devm_kzalloc in cpsw_ale_create() net: ethernet: ti: ale: fix port check in cpsw_ale_control_set/get drivers/net/ethernet/ti/cpsw.c | 84 +++++++++++++++----------- drivers/net/ethernet/ti/cpsw.h | 23 +------ drivers/net/ethernet/ti/cpsw_ale.c | 109 ++++++++++++++-------------------- drivers/net/ethernet/ti/cpsw_ale.h | 1 - drivers/net/ethernet/ti/netcp_ethss.c | 6 +- 5 files changed, 98 insertions(+), 125 deletions(-)