Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1013484rdf; Wed, 22 Nov 2023 03:23:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhUb2PeVda6yKhuEe7D6092QrcTvY9L2PaG7bggEQAJBPvjJ8xNsH68IcrGpdxzLYQsq8m X-Received: by 2002:a05:6830:2055:b0:6d6:567a:dd18 with SMTP id f21-20020a056830205500b006d6567add18mr2410886otp.34.1700652208207; Wed, 22 Nov 2023 03:23:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700652208; cv=none; d=google.com; s=arc-20160816; b=KUhLgOsr1lsaB/ZXtcdpyKe3EyH0XWdtS+CenK/hr3nw5ttItR+ZMiXCpTceg/IISv RvQXakd4l5r0TAKsLdFxYthdGuIHpoR3kl3ur8PREK8KHA34ALRgqyR5O/vkoNHvqCYx ifaQoKZCaIXPrZi42Q8ctok9ANvnbJsR5vno6lvNsZFE3Zu8Oa3PhmauLz540FaiAn6B aQ0J+G5a/UgJWqU+MXD3R3PYGgWlI3E0T+ixBKyw9NO3ZUy4IGu0E6/v3CDLq9kL+a4b uXQBINDOJTtKSYWrivnNuXS5lzkCZXdiDv/Z1M2ro98zbXy1YEwYV98RnBcHWmlyAcH5 Juhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=YYMNhY1eeMJMiQbeDCCjknLcKh/hlZ3Yb6QWyGZAl7k=; fh=ThLASoY2ns6Oej6L1dsWphRL86J0+FxYvwlxoYpVcko=; b=uST4lvBIV3OZa3U9N3ti7Yc7Dphg1AsFTOyEfGplbqfhZMRSLDQMXtSi1YKtZGkEf/ ndxUwryvpBQxTPfReeOgFQjR5F/cTELsEwxIWZ1qF50SSU8Fxk/zpljRtyQ1Vg1zOEAN TJg47P9vs3IFm4h9N7fwxgXkDsN2wCUSfSPy5PuK/Drtq+B3G5sI3DTh0QrUN4jBErIc COXD6adxzfl+2IKhl6mM2PDfWCKYgvIoswcZ9P8knw1K4TdmZ5hyF05uvYU9pBhMGXJw njkrt/S4qwm+xwwW3o+hT/VZGRXvw7OyajW3I/ld3TjNuKHSXXh8QjtU+wFwFxcb0iV9 +HlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id f12-20020a65400c000000b005c203ac7792si11205240pgp.152.2023.11.22.03.23.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 03:23:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id AE0A380F6956; Wed, 22 Nov 2023 03:23:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343554AbjKVLXQ (ORCPT + 99 others); Wed, 22 Nov 2023 06:23:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229806AbjKVLXO (ORCPT ); Wed, 22 Nov 2023 06:23:14 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06AF312A; Wed, 22 Nov 2023 03:23:10 -0800 (PST) X-IronPort-AV: E=McAfee;i="6600,9927,10901"; a="5226945" X-IronPort-AV: E=Sophos;i="6.04,218,1695711600"; d="scan'208";a="5226945" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2023 03:23:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10901"; a="857687253" X-IronPort-AV: E=Sophos;i="6.04,218,1695711600"; d="scan'208";a="857687253" Received: from smile.fi.intel.com ([10.237.72.54]) by FMSMGA003.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2023 03:23:07 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1r5lJv-0000000G4f6-40Kl; Wed, 22 Nov 2023 13:23:03 +0200 Date: Wed, 22 Nov 2023 13:23:03 +0200 From: Andy Shevchenko To: Nikita Shubin Cc: Hartley Sweeten , Alexander Sverdlin , Russell King , Lukasz Majewski , Linus Walleij , Bartosz Golaszewski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH v5 01/39] gpio: ep93xx: split device in multiple Message-ID: References: <20231122-ep93xx-v5-0-d59a76d5df29@maquefel.me> <20231122-ep93xx-v5-1-d59a76d5df29@maquefel.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231122-ep93xx-v5-1-d59a76d5df29@maquefel.me> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 22 Nov 2023 03:23:25 -0800 (PST) On Wed, Nov 22, 2023 at 11:59:39AM +0300, Nikita Shubin wrote: > Prepare ep93xx SOC gpio to convert into device tree driver: > - dropped banks and legacy defines > - split AB IRQ and make it shared > > We are relying on IRQ number information A, B ports have single shared > IRQ, while F port have dedicated IRQ for each line. > > Also we had to split single ep93xx platform_device into multiple, one > for each port, without this we can't do a full working transition from > legacy platform code into device tree capable. All GPIO_LOOKUP were > change to match new chip namings. ... > @@ -335,9 +430,9 @@ static struct gpiod_lookup_table ep93xx_i2c_gpiod_table = { > .dev_id = "i2c-gpio.0", > .table = { > /* Use local offsets on gpiochip/port "G" */ > - GPIO_LOOKUP_IDX("G", 1, NULL, 0, > + GPIO_LOOKUP_IDX("gpio-ep93xx.6", 1, NULL, 0, > GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN), > - GPIO_LOOKUP_IDX("G", 0, NULL, 1, > + GPIO_LOOKUP_IDX("gpio-ep93xx.6", 0, NULL, 1, > GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN), > }, Before doing this patch, please fix the bug, i.e. missing terminator entry here. If elsewhere the same, fix all of them at once. > }; ... > + gc->label = dev_name(&pdev->dev); > + if (platform_irq_count(pdev) > 0) { > + dev_dbg(&pdev->dev, "setting up irqs for %s\n", dev_name(&pdev->dev)); > + ret = ep93xx_setup_irqs(pdev, egc); > + if (ret) > + dev_err_probe(&pdev->dev, ret, "setup irqs failed"); Non-fatal? > } ... This change LGTM (assuming the bug is fixed), Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko