Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp472310rwr; Thu, 27 Apr 2023 04:12:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4qT49cvZBx52LfMmCYV5sWrrCtChb/i9tzTSrInUg092DfUCG9iJdW1Qhp7304GX8y2oXh X-Received: by 2002:a05:6a20:748a:b0:f1:c0a1:8035 with SMTP id p10-20020a056a20748a00b000f1c0a18035mr1740019pzd.0.1682593922368; Thu, 27 Apr 2023 04:12:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682593922; cv=none; d=google.com; s=arc-20160816; b=mvlg5HfgkKH5DDyOnXW5rIKm9iPYhXjnovJwI81wPnrzX+lwDALMsdOPoouY9/kMeL EhRBEdtL1CtzFWZ1WouERU6TR70yMAPBZ+wnAvVIDDQ+wxBkHhJHVEhdqe644ZGaELEe bNGdXiKs2GuM0GiwKXsvp1z+7D4K9C2PAdLTWniZx3MyQifRN9/wQETDZ4lJBnk4gi37 09cLxO4PGuK/Zgp4wFbq6M4jclsxprxPMG5Vin2eYFm7QmOK+gNo1QuugGz4Q5iK86O1 VYsvDIcfxpgUVzXgFHFofOR60fEl+M2gLpFGz6/swswYS6/VvmNXRXXR7ZHcFW4QbGTM FfGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=7nBxwpnNO03GZyJpSYtHfr/pjNmOjj8lIN2yS6Xjf24=; b=1AEDDDtCKdlbp95bOBRi1G11aVVjNTA6h9AvRXQ/Y63g3MgFKiPbAKApSloWyzsFes +EYKY2Y6MlBHd2ZrNK6C1q3y5DGwQafYcekfDSC6GbhRSILm/Ls22HldUsnTav2Lvkk5 tXukUwMkv7Y8Xtj0cMnbJxbecZwKwwtKOzKwwFC/YvFjSCp0BeEa+DusioScRxLSJeTx yMFXSMzklxLN2V57eaJZG5U/DbD465OiKEbgnKwUHCMj+SvAr/Przn/aZvig4A4H3S+K hgRMgvjviJmTDh3N6v4RfKm8w+/wjJVVoht2iuKr0l3tLBoozeUUky1UhMtWgZMoVOVB d40g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=I+WaLJX3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y23-20020a63ce17000000b0051b4db5fd75si17985931pgf.850.2023.04.27.04.11.35; Thu, 27 Apr 2023 04:12:02 -0700 (PDT) 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=@gmail.com header.s=20221208 header.b=I+WaLJX3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243654AbjD0LCC (ORCPT + 99 others); Thu, 27 Apr 2023 07:02:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243531AbjD0LCA (ORCPT ); Thu, 27 Apr 2023 07:02:00 -0400 Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E9354C04; Thu, 27 Apr 2023 04:01:58 -0700 (PDT) Received: by mail-qt1-x82c.google.com with SMTP id d75a77b69052e-3eef63eff7eso39567481cf.3; Thu, 27 Apr 2023 04:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682593317; x=1685185317; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7nBxwpnNO03GZyJpSYtHfr/pjNmOjj8lIN2yS6Xjf24=; b=I+WaLJX3uhBEFdIn/emBmqExYzyV8Vv50VMH5hEPm2jr8MOIkbXyZtgQEjddZ1tej6 0n/eunjHB9eSG4Q5yevvxUjAvUqxzk4q1+i13XjoGyhtHpifufdOuNPGGZktU22apVVo OS5L/BtF8uQ4PLbGzJca2XrsbUE3eKuk5TsQe2zCCFE3WOTexzPF6HE5tN0Lcg8zs35i aFbY4VxaTGcq64HlSJ39V/NyZXMO2xEcqPRJUTVest3afWihhuetT9REJjLesWAZfllB JELJbWAaUsmjjGseAB9amDFSXCfSEcwak3HJBsrDWrp/YGHUR6irsFBR15VPkAnxCuBL 9ebA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682593317; x=1685185317; h=content-transfer-encoding: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=7nBxwpnNO03GZyJpSYtHfr/pjNmOjj8lIN2yS6Xjf24=; b=gdzwprZDxQaETgPIc2prFWVw7GuL7ibftyaJkAvO3mUJoPvJIWaxikMrdghFO8et/R pJcnDjqwfaiX6GkFQJdAN4Ml+vOxOjJu8ZnN1qcZ8iw9r0y4hutRaDXJBxc7DUcH6GEh fb+UNiovfUitQEQkNEZD+MrRroK1WjOsKAq+tWZnDkj2Hse5+qS4il+FKh4DBx1wdrlO KHzEAn2A4elUGc7+yd28zeB8dFmvXGMTUchDah/e/qQHUnjBb1LuWlAnh5jVCxeXhAj8 AZdTu+oOLx4veurYSwATx1dwgOu6yW5ZNaJwj28u778iX0VUlOzz28NLhCw+lRxWb4z8 uMGQ== X-Gm-Message-State: AC+VfDyyKUjo/jsK9VU341q/FNMXH6sGsU3uZqe4iEpa4EopiFufRCUa m4vYSCbgg1i3ItFaepZRWYMm3XLZx3+BRQ20XM8= X-Received: by 2002:a05:622a:289:b0:3ef:4a9b:5dca with SMTP id z9-20020a05622a028900b003ef4a9b5dcamr1594011qtw.29.1682593317422; Thu, 27 Apr 2023 04:01:57 -0700 (PDT) MIME-Version: 1.0 References: <20230426220338.430638-1-andreas@kemnade.info> <52453352-74bd-979f-03b6-322489800538@csgroup.eu> <20230427123733.15ad4aa3@aktux> In-Reply-To: From: Andy Shevchenko Date: Thu, 27 Apr 2023 14:01:21 +0300 Message-ID: Subject: Re: [PATCH] gpiolib: fix allocation of mixed dynamic/static GPIOs To: Christophe Leroy Cc: Andreas Kemnade , "linus.walleij@linaro.org" , "brgl@bgdev.pl" , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , ": Tony Lindgren" , Aaro Koskinen , "linux-omap@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Thu, Apr 27, 2023 at 1:55=E2=80=AFPM Christophe Leroy wrote: > Le 27/04/2023 =C3=A0 12:46, Andy Shevchenko a =C3=A9crit : > > On Thu, Apr 27, 2023 at 1:37=E2=80=AFPM Andreas Kemnade wrote: > >> On Thu, 27 Apr 2023 06:20:34 +0000 > >> Christophe Leroy wrote: ... > >> I will send a v2 of this patch with refined logic. > > > > Actually it would be nice to integrate a warning (if we don't have it > > yet) when adding a GPIO chip with a static allocation and which will > > overlap the dynamic base. Can you add that into your v2? > > > > At the time being we have a warning for all static allocations, > allthough their has been some discussion about reverting it, see commit > 502df79b8605 ("gpiolib: Warn on drivers still using static gpiobase > allocation") Ah, even better! Then no need to have a specific one, thanks! --=20 With Best Regards, Andy Shevchenko