Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756924AbaKTVr7 (ORCPT ); Thu, 20 Nov 2014 16:47:59 -0500 Received: from smtp24.services.sfr.fr ([93.17.128.81]:64830 "EHLO smtp24.services.sfr.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756817AbaKTVr4 (ORCPT ); Thu, 20 Nov 2014 16:47:56 -0500 X-Greylist: delayed 377 seconds by postgrey-1.27 at vger.kernel.org; Thu, 20 Nov 2014 16:47:55 EST Authentication-Results: sfrmc.priv.atos.fr; dkim=none (no signature); dkim-adsp=none (no policy) header.from=mpeg.blue@free.fr X-SFR-UUID: 20141120214137806.C4CDD70005B2@msfrf2404.sfr.fr Message-ID: <546E600F.8020704@free.fr> Date: Thu, 20 Nov 2014 22:41:35 +0100 From: Mason User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0 SeaMonkey/2.30 MIME-Version: 1.0 To: Victor Ascroft CC: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: Looking for good references for ARM driver development References: <546C920A.7060800@free.fr> <546CCBF6.7070607@gmail.com> In-Reply-To: <546CCBF6.7070607@gmail.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/11/2014 17:57, Victor Ascroft wrote: > On 11/19/2014 06:20 PM, Mason wrote: > >> Are there more recent technical references, as good as LDD3, that >> cover "modern" aspects of kernel development? > > The LDD3 is one of the best there is. A fourth edition is supposed > to come out sometime next year. > http://www.amazon.com/Linux-Device-Drivers-Jessica-McKellar/dp/1449371612 That's the best news I've heard this week! Hope Jonathan gets well and lives happily ever after. >> How do I "leave device registration for the system infrastructure"? >> Where should I put that code? >> Is it a good idea to separate device registration and driver registration >> in the case of a SoC, where the device is embedded in the SoC and is not >> "hot-plugged" (or anything-plugged for that matter, it's just "there"). > > For understanding this you need to understand how the platform infrastructure > works and why is it used. > http://lwn.net/Articles/448499/ > http://lwn.net/Articles/448502/ > and go through some of the relevant drivers. More of Jon's (great) work ;-) Will definitely read these articles carefully. >> 3) Why is the function used to "destroy a platform device" named >> platform_device_put? Why put? >> Put on a list of things to destroy at a later time? > > This should be more clear once you go through LDD3. I'm coming up empty. AFAICT, it's unrelated to the _put_user* family of functions. I see that it has something to do with ref count decrement. [more reading...] Something about kref. https://lwn.net/Articles/336224/ They mention "put" but not *why* it's called "put". Is it related to Dijkstra's P and V for semaphores? https://cs.nyu.edu/~yap/classes/os/resources/origin_of_PV.html Still confused... Regards. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/