Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755003AbbLKMne (ORCPT ); Fri, 11 Dec 2015 07:43:34 -0500 Received: from mail-oi0-f46.google.com ([209.85.218.46]:36095 "EHLO mail-oi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752975AbbLKMnc (ORCPT ); Fri, 11 Dec 2015 07:43:32 -0500 MIME-Version: 1.0 In-Reply-To: <1449544808-3163-2-git-send-email-peda@lysator.liu.se> References: <1449544808-3163-1-git-send-email-peda@lysator.liu.se> <1449544808-3163-2-git-send-email-peda@lysator.liu.se> Date: Fri, 11 Dec 2015 13:43:31 +0100 Message-ID: Subject: Re: [RESEND RFC PATCH 1/2] gpio: Add isr property of gpio pins From: Linus Walleij To: Peter Rosin Cc: "linux-gpio@vger.kernel.org" , Alexandre Courbot , Jean-Christophe Plagniol-Villard , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Peter Rosin Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1016 Lines: 27 On Tue, Dec 8, 2015 at 4:20 AM, Peter Rosin wrote: > From: Peter Rosin > > Adds the possibility to read the interrupt status register bit for the > gpio pin. Expose the bit as an isr file in sysfs. > > Signed-off-by: Peter Rosin NACK. We have frozen the sysfs ABI and we are working on a character device to replace it for userspace access, see: http://marc.info/?l=linux-gpio&m=144550276512673&w=2 Second question is *WHY* you want this crazy thing? Userspace should want *events* from a file descriptor, like IIO does it for example (on top of a proper chardev), not polling a register to figure out if an IRQ occurred. We need to think about the real solution to what you want to do. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/