Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1249550pxf; Fri, 12 Mar 2021 05:42:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzC+JlQXVa9atgQnkkuYQxAJFotLYrzJs/+w/wRWnZT5SS4iIwys60I0nVmjqweY8encXKk X-Received: by 2002:a17:906:d71:: with SMTP id s17mr8885405ejh.126.1615556571191; Fri, 12 Mar 2021 05:42:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615556571; cv=none; d=google.com; s=arc-20160816; b=yHUJsK2Mmy3qlMYATbizPGoCePGEXyw3ZbYcwhq0JrLEsBm/Txyd/P62jeoMRESYsU J5VEGg/P3m6Szc1wWEwBTClSyPpp4HzVMwj0LbS7skGriS3OWQsPCZQmD3o5+t0GTbyE NmT6t5MSEgRy0tx6FDHmgqEwShtaxb7E0rffilKHlVXTw53wBioDLlAjcylO7XJVXdUa HWV2Am0glhZVXkS/Ou7R5ciowJGGDongGv9dFY0cLFl3xNLkPOcgPzl+ff41IfloZwQ7 EYhP7pxAetTCYBN1ObTcffgHTptcfkBH6sqyoUlYa5wFmmciJQKKkYA9KhLoVJunmJam 1XSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SlkfLw8Neaaz5YToNxw3zyE/AeBfKZ9Au+54DNTf9Hg=; b=zN2e9gJs0uDX+l1GwXL+Qa45HAJ3k+j8lFUNznCBoInFazb79wSOCGnoVsQsW/8yf8 nGbEzF8vC6kFXaaTA2BGUCWjOpJS6PCE+duH1/Qm2ABzpqcfNLvBHJNuYtMSMWR6pTyN Yz8iIA0iPRIHFvO9LRu+kxRkZDnMgOj2bkNJ5R5o7zScerCm+wuJI1gTG7suRo8chr+5 CWy+Cxr5V5eVO67/XYJcHtdWaT9mcRnXt7Kc38Bu7lXu3qlQOvFxJDVprypS1kG9OusP 2Vad/YSp1Vh5/IPPbMdPxTFDve43yX9KMw1CK+NMkORwO6Pz0hgD6egbporuEUkAxJTk iKTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=GRlQoI0I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m2si4221998ejb.357.2021.03.12.05.42.28; Fri, 12 Mar 2021 05:42:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=GRlQoI0I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229567AbhCLNl3 (ORCPT + 99 others); Fri, 12 Mar 2021 08:41:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbhCLNlA (ORCPT ); Fri, 12 Mar 2021 08:41:00 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF61EC061574 for ; Fri, 12 Mar 2021 05:40:59 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id ox4so37818000ejb.11 for ; Fri, 12 Mar 2021 05:40:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SlkfLw8Neaaz5YToNxw3zyE/AeBfKZ9Au+54DNTf9Hg=; b=GRlQoI0IO2icO5oP/pQqgiELU7s2k4QaUbN89SPnVCX4EFGKK/xS7bHZaBeSCtYn+x LB7rIUXyM9eUVBqyooCCqKlDe/oplETynuBc0/gZgDMYZ1Auq+yxGJEvEYuh/VdpivN4 S3S+I8544E7KYIw1/57UnsGPUWq+R9A+bCfFB0tDS5oDSs9CMgr+HvmSjPLUsCPEgiAc ccSBLkzKfpv6+QhsRnaQnGDC367d7tJSPtlj5CR26TjytMmSI4wOY9+vNb7SImAG/QOm sZzgP284Dz1oWV/RyGldeAWdCRYeO1TjFHhhps295Xss4Hzht8XMMuNjABIsGkrchzql fA6Q== 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=SlkfLw8Neaaz5YToNxw3zyE/AeBfKZ9Au+54DNTf9Hg=; b=k0QqoGP8Ro9zgvlOWojWlawO+Esi+Up3BHBhCXxhShxa1i3+o/wJkceNeh7j7yCoM4 TLi11bhEi5rPC7PI7cK0Kjihpi+Ygb9+DfR7U6bgKeu72Tcq9yM/FphanRR7wvgSFiwP LvuX73BHpyzLC9sX0faJYO0tkPG8c8ZaKpOT4o3GVpn/ULsWata5K/F9KFfla+sJ5mtY iqoFfOPUNqBixkpZ3MHMSe1HWhJ2lagMryQOuOuUWQXTstEqpaqF2O+DJXsLxQfVJ3Ll lLD/xL3PTcfjIUrn/BZg8nfJvnI4zxiDun2EMvS6DWAMedbzVcGacO+QCMaU0QEGflGz Oflg== X-Gm-Message-State: AOAM530+jPL32qfRXa2yv9NBF9+MkwMNxek8QbNenMGNYvAWVGqKemql QfwWFPmCzPc/bj7Bi+49oETg4987xYEiPQMzcx0AUw== X-Received: by 2002:a17:906:c0c8:: with SMTP id bn8mr8450077ejb.445.1615556458708; Fri, 12 Mar 2021 05:40:58 -0800 (PST) MIME-Version: 1.0 References: <20210309093736.67925-1-andriy.shevchenko@linux.intel.com> In-Reply-To: <20210309093736.67925-1-andriy.shevchenko@linux.intel.com> From: Bartosz Golaszewski Date: Fri, 12 Mar 2021 14:40:47 +0100 Message-ID: Subject: Re: [PATCH v6 0/6] gpiolib: switch to fwnode in the core To: Andy Shevchenko Cc: Mika Westerberg , Linus Walleij , linux-doc , LKML , linux-gpio , ACPI Devel Maling List , Marc Zyngier , Jonathan Corbet , Thomas Gleixner , "Rafael J. Wysocki" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 9, 2021 at 10:37 AM Andy Shevchenko wrote: > > GPIO library uses of_node and fwnode in the core in non-unified way. > The series cleans this up and improves IRQ domain creation for non-OF cases > where currently the names of the domain are 'unknown'. > > This has been tested on Intel Galileo Gen 2. > > It touches GPIO core parts and it's expected that the series is routed via > GPIO tree. > > In v6: > - added tag to the patch 5 (Rafael) > - dropped ops temporary variable (Rafael) > > In v5: > - same as v4 + v3 (patches 1-4/5) in order to route via GPIO tree (Bart) > > In v4: > - based on Rafael's bleeding-edge > - split the rest to two patches (Rafael) > - elaborate WARN() deduplication in the commit message (Rafael) > > In v3: > - fixed subtle bug in gpiod_count > - made irq_domain_add_simple() static inline (Marc) > > In v2: > - added a new patch due to functionality in irq_comain_add_simple() (Linus) > - tagged patches 2-4 (Linus) > - Cc'ed to Rafael > > Andy Shevchenko (6): > irqdomain: Introduce irq_domain_create_simple() API > gpiolib: Unify the checks on fwnode type > gpiolib: Move of_node operations to gpiolib-of and correct fwnode use > gpiolib: Introduce acpi_gpio_dev_init() and call it from core > gpiolib: Reuse device's fwnode to create IRQ domain > gpiolib: Fold conditionals into a simple ternary operator > > Documentation/core-api/irq/irq-domain.rst | 22 ++++---- > drivers/gpio/gpiolib-acpi.c | 7 +++ > drivers/gpio/gpiolib-acpi.h | 4 ++ > drivers/gpio/gpiolib-of.c | 6 ++- > drivers/gpio/gpiolib.c | 62 +++++++++-------------- > include/linux/irqdomain.h | 19 +++++-- > kernel/irq/irqdomain.c | 20 ++++---- > 7 files changed, 75 insertions(+), 65 deletions(-) > > -- > 2.30.1 > Series applied, thanks! Bartosz