Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2087878ybv; Fri, 21 Feb 2020 08:39:57 -0800 (PST) X-Google-Smtp-Source: APXvYqyZe8mrK3R7Rt4ZIDt8FteqHY/Ho/3juf5mK1FgIWjcMY+ddjOAg9o8w3xYyyHiCxCo89cj X-Received: by 2002:aca:4a0b:: with SMTP id x11mr2660404oia.37.1582303197053; Fri, 21 Feb 2020 08:39:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582303197; cv=none; d=google.com; s=arc-20160816; b=SvmsmWzCgm6KK1VIHRL1iqaKc5rN2b5y07j3GvYSigg+k4AKveTX0Oe/TzYrOnN0bY /t2ygaaCVFfAScXSVM8/p3sxnpb5sD+hQeXirjEWdv73dBiCC/iCxM05fN2RqryVM+aM uN9QesR0dzPKOqTGFwwIwh9NM8aLjo6XlHxIYwjRCSY4QKR7ObbAWv7QqEB7v100X5Qw nBwg1fY6niANF1w5i7GMM3DxyAghHEy69it+fNa9ApIRXGNKopHmJ45NhBFNe9olBmkH uTdJOURdXn/KlDukeHWr2biLu32kTBa9Dy3EJNaDf71dyo47JmAAWfBij7rrIzAet62s hi5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=4BgZBtTDREnYAapVdHrqgQ9W3R4CTcWbIkMjaCPQlXs=; b=HNNQsQkKTw2UfFEPAD9Vli2FfL6uMPKt9L8We+Od8B2VTOxynUnJ/CFuP79nTizqDG w4avpAe0x1wcFuIAgvlL7njhMANkok5rEbocu3lj0yScF/vynFL1DrmortAawBbqGw+S TfN5UvDItNi8fvRY4PtXcR/3TbohN4y5vz84k3NQ8IL3lz1JNMWHKql1YiKE7YPV++vE La2c6Z5XW2JRxITn1HHCDF2uaxyhpq/sfQWkU4y4OZE3NBE4TzZzJcRW+I3m/qy74MJ4 bzamsPH0d/bwjPIchE5vdWQDXnyt+VnEQjetQwvibixsSppOpmunZ47cLHi9N0pHJOKP CGpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x19si1717575otk.89.2020.02.21.08.39.45; Fri, 21 Feb 2020 08:39:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726733AbgBUQjd (ORCPT + 99 others); Fri, 21 Feb 2020 11:39:33 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:37432 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbgBUQjd (ORCPT ); Fri, 21 Feb 2020 11:39:33 -0500 Received: by mail-ot1-f67.google.com with SMTP id b3so2549338otp.4; Fri, 21 Feb 2020 08:39:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4BgZBtTDREnYAapVdHrqgQ9W3R4CTcWbIkMjaCPQlXs=; b=OtYArn7b/nkRDLsU6MJtdHuXrVCS57+t5xKnmjZc1aAyvZMNcfpQDbqke+UZGFcXk4 Jp10UuhUW+gf1L09OhPuozowC5syNMyLyRc7NjTh92R90R71H0Tjh7Zdk2gP4MIktr2c 38HGJYQy/g2zZJ3/yD1778BgMF0RwoZHxv//t4Jv+3oe6ZE+Z557UgC73tPqcZ4trcPH iGFDEGJu2Pzriss1lN+guU5ef/T5GktEmWJ5y0hDBxMEVCN5Wa2bz6kmMn5iUpLueOsp /oECd1o8SbfzSVBlB2eFlVAl8xPe9T3gnr4XrQ1UJ2oolLt0Z9AFN4N9LMAnv9+fg30x y9rw== X-Gm-Message-State: APjAAAXFXDcylr10NymdJ9w5JiL+oKTb7Ro5CYSw+Qg4e1oWfz5ADTN1 X9W5Qe9X7pnCTNOygpAhF9C86yly6AYvg5nPIH8= X-Received: by 2002:a9d:dc1:: with SMTP id 59mr29016938ots.250.1582303170916; Fri, 21 Feb 2020 08:39:30 -0800 (PST) MIME-Version: 1.0 References: <20200218151812.7816-1-geert+renesas@glider.be> In-Reply-To: <20200218151812.7816-1-geert+renesas@glider.be> From: Geert Uytterhoeven Date: Fri, 21 Feb 2020 17:39:19 +0100 Message-ID: Subject: Re: [PATCH v5 0/5] gpio: Add GPIO Aggregator To: Linus Walleij , Bartosz Golaszewski Cc: Jonathan Corbet , Harish Jenny K N , Eugeniu Rosca , Alexander Graf , Peter Maydell , Paolo Bonzini , Phil Reid , Marc Zyngier , Christoffer Dall , Magnus Damm , Rob Herring , Mark Rutland , "open list:GPIO SUBSYSTEM" , "open list:DOCUMENTATION" , Linux-Renesas , Linux Kernel Mailing List , QEMU Developers , Geert Uytterhoeven Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus and Bartosz, On Tue, Feb 18, 2020 at 4:18 PM Geert Uytterhoeven wrote: > GPIO controllers are exported to userspace using /dev/gpiochip* > character devices. Access control to these devices is provided by > standard UNIX file system permissions, on an all-or-nothing basis: > either a GPIO controller is accessible for a user, or it is not. > Currently no mechanism exists to control access to individual GPIOs. > > Hence this adds a GPIO driver to aggregate existing GPIOs, and expose > them as a new gpiochip. This is useful for implementing access control, > and assigning a set of GPIOs to a specific user. Furthermore, this > simplifies and hardens exporting GPIOs to a virtual machine, as the VM > can just grab the full GPIO controller, and no longer needs to care > about which GPIOs to grab and which not, reducing the attack surface. Do you have any more comments, before I respin and post v6? Thanks, and have a niec weekend! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds