Received: by 10.192.165.148 with SMTP id m20csp2364025imm; Thu, 26 Apr 2018 09:45:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp8YWmr9S/0/LJPeN1drRIN+a0amPAOCzZ8oxlKYjL/uqE2/3KkOo49alO7+zFdJjIu/W/I X-Received: by 10.99.104.135 with SMTP id d129mr11371014pgc.128.1524761138927; Thu, 26 Apr 2018 09:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524761138; cv=none; d=google.com; s=arc-20160816; b=lDx03syD5gQB31GrBR8C5TAiiQGLuD6Iq++nwY2eLCSK6fGtfYzW3kOiNLNtpixpCP /RIf8hnEkG40JokFfQLnzn+mmb8FDbvezdk2okH1xC9GLl3AK9Zdp0IwWhHJJ0xuRFYo J1mG9pHUKb22sp0/xBbfQ5zWiYK/Gp/phUZWTzGwR5vc7wodO0UXdQ3EGvUmjTh7TTGb cUxnkKARvDswEVFWhtM4Gcqp6cHP0ULDLStPs/r3BrY3Y+Cq1hZYOIT6vd2R5Wd0th/e +1hAVnMWCEib/hxVZO+lob0x6jHpJwMh6pj41/e/I2nqr2jT540igmGZK6hfKBAE+avI UY5Q== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=/3xZ6WNublQWszIRaUqlclJsj4CoSbtB+cfFr/Yzjlo=; b=NhmvdZWS2nn536wQ9LLrcTkXlxmhUAOfArkjWp2Uy+e4FZZiuG0b58h076HXfYYxgD CVNWgil/QtxQIe5n3DelDZPEYyN8layq1T4UKFqWJnoO+MepzlJ0bNhLZ/Lx76skjPF5 TJT925Wu5wE9hUVWfG+gi5TJ4dI/eWAFT8SNT1yClg61WWAKh7rLHsiXzyX0uAwFTzkC EGNXIkq9eWXiOvkM387XDWel6jiatZItiEhw/zyPA0CjN6k7ZXtqyvLgZ+7v+aUh5OpU 6eH22onvsx0fJiokZSNg7zp+3ouJGO4v1gJxaZpZ1QSUukLjpbZ6ufCXcFg0EUBRkfpV +h5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=ptz20M35; 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 p15si4610491pgq.478.2018.04.26.09.45.24; Thu, 26 Apr 2018 09:45:38 -0700 (PDT) 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; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=ptz20M35; 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 S1756792AbeDZQmz (ORCPT + 99 others); Thu, 26 Apr 2018 12:42:55 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:38700 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756506AbeDZQmx (ORCPT ); Thu, 26 Apr 2018 12:42:53 -0400 Received: by mail-io0-f194.google.com with SMTP id z4-v6so8125397iof.5 for ; Thu, 26 Apr 2018 09:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/3xZ6WNublQWszIRaUqlclJsj4CoSbtB+cfFr/Yzjlo=; b=ptz20M35md2E/5WwGPZkz20ZpSfSPa3LwwtRnA3rctqUVjnNALHR/W3b0u8IpPU9xb WzY0ROeSjOQN2N4Q52fGiy4evWNcWYtO91DrMPAoFRGNH9uW18R2giziLco4ae6HX7Et JLaJOCAzHI5tS2d7s/72arBbbmwuY/7HT1UvTtHkS/z39TWJMjaG5kNAymkagZ8hY8DN 4rc6wTKUSiqQzvn7ugwao8Ujx72V83FytFAyp3JjEtU6No0Uuk3J29t0Wu5c/d1VqQpx PBwcRJiLW8hZT4XRy2rWav3wuDPx8QVEEWv8CoK5XrzgTsn4CkHgQ06SWc5GGY0VoFtB xGeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/3xZ6WNublQWszIRaUqlclJsj4CoSbtB+cfFr/Yzjlo=; b=tX65ur4G18GJti5FIRS8idz0DmPqLvDnnnCGzb/d8q55SNW6DRojGQliu+ocFWDNJG 7wekI+7CFeV0k+vCm7xznuPdVNR9h6GAMC9uSx3v3ciVPke+dfnR97VJn/ISlqbECTyr vSShZZOJixnmdAcaWuU83iTz9GlI2UGlHh+63bloWfr66OQ8G4cyQ7D2YfoN2P1etz5R S4ebRSpXnb3MBZOQm0+9PNkQ8mbqTkgKnuOBuCGFDdxN0vlpC8mCemiCZz6D2cJthWra MCFYsDk3ThhXoViS4tq4qQRc7687xhpQLQgB2VsZDg5oId4lAO2gfP2FZrchlmUuBIIX P5Og== X-Gm-Message-State: ALQs6tBRLsx47yDwM5TcXOPvpsMpIJPrttgilyj6EcZ1u4lRKKf5oTbN rgyPiNm/PQv+jVEPrigDXWVhfj7uifhlQVk6vzo0mQ== X-Received: by 2002:a6b:250d:: with SMTP id l13-v6mr433232iol.47.1524760973009; Thu, 26 Apr 2018 09:42:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.181.1 with HTTP; Thu, 26 Apr 2018 09:42:52 -0700 (PDT) In-Reply-To: References: <20180410203028.11412-1-brgl@bgdev.pl> From: Bartosz Golaszewski Date: Thu, 26 Apr 2018 18:42:52 +0200 Message-ID: Subject: Re: [PATCH v2] gpiolib: add hogs support for machine code To: Linus Walleij Cc: Jonathan Corbet , "open list:GPIO SUBSYSTEM" , linux-doc@vger.kernel.org, "linux-kernel@vger.kernel.org" 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 2018-04-26 14:07 GMT+02:00 Linus Walleij : > On Tue, Apr 10, 2018 at 10:30 PM, Bartosz Golaszewski wrote: > >> Board files constitute a significant part of the users of the legacy >> GPIO framework. In many cases they only export a line and set its >> desired value. We could use GPIO hogs for that like we do for DT and >> ACPI but there's no support for that in machine code. >> >> This patch proposes to extend the machine.h API with support for >> registering hog tables in board files. >> >> Signed-off-by: Bartosz Golaszewski >> --- >> v1 -> v2: >> - kbuild bot complains about enum gpiod_flags having incomplete type >> although it builds fine for me locally: change the type of dflags >> to int > > I like the idea and thinking behind this patch, so patch applied. > > It's a bit of code to carry, so if it doesn't see any use, I will simply > revert it :) > > But I bet you intend to follow up with some machine patches > and then it is immediately worth it. Yes, I'll be submitting patches removing the legacy gpio calls for boards in mach-davinci. Thanks, Bartosz