From patchwork Wed Jan 10 10:55:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Faiz Abbas X-Patchwork-Id: 858223 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="LlG9b3Qp"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3zGmGF5V1Pz9ryv for ; Wed, 10 Jan 2018 21:58:45 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755180AbeAJKzC (ORCPT ); Wed, 10 Jan 2018 05:55:02 -0500 Received: from lelnx193.ext.ti.com ([198.47.27.77]:58815 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755126AbeAJKyy (ORCPT ); Wed, 10 Jan 2018 05:54:54 -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 w0AAsbO6015489; Wed, 10 Jan 2018 04:54:37 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1515581677; bh=TIyaw4rJk53XHfd/ZbD4wvwPvVPIyg551yc46RSpIgI=; h=From:To:CC:Subject:Date; b=LlG9b3QpQ8h2znXXe21bZe1SZAdcignoMIxrhh2j3fNwYiWIJbJ5TD0p86veV17Q0 X1Ek3LHn7BUbWNq4Q7Mddd2u+Prao5txDR9NMUPiPiGJPw+lBw80Cyr+CibFPWuLR3 KCS2+ibm7NR66qP/LF/v9xamQcFOqDmVAmyy3G/I= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w0AAsbbi014955; Wed, 10 Jan 2018 04:54:37 -0600 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Wed, 10 Jan 2018 04:54:36 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Wed, 10 Jan 2018 04:54:36 -0600 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w0AAsVfJ026375; Wed, 10 Jan 2018 04:54:32 -0600 From: Faiz Abbas To: , , , CC: , , , , , , , , , , , Subject: [PATCH v7 0/8] Add MCAN Support for Dra76 platform Date: Wed, 10 Jan 2018 16:25:17 +0530 Message-ID: <1515581725-29242-1-git-send-email-faiz_abbas@ti.com> X-Mailer: git-send-email 2.7.4 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 patch series adds support for M_CAN on the TI Dra76 platform. Device tree patches will be sent separately. A bunch of patches were sent before by Franklin Cooper . I have clubbed the series together and rebased to the latest kernel. v7 changes: Added support for bitrate_max to be read from the netlink interface. Moved allocation of netdevice to probe. Cleaned up the allocator function. Moved enabling/disabling of clocks to pm_runtime callbacks. Minor format changes. patch 5 depends on patch 4 which in turn depends on patch 3. v6 changes: Dropped the patches to make hclk optional. Drivers which enable hclk as the interface clock using pm_runtime calls must still provide a hclk in the clocks property. Support higher speed CAN-FD bitrate: The community decided that data sampling point be used for the secondary sampling point here https://patchwork.kernel.org/patch/9909845/ Faiz Abbas (2): can: m_can: Remove check for version when allocating m_can net device can: m_can: Move allocation of net device to probe Franklin S Cooper Jr (6): can: dev: Add support for limiting configured bitrate can: m_can: Add call to of_can_transceiver can: m_can: Add PM Support can: m_can: Support higher speed CAN-FD bitrates dt-bindings: can: m_can: Document new can transceiver binding dt-bindings: can: can-transceiver: Document new binding .../bindings/net/can/can-transceiver.txt | 24 +++ .../devicetree/bindings/net/can/m_can.txt | 9 ++ drivers/net/can/dev.c | 45 +++++- drivers/net/can/m_can/m_can.c | 169 ++++++++++++++------- include/linux/can/dev.h | 8 + include/uapi/linux/can/netlink.h | 1 + 6 files changed, 202 insertions(+), 54 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/can/can-transceiver.txt