Received: by 10.192.165.148 with SMTP id m20csp537363imm; Wed, 2 May 2018 04:52:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqqk9CogKxR/7IK+r+OtkGAFIf9ASG0nnMz5K+cacxiD3EBkTjwsljv1F9+S1yAYKHc2EJ6 X-Received: by 10.98.92.6 with SMTP id q6mr6525042pfb.118.1525261969950; Wed, 02 May 2018 04:52:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525261969; cv=none; d=google.com; s=arc-20160816; b=yZ6oQk9vVube1WcYpYcJlP+5KqcwI0vOaxnzNw6eZmH/I7y3iQBrb0SByLs2FwIx4z kbS9FGvDT4S4zyf5NCWhHa+t47wG5PHi4NJptZOzOShWV3xbGDyzBCFu4sAR4J9vM2H3 hdEbnoC3w2EPR0qK4fv9thAGIZx44gmWp7PtGJ0UAHNs/Hh5rXJo1vxKCyK9nRESUb7e QlEk3lfgYGqSQbRNSCk/BywzAoNQdQFrg9pyvTW4E1bOwJ6wc4okZ9S91VAmNh3mCYiq +zzr6oszAU6+GeqKzu9vLpPjYg6xE0cjcYdbdZTjk1pzEzOP0QfbdgYy++mi02RGhnty lu4A== 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=WOCbKwrD4HPuSZgtFI09s5YbzOmu/+mqU5O5PPnQbrA=; b=tgMzG8g1AR7ksfvLUG+dja0Ih29oesAT6XOHFFPNn9cfkTupGvt3zOo3e584jmi67V YJej0rBLCgIp4zoNGOuMwuZRLyKT72MJsdaUmT8S7Fft39tPsAUoC54RupFExHP7q/Sq k0dViJTaTBXzqaGY1G8umhe/9hAMCfZCfh/aSGylWSLKNQQIBZa2kg07YfU+W4DTJ74H BpzTIdDb1WLeJhEI5onVcTO1OoR85OimB3x5DZztXn9etwDcGLbLfNL4KE9z9Lxtsg/K 3u0EJvPro5VBBcmmjgzCFTsFjqND42XUtqc3vgqunR48UxhmNxlwZttzVGtbS31JEzkR 3zIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H2XzHer7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si11305403plw.519.2018.05.02.04.52.36; Wed, 02 May 2018 04:52:49 -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=@linaro.org header.s=google header.b=H2XzHer7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751324AbeEBLvN (ORCPT + 99 others); Wed, 2 May 2018 07:51:13 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:33129 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750932AbeEBLvK (ORCPT ); Wed, 2 May 2018 07:51:10 -0400 Received: by mail-it0-f65.google.com with SMTP id t7-v6so8090094itf.0 for ; Wed, 02 May 2018 04:51:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=WOCbKwrD4HPuSZgtFI09s5YbzOmu/+mqU5O5PPnQbrA=; b=H2XzHer7YDEUk8hLhPny8X6JUDrt8BLWkCwq87S7Q69WFRZzW3VE7KCZgL6e2NMihe SPt7unpE3LppOc4ZbyfUwh07CBv0uY8gkUkbdL18FaPvVQ7ME2OAI8KDTyZDdworUs59 tDtZr7HeJ6KDiUpgK1wO0ljgV454dSGCKMaQ8= 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=WOCbKwrD4HPuSZgtFI09s5YbzOmu/+mqU5O5PPnQbrA=; b=SGYkookj+vnXOw7u0HpVcn5MPJfSxHr4uA6Pz1JSJmQ8HjO+OItMcTBMWRaunM5ukc yDLsd77qMpodSJu/A/BDuIDXXGt1Tdfy9HWkK9TfGFtEIWFdlBQEPnErGza6HirkdLoN 3hRACFOMYOheo4BCu6f0vqIJ/QsfxRo9N6UnKJK4KdA4lNl3NGXDVfkuhCV2Op77ALuL TtyUR2kjwpbzJ+13GaHYj16ZnMb1HOof/HxraCLXRdpTVsFLJJNEjbkLQPCcuUteoxwt +99o26cZy4A1V2XhqF4sm84JS+sHWwUmrvUQ2Tm0Sz/YEjt4gur5oC0cUIkOw6XMGR9G XcUQ== X-Gm-Message-State: ALQs6tBuT5fv31wZy5JpuOEGSV7kVuCk5yXtGOp8HowvjcNCVS4Ozod5 PaL53Wlxka4QSUi3QANhiFGlx3Dgzi9yEL95gp0/tw== X-Received: by 2002:a24:c146:: with SMTP id e67-v6mr19243645itg.70.1525261870276; Wed, 02 May 2018 04:51:10 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:2793:0:0:0:0:0 with HTTP; Wed, 2 May 2018 04:51:09 -0700 (PDT) In-Reply-To: References: <20180410203028.11412-1-brgl@bgdev.pl> From: Linus Walleij Date: Wed, 2 May 2018 13:51:09 +0200 Message-ID: Subject: Re: [PATCH v2] gpiolib: add hogs support for machine code To: Bartosz Golaszewski 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 On Thu, Apr 26, 2018 at 6:42 PM, Bartosz Golaszewski wrote: > 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. Awesome, thanks! (I guess they should all be converted to device tree though, hope that will happen...) Yours, Linus Walleij