From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Altherr Subject: Re: [patch v6 0/3] JTAG driver introduction Date: Fri, 25 Aug 2017 09:53:40 -0700 Message-ID: References: <1503418256-5215-1-git-send-email-oleksandrs@mellanox.com> <593cd0d3-8e06-0992-c155-1322014c0477@longlandclan.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <593cd0d3-8e06-0992-c155-1322014c0477-3e+Fe6x+DsgJbe36r25VNhCuuivNXqWP@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Stuart Longland Cc: Linus Walleij , Oleksandr Shamray , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , =?UTF-8?B?SmnFmcOtIFDDrXJrbw==?= , Arnd Bergmann , system-sw-low-level-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org, Greg KH , OpenBMC Maillist , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , openocd-devel-owner-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, mec-WqBc5aa1uDFeoWH0uzbU5w@public.gmane.org, Rob Herring , "linux-serial-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Tobias Klauser , "linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" List-Id: linux-api@vger.kernel.org On Fri, Aug 25, 2017 at 1:50 AM, Stuart Longland wrote: > [Note: dropping vadimp-45czdsxZ+A5DPfheJLI6IQ@public.gmane.org as SMTP server complained about the > DNS server returning NXDOMAIN. Apologies.] > On 25/08/17 18:32, Linus Walleij wrote: >> Gnah! >> Whoever writes a slot-in replacement making the character device >> take precendence wins lots of karma. > > What would such a replacement look like though? See Linus's comments about using the existing kernel GPIO chardev interface. It already supports requesting multiple GPIO line state changes in a single request. > > Some sort of system whereby you can read/write single-line commands as > if talking to a GPIO expander over a UART? > > Would you access the GPIOs one by one, or would you perhaps map them > into a bitmap (maybe arbitrarily, up to 64-bits wide) and perform masked > operations on the bitmap? > > I'm no fan of the sysfs GPIO interface, but it beats poking around at > registers behind the kernel's back. > -- > Stuart Longland (aka Redhatter, VK4MSL) > > I haven't lost my mind... > ...it's backed up on a tape somewhere. >