From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludovic.desroches@microchip.com (Ludovic Desroches) Date: Fri, 15 Dec 2017 07:54:16 +0100 Subject: [RFC PATCH 0/7] gpiolib: add bias support In-Reply-To: <20171214160625.GG19186@lunn.ch> References: <20171214142138.23008-1-ludovic.desroches@microchip.com> <20171214160625.GG19186@lunn.ch> Message-ID: <20171215065416.GE2531@rfolt0960.corp.atmel.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Andrew, On Thu, Dec 14, 2017 at 05:06:25PM +0100, Andrew Lunn wrote: > > I have not introduced a gpiod_set_bias() because I think the only place to > > setup this is in the device tree. It's useless to setup a bias pull up if there > > is an external pull up on the board. > > Hi Ludovic > > I have a use case where having gpiod_set_bias() would be good. The > DLN2 is a USB device, which offers GPIO, I2C, and SPI services on its > pins. It is a hot pluggable device, and i'm using it on Intel > machines, making it double hard to use with Device Tree. > > It would be good to be able to set the pull up/down on the GPIO pins, > probably from a small kernel module which calls gpiod_set_bias(), or > via /sysfs. Thanks for your feedback. I'll try to keep your need in mind for next version or rework. Ludovic > > Andrew > -- > To unsubscribe from this list: send the line "unsubscribe linux-gpio" in > the body of a message to majordomo at vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html