Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp306816ima; Wed, 24 Oct 2018 01:22:13 -0700 (PDT) X-Google-Smtp-Source: AJdET5fKMM2NMJkF5K+GbzbczjC1miY9XIO0d1Y/mb+IkyE7yQS49zR1LQvqZ5H5UeiIIM0h+VXg X-Received: by 2002:a17:902:22a:: with SMTP id 39-v6mr1625690plc.267.1540369333319; Wed, 24 Oct 2018 01:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540369333; cv=none; d=google.com; s=arc-20160816; b=kYpzzYz+wn/VoUEiNJUlGxTkb8Vr2do1INgpAP8GSPjyTWKaBWgI1XazuQ4BbL/Zy6 xRkGPWnreg6qdq9w7ZXixkbWwPmB8gjHAAIefq+Bcxkbv0Ae6bdiwX9Qk3uTGZ1WME6g q8xQJfZRtjy84oEbMATOPrnr4bfn6TUP/EB+nIYncGFGqBkPHdNPj6ZsHgvdqQ5y+jw3 uXgMKxlE5YbJAYCwez6bElat/UXaag1oXwzPXdymfIKnH0QTz9HCnE8yMQgEuL8AsoRe CAlO+bKSlEzFsEY/V27FMDZDTE/59/qkDnfDJyN3jW5cYY3vEDmh/Bw2Eq7OYj1yRXGj dTwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=6sj/LzP9mvnhnWqoST99wDC7SWWmsXMOqE9/19dX36U=; b=mvmpNRFB+3XIwacvCKidMDs8Z+zoRRCbIZ4rJjkIubB8Y/UEJY4HUOed/pbH2uEzQz KZ/bNrliVGyZHPDSASoVLch5ujjlkDtYITOiAPLOeV5PZ6PxRTHaoWH0pIPjREAivRXl VlZabfzRuu+F1pFpATL1/CAOMkvqWuBAye4Oxhvl558AkEPtUY6ABuiAbYBr0lQQOx4R kYRylnVNTDYUz3ldv8UH7QQEKxamX2GWXgIug68Nms2sP9VBYvrg4x5iJyFxJjJ9WXcs Qp9awxPbSAy6w5yKEXUuDd162EImoiLHqmcoXp9k5w7TFzw/U07XTAmuMdO00KV70Vme kENg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9-v6si4032988pgh.440.2018.10.24.01.21.44; Wed, 24 Oct 2018 01:22:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727449AbeJXQKT (ORCPT + 99 others); Wed, 24 Oct 2018 12:10:19 -0400 Received: from mailproxy05.manitu.net ([217.11.48.69]:33622 "EHLO mailproxy05.manitu.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727173AbeJXQKS (ORCPT ); Wed, 24 Oct 2018 12:10:18 -0400 Received: from [192.168.178.20] (aftr-88-217-180-208.dynamic.mnet-online.de [88.217.180.208]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: wg@grandegger.com) by mailproxy05.manitu.net (Postfix) with ESMTPSA id CA75D1B60075; Wed, 24 Oct 2018 09:43:19 +0200 (CEST) Subject: Re: [RFC PATCH 0/3] M_CAN Framework rework To: Dan Murphy , mkl@pengutronix.de, davem@davemloft.net Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20181010142055.25271-1-dmurphy@ti.com> From: Wolfgang Grandegger Openpgp: preference=signencrypt Autocrypt: addr=wg@grandegger.com; prefer-encrypt=mutual; keydata= xsFNBFtEb5MBEAC5aRjs5jLwjbOaEE6rczZSqck7B3iGK8ldrV8HGSjxb1MAf4VbvDWrzXfA phEgX3e54AnYhnKcf6BA3J9TlSDdUAW7r/ijOFl+TehMz7holgjhlDK41acJ/klwXJotIqby bWqFgFw6o7b8hfbVzPi8Pz/+WOIKaDOb1Keb989mn253RF1yFakgvoQfCyAeVcnO5kcByW17 zbTEHsSduYi0Zir26Oedb2Vtas4SovrEXVh4e2dRdbEbHlI8po3Ih117CuGIPAe2RSfZKY88 8c9m+WsJKtrIDIMY+f5kcHG5mib++u1oTg7wjfFgTr925g2WjzT63YRibW8Vazot9yXquMo2 HYQStmnN9MuAkL/jslnxhGKNwTzpXv6FD2g/9hcLfSjaaCwGzj2j2ucJglJnO1n+ibVB14l2 JLVe+IKJaE1gvm2v9HPsE+o1P4O8I9iCiAbQ6BGUszHADOg7r8CeTQ+AOCypfEZ5l1Hwa3gw V+TtqyCU70U9LA0AKaDZ02vf0hFRWeXV/ErFq878GOXbbVMZu8G5aO0EcCBC75/KQnyi0WEl KVIcyTyxKel/Ext7vUFIkiA16JNWRpS85YDfe9CoEZcZK+nUU268j6Bp5a7MYaF/dZaLT+Du hLA82ry8IkPQvyV5yV+B0PwDM/w7de8zIzMy9YBXU8KGGDmgYQARAQABzSdXb2xmZ2FuZyBH cmFuZGVnZ2VyIDx3Z0BncmFuZGVnZ2VyLmNvbT7CwX8EEwECACkFAltEb5MCGyMFCQlmAYAH CwkIBwMCAQYVCAIJCgsEFgIDAQIeAQIXgAAKCRDwuz7LbZzIUhvED/4vTUqS0c/V5a4hc5Md u/8qkF7qg011tM0lXrZZxMQ8NrjdFuDhUefZ1q59QbLFU9da9D/CRVJUSx6BnY9jkR6lIm9l OGqS9ZlzubGXJCZhv1ONWPwY/i1RXTtauhRy+nkcyJk2Bzs5PWq1i4hWXpX//GfGUbCt+2bX 2+9bmHSPFtZ/M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g7F2vK+Vth+Yp7MlgwYBMUy6D140jrkWrcRxKYfW1BgcKpbG/dh5DhUAvoOzFD7i zHrGK5FhzqJDBwKk7n9jGohf/MJWs2UKai/u4ogZBhhD5JPR8GG6VzO4snWisFLFuAEAEQEA AcLBZQQYAQIADwUCW0RvkwIbDAUJCWYBgAAKCRDwuz7LbZzIUkA3D/wJOvcQ7rTeoRiamOIB kD4n2Jsv8Vti/XfM0DTmhfnWL4y96VzSzNfl+EHAwXE4161qnXxTHnFK1hq7QklNdDiGW3iH nKZUyHUTnlUlCocv8jWtlqrpH0XVtF12JET65mE14Hga6BQ4ECXwU2GcP3202A55EzMj31b/ 59GD3CDIJy7bjQi+pIRuA9ZQRsFas7Od7AWO/nFns2wJ6AJkjXdCUCZ4iOuf82gLK9olDSmd H73Epc6l3jca62L2Lzei405LQSsfOZ06uH2aGPUJX4odUlEF6arm2j+9Q8Vyi4CJ316f2kAa sl7LhAwZtaj8hjl/PUWfd5w47dUBDUZjIRYcdM2TTU3Spgvg3zqXUzur5+r0jkUl2naeiSB1 vwjfIwnPqZOVr9FAXuLbAdUyCCC0ohGLrq5Nsc1A02rxpQHRxTSm2FOdn2jYvuD7JUgkhmUh /TXb8aL6A4hfX7oV4tGq7nSmDOCmgWRmAHAGp85fVq2iylCxZ1kKi8EYCSa28eQzetukFbAx JwmcrUSaCOK+jpHlNY0PkghSIzAE/7Se+c37unJ39xJLkrgehLYmUF7cBeNWhfchu4fAJosM 5mXohGkBKcd5YYmF13imYtAG5/VSmBm/0CFNGFO49MVTNGXGBznrPrWwtPZNwjJdi7JrvEbm 8QEfHnPzgykCs2DOOQ== Message-ID: <8d7fcd11-b537-97c1-ee50-ba30f236b5ec@grandegger.com> Date: Wed, 24 Oct 2018 09:43:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hallo Dan, I will have a closer look later this week. Unfortunately you already renamed file names and structs making the patch almost unreadable. More soon.. Thanks for you patience, Wolfgang. Am 17.10.2018 um 22:21 schrieb Dan Murphy: > Bump > > On 10/10/2018 09:20 AM, Dan Murphy wrote: >> All >> >> This patch series creates a m_can core framework that devices can register >> to. The m_can core manages the Bosch IP and CAN frames. Each device that >> is registered is responsible for managing device specific functions. >> >> This rewrite was suggested in a device driver submission for the TCAN4x5x >> device >> Reference upstream post: >> https://lore.kernel.org/patchwork/patch/984163/ >> >> For instance the TCAN device is a SPI device that uses a specific data payload to >> determine writes and reads. In addition the device has a reset input as well >> as a wakeup pin. The register offset of the m_can registers differs and must >> be set by the device attached to the core. >> >> The m_can core will use iomapped writes and reads as the default mechanism for >> writing and reading. The device driver can provide over rides for this. >> >> This patch series is not complete as it does not handle the CAN interrupts >> nor can perform a CAN write. If this patch series is deemed acceptable I will >> finish debugging the driver and post a non RFC series. >> >> Finally I did attempt to reduce the first patch with various git format patch >> directives but none seemed to reduce the patch. >> >> Dan >> >> Dan Murphy (3): >> can: m_can: Create m_can core to leverage common code >> dt-bindings: can: tcan4x5x: Add DT bindings for TCAN4x5X driver >> can: tcan4x5x: Add tcan4x5x driver to the kernel >> >> .../devicetree/bindings/net/can/tcan4x5x.txt | 34 + >> drivers/net/can/m_can/Kconfig | 18 + >> drivers/net/can/m_can/Makefile | 4 +- >> drivers/net/can/m_can/m_can.c | 1683 +---------------- >> .../net/can/m_can/{m_can.c => m_can_core.c} | 479 +++-- >> drivers/net/can/m_can/m_can_core.h | 100 + >> drivers/net/can/m_can/tcan4x5x.c | 321 ++++ >> 7 files changed, 722 insertions(+), 1917 deletions(-) >> create mode 100644 Documentation/devicetree/bindings/net/can/tcan4x5x.txt >> copy drivers/net/can/m_can/{m_can.c => m_can_core.c} (83%) >> create mode 100644 drivers/net/can/m_can/m_can_core.h >> create mode 100644 drivers/net/can/m_can/tcan4x5x.c >> > >