Received: by 10.223.185.116 with SMTP id b49csp5944281wrg; Wed, 7 Mar 2018 22:20:02 -0800 (PST) X-Google-Smtp-Source: AG47ELtmgg/J1eMa1GVIZ2SW2MzJesFg0woc71Nibnf8/uE85hqlKOVw85N/VLIqHDORrwq60Cp/ X-Received: by 10.99.124.14 with SMTP id x14mr20199884pgc.290.1520490002179; Wed, 07 Mar 2018 22:20:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520490002; cv=none; d=google.com; s=arc-20160816; b=oOp4m/cpFKftD0kk4L7cUYe2dROBkufdNHzKj8dELaDSqtOzw1pOEIYgT+yiLqmhz4 RwHdU3tjdiXB1MEqaILICPMu9M+6xHiTPQEt8dGjPf6yPh6bexsra3/tPUTILqBBo8t3 w4FuRjQgaPj6VZqapigc9MFhUyEGQTU9akzjDVspUT0l+PWxSlSi7tGQyCRXitHoDVUp MwLErrWeEhEBW3qHnz2SxWdfAJwR16cXDwYKczJHZhXCyRi7A8UOKpAWnmjsJ46iqgjq UpeF19kKIgTQ7FQ8A0mM2x8278xroKUJRFIDkW7/1oAms9dDdV29lGr6qwp5ic8Gnn23 FU8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=ArI6VI894rwjufFbjZI9HD/tyBRqjuT4AsuxEi5I89o=; b=ZfPk4mc7X3Rl4ozwR4WFH7Dy/DRh0EI4Vjo0UDYqvbggg8Bv2FPKTRnXjMIcqvSbuW yS0lxR5kxrl02YwAPC2qS3OwOaOPa4WiEEmz1LKsMTeXcKlhhYHEBURpGsITx80MGbhI qsEAL9oa4bvcPRKgbAKvWIRTpT89O2J5UFbwC/K0vbh4XDY8Vi5em8QpnHWx3BJTCKqW BrWXhzzro6sCbNaSpDFFdygqHzZH9GY0YKrlctxEZixhhKCinpSuiJp3474479OHIHtX SxGl3ClKVaFnznwSyYHpZfMTNsfKFYzmbNq6lhS5EHg/T0DpWDLBSWILkC1NgEsDhGlD ipIQ== 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 z6si12392558pgn.46.2018.03.07.22.19.48; Wed, 07 Mar 2018 22:20:02 -0800 (PST) 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 S1755364AbeCHGRo (ORCPT + 99 others); Thu, 8 Mar 2018 01:17:44 -0500 Received: from mail.andi.de1.cc ([85.214.239.24]:54062 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751120AbeCHGRl (ORCPT ); Thu, 8 Mar 2018 01:17:41 -0500 Received: from hsvpn23b.hotsplots.net ([176.74.57.165] helo=aktux) by h2641619.stratoserver.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1etorh-0003O2-Om; Thu, 08 Mar 2018 07:17:21 +0100 Date: Thu, 8 Mar 2018 07:16:44 +0100 From: Andreas Kemnade To: Johan Hovold Cc: Mark Rutland , devicetree@vger.kernel.org, Discussions about the Letux Kernel , Jonathan Cameron , Arnd Bergmann , Tony Lindgren , "H. Nikolaus Schaller" , kernel@pyra-handheld.com, Russell King , linux-kernel@vger.kernel.org, Thierry Reding , Rob Herring , Kevin Hilman , =?UTF-8?B?QmVub8OudA==?= Cousson , Greg Kroah-Hartman , linux-omap@vger.kernel.org, Andreas =?UTF-8?B?RsOkcmJlcg==?= , linux-arm-kernel@lists.infradead.org Subject: Re: [Letux-kernel] [PATCH v5 3/5] misc serdev: Add w2sg0004 (gps receiver) power control driver Message-ID: <20180308071459.310d0ba2@aktux> In-Reply-To: <20180118064736.GH3286@localhost> References: <5494ad34b39a6c62601e3747440268dfb3be7d5a.1512114576.git.hns@goldelico.com> <20171222124427.GI3374@localhost> <20180109184347.28ba0a6e@aktux> <20180112144647.GA5992@localhost> <20180112194022.7da1e726@kemnade.info> <20180118064736.GH3286@localhost> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_//GnIge=aWUzMu=J_ndxszsL"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_//GnIge=aWUzMu=J_ndxszsL Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, On Thu, 18 Jan 2018 17:47:36 +1100 Johan Hovold wrote: [...] > >=20 > > So to avoid having hardware information spread all over the table at le= ast > > these information would need to be in devicetree. But that also all fee= ls > > like a hack and hard to maintain. =20 >=20 > Having the device described in the device tree is certainly desirable, > not least for chip identification. And with a GPS framework in the > kernel with a well-defined interface, implementing power management > would be straight forward. >=20 Hmm, devicetree without in-kernel drivers, do we have anything like that somewhere? I thought that was a big no-go. But maybe I am wrong. > I'm just not convinced that the proposed tty interface is the right > interface for this. User space would still rely on gpsd for the GPS > protocols, and would also ultimately be managing power by killing gpsd > or whatever daemon that would otherwise be holding the port open. >=20 > Something like the generic power sequences that has been discussed > elsewhere might be a better fit for this if all you want to do is power > on and off on port open and close (and on suspend/resume). There really > isn't anything GPS-specific in the current proposal (besides the > suggested tty-device name). So a bit like that mmc-powerseq stuff we already have? >=20 > But sure, that wouldn't be sufficient to deal with the > unknown-power-state problem with the device in question. >=20 Maybe there could be a kind of active flag set by the tty if there is traffic, so that active flag could be used in these power sequence stuff? But then again the tty layer has to be extended which would probably also cause a lot of ruffled feathers. Regards, Andreas --Sig_//GnIge=aWUzMu=J_ndxszsL Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE7sDbhY5mwNpwYgrAfb1qx03ikyQFAlqg1UwACgkQfb1qx03i kySUIRAAm+s1rDjwjMbnM/1njhhr3ul5v6ns3xiRWFYUCB9H16i/ts2OheXAj304 udSxZ1eMoY8mVnl9bvao7MY5k1xPR+tcHHG0cVNlR7ZvIpcfrao/10ljXSe52IlW jZvO/9h7caocZT6AzqynwoctjClEj8Ck59FJfVM934utY7GDnPhWkFdADQdkPygB zUtzDIj3RiWNKiMxq6QSzPF0PnEPTDKmpgIJjfmDTXxfxT/KfPaQCr2PanXAjI/L rKADGmTfpMYF+x3bPcCHDLBytg3NZvYFYEp2EdKyBWzOrA9EVqzCqH8VqJ6cHbFZ JePoNdy7bcoFNIG6i17iGCqCeSgG+fyrebXVEIY00f0NEXFiilGk5fdVEw8cZrhe EJZHU+KbJFC598cTgZ7sP1btCFfs5Z3O5JDVQKwe4uAdkm0g+FmW+fWhxH8pLWXB qMSX1NJ0GSlNBhUfJJ4/5Ud0Ft5RcltsiR4JuVbVixcjc5XFnr89EXm7CXEh1kne RqS02zpvKIYUbWD1BQ53mj6l1j1SlTM78/ispS+bKN07aPWq72Q9E7s0Nuy6Xr21 99Iax7Eos6QmPLD5/CE+8C1Fj/BOKqjIcdDpjk8+jZ4nh2RtI/E500LvaqnlOxg1 YmQKZB0Epdm9ObZdm0KHtpNCrejTye0xt2BI251wwjg+bnikZHc= =PAIm -----END PGP SIGNATURE----- --Sig_//GnIge=aWUzMu=J_ndxszsL--