Received: by 10.213.65.68 with SMTP id h4csp1547195imn; Mon, 19 Mar 2018 07:09:12 -0700 (PDT) X-Google-Smtp-Source: AG47ELvM8NCcs9PrI979IhXo9sT5K7C3hv10KBpWyYvtBxKKbhWFmB9iyOutCDiJ2rjCAO+BBs+C X-Received: by 2002:a17:902:4201:: with SMTP id g1-v6mr12793578pld.62.1521468552233; Mon, 19 Mar 2018 07:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521468552; cv=none; d=google.com; s=arc-20160816; b=VLr7+dzbJOJ3YKoLQvrNv/aREvtl3PTXgoKiPeEj5uxe8OUDRi/XWDccVX0TKzOa2S osDk2AuU1U+2yQSyQUbRA9fdWLPlObDjk+WpxRRR/vxFPj0LtuXLsOyWf0UvboS5vgk2 ea4zFOvYp1X+/y7FQ9fdW/GQHEjGqE8XLbdVuWmjrEIdVmBO+R4voZwsedfGhcKINZIV xz/5MUmICe/ng8JDmBUssZdeDu3m8XFKC8iDxtsx3uKf8so02R203euNk3C5LP/fOPF8 aXUiQdT1EEfi5EzfztIQbW0R9VGwHHk6Mw0oLH9mrALDi1DLX2QvYf6eTppOfuVO6TJJ 3jiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=VpReCA2NQQhBPOg6xwlm3w3RHzV2Bqr7tCS+UWleg7g=; b=ozPoUDHcGKTXD0GppyheIcmqvWv63soWghNnGlP1kU00Hc6gomW40KMAXANqqU+9nT qV8ibquw5Dk12rmpLYqb9jrCfyCneDxyxOMcEp2rmwoqg9nvuWGdo1qKPbmDSnlTOIDR IhbQYiec72Hwd3jY9wKmSP5SBlpOt0aW7Eh+VY+cpgDfVxDPRsl3c/1qIKbSKgG1Tzxg er6DaYsCUEZezSe7gCCLdJNcBvgexI35xff1Ch2OCuk4QZWgoNi96zu0kR6PS0t4Yf2J 7pcFDJNcC7KybQtfnFuVirecXv9Yseioyi5UoJAzMnwpu8PiaXkKECJsBkkktfef6l70 jRnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NaPFAnIN; 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 w24-v6si48902pll.85.2018.03.19.07.08.57; Mon, 19 Mar 2018 07:09:12 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NaPFAnIN; 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 S933483AbeCSOF7 (ORCPT + 99 others); Mon, 19 Mar 2018 10:05:59 -0400 Received: from mail-lf0-f43.google.com ([209.85.215.43]:39898 "EHLO mail-lf0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932866AbeCSOF5 (ORCPT ); Mon, 19 Mar 2018 10:05:57 -0400 Received: by mail-lf0-f43.google.com with SMTP id p142-v6so2934261lfd.6; Mon, 19 Mar 2018 07:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=VpReCA2NQQhBPOg6xwlm3w3RHzV2Bqr7tCS+UWleg7g=; b=NaPFAnINTUjP+gvnYnNaY5o5+o+aZFSIsLf41VV062yD+kY9TklQceJguSX3ozj7nZ t48Bp795cRSjt59e1Vaa7Jw+QbO0UZy7DBrS6PkwZCuD72qKeOoMSF//f8pQcXn8mLNE PCeg4exhkdAFipEdDX2L6pY3Uc2oT9jTl3CECoP1Dy1JYsV2wX7RwQpxR7ObmPitEKon BZkOQ451moNBLfpChvDWWUC6plDqKQOWq5B/z06v//GVVP1jI0ZhmbQxmkaAuixrGnlr v6QJEOppP2oezzTAlQClCW7E7IoStTbFs4qFvMgy6o3/iArX4R81NW7d186vSYA7ipmx sQAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=VpReCA2NQQhBPOg6xwlm3w3RHzV2Bqr7tCS+UWleg7g=; b=gDC5ppBW9zcByObVAV+Y3jZAiP6kwGSf0GMQKRXCC0mSCMTB7IrKoR5DEwtmLJ5kwe H4nPajZyTSIdVBENN2mkoSBHN/fBdjRJ1qHfwIK/XO/b9zb6Z4yFjI4T2RA8sMdk4NsA w/VmJ1Xgamehjg+WHl0ecBcFnGb3bQjmC4LKQd1ARPQ1ZYEtqAQazr9dH92R4mvbTgQG FAe8VnfzUa3Pghv3bUfLbxwUkEMVDjyIjqwq+hy0GT7PVfecX7QktqxbGkqcb6aCQoNW U47TAbRDI3EM4LJKk/THA5VFJuivq0iTTFPisx/LdJCB4OosuwuB9n+c4+WingaUU30I hKww== X-Gm-Message-State: AElRT7FsTAWUzN/pDFYpZL5aXoJOMp0WBXQnonL81Iiuy+Oj2NI/IBtU 8sjz+e0ratVvUzNFYizLA5M= X-Received: by 2002:a19:2651:: with SMTP id m78-v6mr7293202lfm.7.1521468355850; Mon, 19 Mar 2018 07:05:55 -0700 (PDT) Received: from xi.terra (c-8bb2e655.07-184-6d6c6d4.cust.bredbandsbolaget.se. [85.230.178.139]) by smtp.gmail.com with ESMTPSA id x23sm21932ljc.33.2018.03.19.07.05.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Mar 2018 07:05:55 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.90_1) (envelope-from ) id 1exvQB-0002ou-Bv; Mon, 19 Mar 2018 15:05:55 +0100 Date: Mon, 19 Mar 2018 15:05:55 +0100 From: Johan Hovold To: "H. Nikolaus Schaller" Cc: Johan Hovold , Mark Rutland , DTML , linux-omap , Jonathan Cameron , Arnd Bergmann , Tony Lindgren , Greg Kroah-Hartman , Russell King , Linux Kernel Mailing List , Thierry Reding , Rob Herring , Kevin Hilman , =?iso-8859-1?Q?Beno=EEt?= Cousson , kernel@pyra-handheld.com, Andreas Kemnade , Discussions about the Letux Kernel , Andreas =?iso-8859-1?Q?F=E4rber?= , Linux ARM Subject: Re: [PATCH v5 3/5] misc serdev: Add w2sg0004 (gps receiver) power control driver Message-ID: <20180319140555.GN18359@localhost> References: <5494ad34b39a6c62601e3747440268dfb3be7d5a.1512114576.git.hns@goldelico.com> <20171222124427.GI3374@localhost> <91850CC3-B280-4701-9D07-96AFF3A79A6F@goldelico.com> <90F9A8E4-035A-4A9E-8AAB-757491D63E69@goldelico.com> <20180112153903.GB5992@localhost> <20180118061314.GG3286@localhost> <8B2641B8-E86B-425C-9E79-E9C41E4E623C@goldelico.com> <461DBB7C-5FF7-4723-9518-C9A5E7E5610D@goldelico.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <461DBB7C-5FF7-4723-9518-C9A5E7E5610D@goldelico.com> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 07, 2018 at 04:53:12PM +0100, H. Nikolaus Schaller wrote: > If I look for example at the camera module drivers provided by > drivers/media/i2c, most of them could be easily power-controlled from > user-space by i2c-tools and 1-2 gpios through /sys/class/gpio and > a big set of scripts. > > Still they have a place in the kernel and cameras are powered on > if the device is opened and powered down if it is closed. > > So I am still trying to understand the rationale and logic (if one exists) > behind having them in kernel but rejecting our driver which does the > same for a different class of devices. For media we have a framework in place; for gps we do not (yet). Johan