Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7CAFBC28CBC for ; Mon, 4 May 2020 03:16:00 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 32502206F0 for ; Mon, 4 May 2020 03:15:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 32502206F0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1jVRZr-0003v0-RT; Sun, 03 May 2020 23:15:31 -0400 Received: from omr2.cc.ipv6.vt.edu ([2607:b400:92:8400:0:33:fb76:806e] helo=omr2.cc.vt.edu) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jVRZp-0003ur-Ee for kernelnewbies@kernelnewbies.org; Sun, 03 May 2020 23:15:29 -0400 Received: from mr6.cc.vt.edu (mr6.cc.vt.edu [IPv6:2607:b400:92:8500:0:af:2d00:4488]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id 0443FRpk006791 for ; Sun, 3 May 2020 23:15:28 -0400 Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mr6.cc.vt.edu (8.14.7/8.14.7) with ESMTP id 0443FMas028484 for ; Sun, 3 May 2020 23:15:27 -0400 Received: by mail-qk1-f197.google.com with SMTP id a18so17601626qkl.0 for ; Sun, 03 May 2020 20:15:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=z08T36YDVqfZYaWRLgK+KQAV3wtEyZDh6b1iyYd8e2Q=; b=mW8Q8DxWbPqAXxFA9MFUKvAqeKJPb8PXTJJf9MBoYEc10MTMScj4EGsrHoBG4qMnGO UB8eyaIQzg5UAsiy5tnD5i6GW9ZLg6ReYM0kZCd2rpOQVJOSM0gIqG7W0N+fxCnVhZR4 iMxTQZe87U9g/zieBEfE7+PFUVm+e8C0W7Hrer5iMz+77DHzQO/jx6pEwlP6fWtsERX3 jT0xlo0zvosOvDWu9Qi+d1BD0jaxGcfiE1soE0RP8PmJXVnxJvSXVPaUDQEXFnqvUo3y eeS+vRoTNv1uCwUhumUUdP5oegcMiwW1+EiTq2G9p1BCnElf+tL1PXMzPGf7tHcOcgWm AU1Q== X-Gm-Message-State: AGi0PuaPmE/1+MAuUdmxcVzS/jB6nqv1OPi2xNcA0Bbs518D9vGHy4Vs 2WniFKHRMb5/lPG4px15SAVDr0yA39LqEO0ikw1msrcu+PkZdTzcKXPi+pDQmIL0+hXSMsk8P6a PLgOoJ8yR7jkDnlHASozhAGA7suuqWkqq9SvKNxw= X-Received: by 2002:a37:94d:: with SMTP id 74mr13339161qkj.479.1588562121764; Sun, 03 May 2020 20:15:21 -0700 (PDT) X-Google-Smtp-Source: APiQypIDUrXOSGY1xq/F+4fhJkr/omSeojWHVtisLzrUByRmXiJ/xWUwoutz+NuxFu9brQQm4KAX5A== X-Received: by 2002:a37:94d:: with SMTP id 74mr13339140qkj.479.1588562121406; Sun, 03 May 2020 20:15:21 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:c9e1::359]) by smtp.gmail.com with ESMTPSA id q130sm7140124qke.80.2020.05.03.20.15.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2020 20:15:20 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Jacko Dirks Subject: Re: Getting started on writing a driver for the rpi4 In-Reply-To: <20200503201935.GA4193@vasteMachine> References: <20200503201935.GA4193@vasteMachine> Mime-Version: 1.0 Date: Sun, 03 May 2020 23:15:19 -0400 Message-ID: <229415.1588562119@turing-police> Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============6250775665296658716==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============6250775665296658716== Content-Type: multipart/signed; boundary="==_Exmh_1588562118_4555P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1588562118_4555P Content-Type: text/plain; charset=us-ascii On Sun, 03 May 2020 22:19:35 +0200, Jacko Dirks said: > have never submitted a kernel patch before. So, should I email a mailing > list warning everyone of what I want to do? Is there anything else I > should know about? Yes, you should do a bit of Googling and/or check the current source tree to make sure you aren't re-inventing the wheel.. There may already be working or near-working code, A quick Google check foud: Somebody else was looking at the problem back in February. https://www.raspberrypi.org/forums/viewtopic.php?t=265832 http://abyz.me.uk/rpi/pigpio/python.html apparently includes some slave functionality from userspace that may be useful as a guide: I2C/SPI SLAVE bsc_xfer I2C/SPI as slave transfer bsc_i2c I2C as slave transfer > To clarify, this is not about the creation of the driver itself, more of > a meta question of how to announce that I want to do this. Pretty much nobody cares that you *want* to do it. GitHub and SourceForge are full of abandonware where somebody *wanted* to do something and never finished it. Once you have a driver that loads and semi/mostly works, *then* you announce it, usually in the form of a patch stream generated using 'git format-patch' and 'git send-email'. But Greg KH can't even add it to drivers/staging until you have at least a good first pass at workig code... --==_Exmh_1588562118_4555P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBXq+IxgdmEQWDXROgAQKBdg//cWPi9UMVyU3uhw2apty/ebGcZ0VeyBDv s3BqKGLloAzehWrWFJwfxNKyJKYPkHNh9zBoaaLILX+IYbXYoCQ6v3OJVnGPYs/c qdr86r3SHa9Qecfm1x495x+PpIO9X2s11hoGpD68LV3ooL73B4fVmmjDysCD4dz/ jO7Q7hVVkD8jfxDJv1X+TmBS5atND7FNxUJ06XrZgkgnfpouuj6rgkHsksiKvRR5 Oq/vUGVgnhcomNagNVSGjgz5bO+aMJXZlTdOPP/5I5NuxSxq1esJL/axasn1LIMl A+Pd3tB6Us7r13mT+JE+zKIlyYqoTK6Kcb1YtNMvmRFca+GzGpuXRCU7u/NL2Gd0 GPDXiypcAaXZhwWumtPH42Ns8m3CrV6WhzuIiokHZOqpjxEl/Z+ITIJhQN8jBB/z MmpZpwOcpEpiGx6+AZjKTtAlOT7zDDfJQOAopd8JK5dsOeSpPNJdd6EqrgnJqljf v/kT1kRgzoqmurhdLORl679VEFrpU7lX0gAmX+GhQy72ZzwjJiQx8WS0YkZlhaXk oGI5MQqUhX2HEoDEs/C30XFvuo6fB+6rr7voMbcCf60eA5VFjkX/+NB3D7SvbWKl q6QD45EldxOwwEegBU5CzzHHcYIRVi0uThZ0B5W7PLkDhPjpsIdzEmVw3nRt17zM ykaJVznqmkU= =85qQ -----END PGP SIGNATURE----- --==_Exmh_1588562118_4555P-- --===============6250775665296658716== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============6250775665296658716==--