From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: Re: [RFCv4 06/11] misc: Introduce Nokia CMT driver Date: Sun, 22 Dec 2013 11:22:06 +0100 Message-ID: References: <1387150085-23173-1-git-send-email-sre@debian.org> <1387150085-23173-7-git-send-email-sre@debian.org> <20131216121524.GA6177@earth.universe> <20131216183448.GA10614@earth.universe> <52B090E0.5040006@gmail.com> <20131217232525.GA12152@earth.universe> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: <20131217232525.GA12152-SfvFxonMDyemK9LvCR3Hrw@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Ivajlo Dimitrov , Linus Walleij , Shubhrajyoti Datta , Carlos Chinea , Tony Lindgren , Grant Likely , Rob Herring , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , Rob Landley , =?ISO-8859-1?Q?Beno=EEt_Cousson?= , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Linux-OMAP , =?ISO-8859-1?Q?Pali_Roh=E1r?= , =?windows-1251?B?yOLg6evuIMTo7Ojy8O7i?= , Joni Lapilainen , Aaro Koskinen List-Id: devicetree@vger.kernel.org On Wed, Dec 18, 2013 at 12:25 AM, Sebastian Reichel wrote: > I had a look at both ofono's and freesmartphone.org's implementation > for the GPIO handling and both implementations are very similar. I > think it should be possible to move the state machine described in > [0] into the kernel and provide a simple sysfs/uevent interface. > > I was thinking of something like /sys/devices/platform/nokia-cmt/state, > which accepts "enable", "disable" and "reset" as input and outputs the > current state. > > [0] https://git.kernel.org/cgit/network/ofono/ofono.git/tree/plugins/nokia-gpio.c Yes this looks like kernel code shoehorned into userspace. As it deals with suspending/resuming hardware for example, and that is something the kernel needs to coordinate and do uniformly across all devices (IMO). A while back Arun Murthy was working on creating an embedded modem subsystem but the development stopped. However such a subsystem is a generic problem of general interest and this would be one of the candidates for drivers/modem I think. Sadly creating it may be a lot of work, I don't know exactly. http://marc.info/?l=linux-kernel&m=135027904405680&w=2 Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html