From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755462Ab1JTOSg (ORCPT ); Thu, 20 Oct 2011 10:18:36 -0400 Received: from cassiel.sirena.org.uk ([80.68.93.111]:59716 "EHLO cassiel.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754142Ab1JTOSf (ORCPT ); Thu, 20 Oct 2011 10:18:35 -0400 Date: Thu, 20 Oct 2011 15:18:27 +0100 From: Mark Brown To: Linus Walleij Cc: Barry Song <21cnbao@gmail.com>, Shawn Guo , Linus Walleij , linux-kernel@vger.kernel.org, Stephen Warren , Linaro Dev , Sascha Hauer , David Brown , Grant Likely Subject: Re: [PATCH 2/2] pinctrl: add a generic control interface Message-ID: <20111020141827.GB6100@sirena.org.uk> References: <1319041274-18723-1-git-send-email-linus.walleij@stericsson.com> <20111020023140.GC32007@S2100-06.ap.freescale.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Cookie: I have become me without my consent. User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: broonie@sirena.org.uk X-SA-Exim-Scanned: No (on cassiel.sirena.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 20, 2011 at 04:04:47PM +0200, Linus Walleij wrote: > I think (and of course this may be completely wrong, but it's my > working hypthesis) that the things that software wants to do to > pins are: The other question is if it's worth bouncing through too much of an abstraction layer when both ends of the API are fixed. > Yet again, can I have some examples of what > PIN_CONFIG_USER may *actually* be, which would be > absolutely impossible to express in some neutral way, and > ridiculous to have in the generic enum? One fun example is that we have some devices with pins which have runtime controllable voltage domains, there's no obvious SI unit mapping for those.