Received: by 10.192.165.148 with SMTP id m20csp1996234imm; Thu, 26 Apr 2018 05:09:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrkfLcY+3Bvb5IHJM0O05Ks9hnmAgAV98jcIw46z6xvY+UJhhahmQqk+iwy3+S/KpoWbULD X-Received: by 10.98.1.5 with SMTP id 5mr4684467pfb.1.1524744551578; Thu, 26 Apr 2018 05:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524744551; cv=none; d=google.com; s=arc-20160816; b=tsa+LGGhTIQHTWNzBu/EWtg7WhSSBkujuBeYJxUd9iuPxC1plCu/16yOln98FG/XJq WQoir5yr12Ustbzlel8socibYjpI943+j970YM8n9+oSPEIKVrBf8kDAYCDrHgKU802D K21xwBMQfk0hKa+N3JG++R19L6SWnp69Fy/jlIkGa8rIv607mqF7HUxUFz9T99/UWa+j K8JqcoMPKH8q1clrPw2faEc9WAPAQwzzEgmWWAlLMNhCwbUTRMYDRABvwXR0v55AqB1A FUZGaj3D8A/0kBZzZ6Q/n9cv+p0wTOXWW0uzhqRorBNO9LJ3H7ItNu6d0Y2jHfnD9UzG fqrA== 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=BaIUcVJJB1IZT9ZhgMRGp+d8QqN2KWuPLugWs+xnd3U=; b=XiVRtna97n0Il4tpvVyfCu+otnWo0U9IbqxmnISHtSn3V/ZQLdkAi8hDJfhfvj8NFB 9cA63pe+AW/zMBOdCi31YsLnhE7jAtiT4aWlgmOn6WkiJBEm3YHYFDkjIc6IjE+Cs2YU vew63H/cN1R1+O8YTQqYVs0JcvLCORpLOy5cVHIuvlRCaaMnjx6ejUJxVYQa10WSGz7r O/EvMJoFC/eAC6PPBtfYs1P3FkcfCHlPm6rlc8wu8+7UjEo6rKehtggZh6k31cB+KRF1 IqkPnhF/QADoXFh4rLAz5t5KvdxeSWvoxb6XLvUAcPUvwvVGmrwQpizTByOhufQtUCrH eHzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JGtO24q9; 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 m14si15618015pgs.190.2018.04.26.05.08.51; Thu, 26 Apr 2018 05:09:11 -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=JGtO24q9; 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 S1756013AbeDZMH1 (ORCPT + 99 others); Thu, 26 Apr 2018 08:07:27 -0400 Received: from mail-it0-f44.google.com ([209.85.214.44]:50859 "EHLO mail-it0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755405AbeDZMHW (ORCPT ); Thu, 26 Apr 2018 08:07:22 -0400 Received: by mail-it0-f44.google.com with SMTP id p3-v6so23561003itc.0 for ; Thu, 26 Apr 2018 05:07:22 -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=BaIUcVJJB1IZT9ZhgMRGp+d8QqN2KWuPLugWs+xnd3U=; b=JGtO24q92TSIJ8hdX5sA8+fwF429ihh7IM57jdGZyl1KNweH9AEkTD/pPVJP5QMRV3 xqLriZjfd6WeWwfpjwij01H7y8MgqdzKS5bBMWbOzW8Mvvo1bTHVjaNxiMYfyi5Axp/q SkuxOw0vf5TeDUfVweuU8x92QiKLRhxFIWpL8= 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=BaIUcVJJB1IZT9ZhgMRGp+d8QqN2KWuPLugWs+xnd3U=; b=ci6eom5jf36VO5qkt9OPHAZiMLJ4pREO8fnpCmCQBiARJG1vFYhn6N1K6DCqTrMZ54 o+qkJ9e35Lpjxh0yntLKLbVFzyyz5b3Z18xhrNuI3joIcAwQfARop7Vhis9ZGp9188kI p5tgJ9IIQeLA+ehwMkQoBxvN2sBTMTp5YOYMOXHf78F5yY4qB3wVGetcOCFiLq7MH9mQ hHCUt++m0H7MwlhxnRut84os+r8ttkpWXhw7Y55GS4B30FtCzkcqv0Tbx4pZmnG0nFvV yFGBeIpfsldOl6Ztp6cnrWAoMUqO9oKE5cMm5OpAhXnOfdsvslHae+6C1qO/SBUDKtav uhEg== X-Gm-Message-State: ALQs6tA0Z3aMOzEMnnpB6p/6QSFE0SARJN4tJ3Ztdb2AJ2gp7Qg/65Rd 0H/u8VJUPKqUqyIs+GZsjl3P7o51mldwLbb69f4wsQ== X-Received: by 2002:a24:c146:: with SMTP id e67-v6mr26472064itg.70.1524744441197; Thu, 26 Apr 2018 05:07:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:2793:0:0:0:0:0 with HTTP; Thu, 26 Apr 2018 05:07:20 -0700 (PDT) In-Reply-To: <20180410203028.11412-1-brgl@bgdev.pl> References: <20180410203028.11412-1-brgl@bgdev.pl> From: Linus Walleij Date: Thu, 26 Apr 2018 14:07:20 +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 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. Yours, Linus Walleij