From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756737AbdELJEt (ORCPT ); Fri, 12 May 2017 05:04:49 -0400 Received: from mail-it0-f43.google.com ([209.85.214.43]:36279 "EHLO mail-it0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755224AbdELJEq (ORCPT ); Fri, 12 May 2017 05:04:46 -0400 MIME-Version: 1.0 In-Reply-To: References: <1493281194-5200-2-git-send-email-jacopo+renesas@jmondi.org> <20170508160120.GB25206@w540> <20170508172516.GC25206@w540> From: Linus Walleij Date: Fri, 12 May 2017 11:04:43 +0200 Message-ID: Subject: Re: [PATCH v5 01/10] pinctrl: generic: Add bi-directional and output-enable To: Geert Uytterhoeven Cc: jmondi , Andy Shevchenko , Chris Brandt , Jacopo Mondi , Geert Uytterhoeven , Laurent Pinchart , Rob Herring , Mark Rutland , Russell King - ARM Linux , Linux-Renesas , "linux-gpio@vger.kernel.org" , devicetree , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 9, 2017 at 12:54 PM, Geert Uytterhoeven wrote: Oops missed this: > Hence I think we should not use generic pin properties, but consider these > settings to be part of pinmux configuration. > As having large tables in the driver is undesirable, I think storing the > settings in the "pinmux" property (by encoding them as flags passed to the > RZA1_PINMUX() macro) is our best option. I think it is better to have large tables in the driver in this case. It is the lesser evil. Having unintelligible and hard to grasp stuff in the device tree that no user will understand or dare to touch is not good, then it is better to have it with the code, where it is being used, so the developers of the driver can see it when they are dealing with this (quirky) hardware. As you say this is actually fixing hardware bugs, we can expect these quirky tables to be gone in the next hardware generation, right? Then the right place for it is in the quirky driver for the quirky first-generation hardware. Yours, Linus Walleij