Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1629579pxb; Thu, 4 Mar 2021 16:56:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVcSWmjsLwgrA/UiegkCS8X1Dg83c3Dt7twPcVPxUVwpObb72+WORYLbvWNqQS/QGINj4Y X-Received: by 2002:a05:6e02:12b4:: with SMTP id f20mr6408008ilr.220.1614905795088; Thu, 04 Mar 2021 16:56:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614905795; cv=none; d=google.com; s=arc-20160816; b=aJRzDlQdNf8MZ2YeHISTcK1LLi+wifks4gsDGQAj4hz1pZ7Oc//pvQj7ph25J/uIm0 9uUPIp5Z+GCYH5OHU2TExNiWvFBDEZ5YNhzC2nNv7TEtNFccRyFI10NDu6+if0xDqT1U 9qBC1wzc8RTdh8R37uCwHXJpQnoGRs4V0cryTxT0PuYfd0f2RPS1nsyREgm7AyHqQOp0 8gFcfR7aYlTgbgIH0HEnVPNSlNtVKhlXBK1BnSenuyV2POxuOSoESYonuBQtGRTA08Gt 3wDYK1ZC7eACN66l96Nop6yCJoQmX8EYL6KvqQuhdFX5a99KfeNLaxlXNOb/uRIV8TVR heTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:dpickate:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=H++D3ZTosfaOIQcRaD6PUlS57zATeVGogkhzrQuBKGQ=; b=MD+95C89/pHfkWhviwgaGcAn96pJfveeO22DUd/8BEI7++77s3moehhOC1rNikDaDU pjpPnTRNmxmaHUsWeW60JR6tz8HTlhXdtyJKQPiXeiRz+9cKlQNUfUaGz2jbLikyhYcY 91UmkbzzADTVWkE2pZMQ6MUhp2KqHWPD2VudmKZiiOwvurEYJf+hcuG1ojjR7SXfxNN4 VGq3M0U2xWP0DRsLQY8yf+hqJ+l+fowbeMqO8jeDKr3G5z1twi9rKGQxy1qqkpDx4BOL CXBmK/Cb7Lc7LQUOciVQWgcKTh9KU1joWgD3Am4vZ6wfbOc2R3IMuVPxpq9CFZqnGnup 1sPg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si698402ili.37.2021.03.04.16.56.21; Thu, 04 Mar 2021 16:56:35 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238370AbhCDUPW (ORCPT + 99 others); Thu, 4 Mar 2021 15:15:22 -0500 Received: from mga05.intel.com ([192.55.52.43]:5834 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231969AbhCDUOt (ORCPT ); Thu, 4 Mar 2021 15:14:49 -0500 IronPort-SDR: YO/FLFfDw4tnRZkcQIPLAGvCdKGVJDVTxhd3vztJsTDlPbbfKq68IskTbvYh+LG5WljWjhGBjC NpPj042nO1sQ== X-IronPort-AV: E=McAfee;i="6000,8403,9913"; a="272503499" X-IronPort-AV: E=Sophos;i="5.81,223,1610438400"; d="scan'208";a="272503499" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2021 12:13:04 -0800 IronPort-SDR: H8UOjlVe2VjlElLE3qi1l3wJxlLtg9vCpsu46m3t/Fhog1blthGSx96INfDnUEk2GfTXvthpN4 VcF4GZ1vu7tQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,223,1610438400"; d="scan'208";a="384614071" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga002.jf.intel.com with ESMTP; 04 Mar 2021 12:13:00 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 6D48D236; Thu, 4 Mar 2021 22:13:00 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , Mika Westerberg , Linus Walleij , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org Cc: Marc Zyngier , Jonathan Corbet , Bartosz Golaszewski , Thomas Gleixner , "Rafael J. Wysocki" Subject: [PATCH v3 0/5] gpiolib: switch to fwnode in the core Date: Thu, 4 Mar 2021 22:12:48 +0200 Message-Id: <20210304201253.14652-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Dpickate: Thu, 4 Mar 2021 22:09:39 +0200 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. In v3: - fix subtle bug in gpiod_count - make 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 (5): 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 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 | 66 +++++++++-------------- include/linux/irqdomain.h | 19 +++++-- kernel/irq/irqdomain.c | 20 +++---- 7 files changed, 77 insertions(+), 67 deletions(-) -- 2.30.1