Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4264158pxb; Tue, 17 Nov 2020 16:18:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4i7/NG3lMvn0fus66cs0+QR4+IK9y00dYcC9P/l3mNqVhkbvpD/lY89HzstJHqgEHLS0V X-Received: by 2002:a17:906:5945:: with SMTP id g5mr4698209ejr.553.1605658720271; Tue, 17 Nov 2020 16:18:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605658720; cv=none; d=google.com; s=arc-20160816; b=RbKMBmGL7PNJCgax3dvyHM/hzZxtcuvU3IISY+nF2vr9QsbRqweMv8rVsMprzWLIKh qvzMpFS2FGjHKEgjsTqDnrM4yG5iHN45m6Jn7qdeewTwShAj8lCQZtRK5KMQ2HvvG/vT 80ELadyDF4eEd5sSeabWFopdXWd8hBtrOhckyzkqtsHOh1BBCGNz3hAQiLVGnZceBsBt pOTbecKcm9hgDlN9vtn1O2pu4ND/IMUU1+83zCgH7IdtSWsQRI6yPDq/2gSBvlZN98OS FpjwuBjGlD+jPPRj/NNGv+0w4wHlK/jfNWhzgtCY+NJurIOnPMGr3Hdavy3Rid7x6zBs yhBg== 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=eWrhbtxMaDvAA/hqZtx4oXS0+2NR8hi9OYu+UfYxShM=; b=kHe5v2IeUoz4NuxctH5lCivDGVRbnAmqY9ZwxnfZ/ScZ/EYZ6CtR3NdJV2TwdK2KIJ 4gGbmpHw1Sj1zUFHOhlI+QfakABTrqD2Wq2Kr1qCtEfDSD2Fl9202wqKiGH1qfZMmonb 2nst119pvQx7b26UJ79ejxeD2ZIbyi666a5f5LOGRSHPeetoNf6pK2wUefp96M2hP6VD 6elzxkErmktBlp1gEAmWhfG5YAd+vHcptwWqa7/EQcKuEVJ6RNtyocFOS+MGLr7cKxXQ cF2nix4j/cyq9zdltJYaiyPAd8b2SNf+KzASaIOSnhJ+Ni8Rtg0ApWwfEq5gbDgCcoF7 Qs/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eW9ytAHG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc16si15271671edb.391.2020.11.17.16.18.15; Tue, 17 Nov 2020 16:18:40 -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=@linaro.org header.s=google header.b=eW9ytAHG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726182AbgKRAPp (ORCPT + 99 others); Tue, 17 Nov 2020 19:15:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbgKRAPp (ORCPT ); Tue, 17 Nov 2020 19:15:45 -0500 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1383C0613CF for ; Tue, 17 Nov 2020 16:15:43 -0800 (PST) Received: by mail-lj1-x242.google.com with SMTP id y16so394704ljh.0 for ; Tue, 17 Nov 2020 16:15:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eWrhbtxMaDvAA/hqZtx4oXS0+2NR8hi9OYu+UfYxShM=; b=eW9ytAHGHiQg0UjXTBR2k5vHOB0NAXJ6YaKbN8S6L09yrDcZNbH8+z4GWfYUzfhW3t dzMuoT3NE4oZTkYczeQRW/gufIrbJN9ca7ZWH66NdhDmdwSjgTYMibESojmaoZcq35wr XoAMrI3eC4yy9MqqxMDiaV+3CaIUqfFiQoy6Fkv/o2sCnuzTiXxiA2Jccqvh0lvkzmAK mAU3B6JFW9rh8NE8GDLQ4Udmys+N76Ac8+xucJwBSxI7phXYbeoBsjddLquKWuLgWWiN cwXKFVUjAxBLCdQ2aYWpz/872jnOmvRxvJSki6BzeUoJKxNxzMRRTFwbPlWHoN5XW+85 pzbg== 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=eWrhbtxMaDvAA/hqZtx4oXS0+2NR8hi9OYu+UfYxShM=; b=UgfqqiIzwGInxr/dXLgxPFXIrAZ4MKy+vv6KveDvgE/w88sB/s0tS+Uj622GSS83S1 03bBWKHkcAs/odgy2aso7JBydwLHSsGkIdfmaqumVBNR3kTU0/yxe/Vjp6FSeehDM0o4 YLQJARgZ0wbIoyL6s4ASD1Geql1/M1YKsh78wOYLzhRhT72rvoJZ2q+fhm6DA0QGxxPM uRcLHrjHcMhlkQ35z84vnl2TtI24UCj1xuwKrJ3bFgvox5pIGSvbwK9UaJ0euLupmjhH SJoW31qApiHxELWlcdpLeCQa/L0Xaoa48SzeuVaV9DpDclwgeG9ovY0iVpIzU0g0lFmS LGKw== X-Gm-Message-State: AOAM531Sch6OpdW0CZlYVy8KwXCXq3hwDhSF/duQfoaiwKbTn8c1ZVRk j/g/zHRw9jQuCLm1T9bvNvC4MnwshYDbjoN+e6WgKfqKun2s2bUX X-Received: by 2002:a2e:998e:: with SMTP id w14mr3143826lji.100.1605658542224; Tue, 17 Nov 2020 16:15:42 -0800 (PST) MIME-Version: 1.0 References: <1605201148-4508-1-git-send-email-srinivas.neeli@xilinx.com> <1605201148-4508-6-git-send-email-srinivas.neeli@xilinx.com> In-Reply-To: <1605201148-4508-6-git-send-email-srinivas.neeli@xilinx.com> From: Linus Walleij Date: Wed, 18 Nov 2020 01:15:31 +0100 Message-ID: Subject: Re: [LINUX PATCH V3 5/9] gpio: gpio-xilinx: Add interrupt support To: Srinivas Neeli Cc: Bartosz Golaszewski , Michal Simek , Shubhrajyoti Datta , sgoud@xilinx.com, Robert Hancock , "open list:GPIO SUBSYSTEM" , Linux ARM , "linux-kernel@vger.kernel.org" , git@xilinx.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Srinivas! On Thu, Nov 12, 2020 at 6:12 PM Srinivas Neeli wrote: > Adds interrupt support to the Xilinx GPIO driver so that rising and > falling edge line events can be supported. Since interrupt support is > an optional feature in the Xilinx IP, the driver continues to support > devices which have no interrupt provided. > > Signed-off-by: Robert Hancock > Signed-off-by: Shubhrajyoti Datta > Signed-off-by: Srinivas Neeli (...) > config GPIO_XILINX > tristate "Xilinx GPIO support" > + select GPIOLIB_IRQCHIP > + depends on OF_GPIO > help > Say yes here to support the Xilinx FPGA GPIO device Please add: select IRQ_DOMAIN_HIERARCHY Because your driver requires this. > + /* Update cells with gpio-cells value */ > + if (of_property_read_u32(np, "#gpio-cells", &cells)) > + dev_dbg(&pdev->dev, "Missing gpio-cells property\n"); (...) > + chip->gc.of_gpio_n_cells = cells; Why is this necessary? Mention in the commit. Other than that this looks very good and good use of the hierarchical IRQ feature in gpiolib! Yours, Linus Walleij