From patchwork Thu Feb 14 18:27:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 1042346 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@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; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="NouO1P82"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 440lKF2VDQz9s7T for ; Fri, 15 Feb 2019 05:29:05 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393819AbfBNS2P (ORCPT ); Thu, 14 Feb 2019 13:28:15 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:44138 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727593AbfBNS2P (ORCPT ); Thu, 14 Feb 2019 13:28:15 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x1EIS6js065260; Thu, 14 Feb 2019 12:28:06 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1550168887; bh=Bv2qskVEC6rIqwOJ9GpChKiHBGnkKp3/CuMKmVIOA+I=; h=From:To:CC:Subject:Date; b=NouO1P82xbk2tb+yvy+/FmVKd6DygBD0fbtqmzgF5eZ9awDUC3uyXbbifoKBm4cQg Zb+OYXArlgOBiq44DvmrJc6E8/ouGqaxQgx141jdZqJW0CXCBD8m648aIqJ1Zr+QtP R6XJ+WJd+TeO0kLuVs0gKJguBGTUUDffQ+0+ZyU4= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x1EIS6k3085438 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Feb 2019 12:28:06 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Thu, 14 Feb 2019 12:28:06 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Thu, 14 Feb 2019 12:28:06 -0600 Received: from legion.dal.desgin.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x1EIS6xW029440; Thu, 14 Feb 2019 12:28:06 -0600 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.120.181]) by legion.dal.desgin.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id x1EIS5U11240; Thu, 14 Feb 2019 12:28:05 -0600 (CST) From: Dan Murphy To: , , CC: , , , Dan Murphy Subject: [PATCH v5 0/5] M_CAN Framework re-write Date: Thu, 14 Feb 2019 12:27:49 -0600 Message-ID: <20190214182754.30721-1-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 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 Hello OK I did not give up on this patch series just got a little preoccupied with some other kernel work. But here is the update per the comments. It should be understood I broke these out for reviewability. For instance the first patch does not compile on its own as including this patch should not change the current functionality and it pulls all the io-mapped code from the m_can base file to a platfrom file. The next patch "Migrate the m_can code to use the framework" is the change to the kernel for the io-mapped conversion from a flat file to use the framework. Finally the rename patch just renames the m_can_priv to m_can_classdev. I broke this change out specifically for readability of the migration patch per comments on the code. AFAIC the first 3 patches can all be squashed into a single patch. Or the first 2 patches in the series can be re-arranged but then m_can functionality is affected in the migration patch. Again the first 3 patches here are all just for readability and review purposes. Dan Dan Murphy (5): can: m_can: Create a m_can platform framework can: m_can: Migrate the m_can code to use the framework can: m_can: Rename m_can_priv to m_can_classdev dt-bindings: can: tcan4x5x: Add DT bindings for TCAN4x5X driver can: tcan4x5x: Add tcan4x5x driver to the kernel .../devicetree/bindings/net/can/tcan4x5x.txt | 37 + drivers/net/can/m_can/Kconfig | 14 +- drivers/net/can/m_can/Makefile | 2 + drivers/net/can/m_can/m_can.c | 788 +++++++++--------- drivers/net/can/m_can/m_can.h | 159 ++++ drivers/net/can/m_can/m_can_platform.c | 198 +++++ drivers/net/can/m_can/tcan4x5x.c | 531 ++++++++++++ 7 files changed, 1320 insertions(+), 409 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/can/tcan4x5x.txt create mode 100644 drivers/net/can/m_can/m_can.h create mode 100644 drivers/net/can/m_can/m_can_platform.c create mode 100644 drivers/net/can/m_can/tcan4x5x.c