From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753472AbcGUQVh (ORCPT ); Thu, 21 Jul 2016 12:21:37 -0400 Received: from mail-yw0-f195.google.com ([209.85.161.195]:33011 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753282AbcGUQVg (ORCPT ); Thu, 21 Jul 2016 12:21:36 -0400 MIME-Version: 1.0 From: noman pouigt Date: Thu, 21 Jul 2016 09:21:35 -0700 Message-ID: Subject: Pinctrl hogging To: linus.walleij@linaro.org, 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 Kernel version: 3.10 Is there any way to configure default settings for some of the gpios eventhough there is no one driving them? I am also trying to configure some of the gpios as irq lines using just the device tree without writing any device driver for it as it will be used by userspace. I looked into the existing kernel code in 3.10 kernel and couldn't find out any reliable way to do that? I did find out some pinctrl hogging patches but that is part of latest kernel. Just to workaround this problem I have created a dummy driver specifically for this purpose. Is there any better way? Thanks,