Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6617757rwb; Wed, 18 Jan 2023 07:23:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXtc3u9+PF09Uwxa8OzJCcnXc9t/eFpHxCi92szJsISqC5VJePjVWPNkM4tuD1FDbBPOml9+ X-Received: by 2002:a05:6a20:6903:b0:ad:f155:7b5b with SMTP id q3-20020a056a20690300b000adf1557b5bmr9009218pzj.13.1674055399304; Wed, 18 Jan 2023 07:23:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674055399; cv=none; d=google.com; s=arc-20160816; b=LfdgCrDv9VxGO1tZF/L9XFg9EPF/00DaOOhyRnyHrdphI6ueoNe5BPxC87VH29eTZe 7OzKT6Fy4qDkbtPTAAnRFB7g9GqGo/F+2MwkQzcRVLFr+JSME6ciomky/MMu2dOzVfl6 BGyLMXos8T+URw1bUA7DP637kGmQoWBJaQJr93PwsdNhSmRXB3HXYIz/XqVq28idsas8 RTEWA9bko24ZOMJkbi4Ued51TkyzYn4uVJSGbKrqvxDRQEwzRM5oerbvv8v1idEU6r4s HSdbyCsjau6Be6dXM+JhvMhspnRNsO6zVxAfk/zEcoFnYUyuO7mNDk7wFv6zMOMfRstM oq1g== 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=WzJ2AllVpCQjdDeFrpPYqEG5GyPx2XaaVjsya9b6Kng=; b=B8GWzfQiBy9XPLKKzE5Z6EFL8/9nCIB5SougKSBu7A/0ueg1e0KoR86cRVw6Mfnxam cM8iXDQj5JBywAPZxLMle/YFX7OXfSE/v03e5I82ZDv3oxq3YQFPgDrVFhORS66rIcd+ gOgpz4O7WASjyjC5WDTnTYCCI3RNEKR630upPzhB3z0tBGrtwVWUILZqqljVXpNjlaTM GxpMTJUscCFEXkRB8XRC8ssi8QIRW6fmwD/rJlpMyt941JNhxdzOhSih8FS985cqfb5E jBTtuGDsHjqsqxp/q/VsYtIw4fyu91mwZbyVXhxY4q70Xl1cPvZ0S8iJgb67imNm3Hwn Qpeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="UKh/IBSJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p24-20020a634f58000000b004ad24b461a1si35346059pgl.283.2023.01.18.07.23.13; Wed, 18 Jan 2023 07:23:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="UKh/IBSJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231277AbjAROfX (ORCPT + 45 others); Wed, 18 Jan 2023 09:35:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231425AbjAROe5 (ORCPT ); Wed, 18 Jan 2023 09:34:57 -0500 Received: from mail-vs1-xe2c.google.com (mail-vs1-xe2c.google.com [IPv6:2607:f8b0:4864:20::e2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12D351F904 for ; Wed, 18 Jan 2023 06:24:16 -0800 (PST) Received: by mail-vs1-xe2c.google.com with SMTP id 187so5161911vsv.10 for ; Wed, 18 Jan 2023 06:24:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WzJ2AllVpCQjdDeFrpPYqEG5GyPx2XaaVjsya9b6Kng=; b=UKh/IBSJeoV3qpYibYlpgVMcNDXtbZ1ff8t2MOLEkig51Nt8AZ5i8VDUXqwPmnPfSK F7JVwIsb9/NOV7WmwCOOuf5sB9a7v7GIM4sjD6PKJ5OlSys2UnvZIAX3fZbtepjou2GE KcFm9q0YRHso4ID/U4icP3SxyD66DF/xukld5G0dksGo52qRw211zoJxE/SgzkiYz620 XuuYXbg+YjRb6yxJNo0ib0el4QmivpoAxiNKmz/N9L19yIITzCubeZta947yz/jt7aCv RbD+IDsOwyfqtQEyIcfVgW1p5oDzZArDMYIcMIHEXx+M422/5PhMVN4zEOcuR1Qu0QDs z3PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WzJ2AllVpCQjdDeFrpPYqEG5GyPx2XaaVjsya9b6Kng=; b=P7DEuCe827Cfn4POx7upPNGjMN049cQft+b7i1Yo4ldtWerC5KtyKkxneYv2Y7JFLL pjFQvNefJ/bpAb+YAQ0s0Z1TBiIj7SjSUtG5eGG6cKRXmveJ7RVkxV+bVGWFV7z5aHgc YJtuhyYuXrz0IPHutXTHygXiC05uGjlZXw/rAkuWckeKBWkTC39/GdIoIbW+hd3C6EIS nCEIY+/EregpLcf469Yd6c4UDMKwGxxOtJP9Hl9g65YY/G0GeATkRS8LNu4M578+dtnn ne4BdO+N2sYd+AtncqnoZ8xZjIhZxVCsIbaO7wuCg+1TWwBtqJ924d+h97klCqEI1v2A tmxQ== X-Gm-Message-State: AFqh2koHxqMOOUtz11Qxmabdgv+AywxyGnJuTr7yaWL8Y8woobRZZ4cS gFuu2bx/OYJER2JZ48iTI2uh1Kb+DRUp4bfV42BW5w== X-Received: by 2002:a67:f282:0:b0:3ce:88b3:d7da with SMTP id m2-20020a67f282000000b003ce88b3d7damr959458vsk.62.1674051855145; Wed, 18 Jan 2023 06:24:15 -0800 (PST) MIME-Version: 1.0 References: <20230117100845.16708-1-nikita.shubin@maquefel.me> In-Reply-To: <20230117100845.16708-1-nikita.shubin@maquefel.me> From: Bartosz Golaszewski Date: Wed, 18 Jan 2023 15:24:04 +0100 Message-ID: Subject: Re: [PATCH 1/2] gpio: ep93xx: convert driver to DT To: Nikita Shubin Cc: linux-gpio@vger.kernel.org, Linus Walleij , Hartley Sweeten , Alexander Sverdlin , Russell King , Lukasz Majewski , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 17, 2023 at 11:08 AM Nikita Shubin wrote: > > This converts ep93xx SOC gpio 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 > - add lookup table for leds > > Fixes: 482c27273f52 ("ARM: ep93xx: renumber interrupts") > Signed-off-by: Nikita Shubin > Reviewed-by: Linus Walleij > --- > rfc->v0 > Linus Walleij: > - dropped chip-labels > - rebase on the top of your leds patch: > https://lore.kernel.org/linux-arm-kernel/20230111132210.134478-1-linus.walleij@linaro.org/T/ > - i am converting to immutable after this patch, otherwise it will > require a fix wich is very similiar to this patch > > Hope changes are not that significant so i can still apply Rb tag. > --- > arch/arm/mach-ep93xx/core.c | 129 +++++++++- > arch/arm/mach-ep93xx/edb93xx.c | 2 +- > arch/arm/mach-ep93xx/simone.c | 4 +- > arch/arm/mach-ep93xx/ts72xx.c | 4 +- > arch/arm/mach-ep93xx/vision_ep9307.c | 10 +- > drivers/gpio/gpio-ep93xx.c | 350 +++++++++++---------------- > 6 files changed, 265 insertions(+), 234 deletions(-) > This has a Fixes tag but it's a rather big commit. I hope this is not meant to be backported to stable branches? Doesn't look like stable material to me. Could you change the order of the patches so that we can send the immutable irqchip conversion for stable? Bart