Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp821598lqb; Wed, 17 Apr 2024 11:40:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW8nn0Kh8y5KmMvrBGZU/6UjccJUb/uiCUweYBe94DFAyzh5naU9uTfBZRc+Wh+giZiKAR/WMmF2oAv1+lu6ckd+sOFYBvxyoi/SENizA== X-Google-Smtp-Source: AGHT+IEneMrKUBR5vgAqqcWw48FA/jhopAQr7De/S09XfuOUQACabuLjyMEtGklUIWIoYwzBitWl X-Received: by 2002:a50:ab50:0:b0:56e:23e3:bdc3 with SMTP id t16-20020a50ab50000000b0056e23e3bdc3mr285520edc.16.1713379212946; Wed, 17 Apr 2024 11:40:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713379212; cv=pass; d=google.com; s=arc-20160816; b=JOtE7tnzfGftuuOBnQI0zpMG39Zz31qsk1XkzBZK0aXXAnlirK7P3MZYMWW425bYH+ C3qfPzqaLg/2adcjnRgpJBlLC0vbaa4fUr87FXUlFqLWhuTtC9x+rpS27h3uRYRK2eOZ omY43ntVFOmTr/GwqxdbaoDxkQF/sAV9WlMg6AsISHM2OfuDIJqHzzjldxUxQknyva+X zELsnw44VzPl23/SPZMmFKWJFqJDFkZaCE9xWp0Gq4IEyna5lgtBVzwYm+N3Y5aoKnmI TpUixHGBjp118myE3u0tDO2nb+B2D+DKq9WZFewgT6NyRWiKX79n2izj4gXlznCyfT3D JdfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=R07SR/oel+G1qKlnViSta7s+zv+5bXS+VJuTgJczuYo=; fh=nXbPkBof6zpS4Cu77yp/bk9VDXQJOb4Q4iW3jqrU6jc=; b=FxdI9bGC+o1oo6l1tBHrByGo96lxduFnN+6oF6uSLe9dB45/5LHgZ8z+at5zhcPGy4 ykTZaBSZ+K57ohyAIT+ROH3IfU4gpNPL7MKgS5bouFtz8iivxWE6h9yiKY5yHLhGNx7D UGFEaufbsNZ7hw3aYiRyfSzZGUBY/2BXkSPFZ2vEaNuTufp4JTlo5Z+JYmsLDU62wz4W q/qRuGw18HuD9vFNHsckeI3uuG2CI6HTaOxyqogW+n7o2tCXBO7d64+oS4P3UEisD1B1 fGl1yMOmrQyU4Uym+jUFHNq3Ue++oqZGCpxF4ttbXFl5igSUsHqh97x2eyv448J6NcVi m76g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=umcjkzaV; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-wireless+bounces-6463-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6463-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n18-20020a5099d2000000b0056c0d76d6c1si7230586edb.238.2024.04.17.11.40.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 11:40:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6463-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=umcjkzaV; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-wireless+bounces-6463-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6463-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4F73F1F24B48 for ; Wed, 17 Apr 2024 18:40:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58F87101C8; Wed, 17 Apr 2024 18:40:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="umcjkzaV" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B805BF519 for ; Wed, 17 Apr 2024 18:40:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713379207; cv=none; b=OACSW4YI5RLsHremXcvA4s+jHEEUCgD12taUHQmhEfvFrY0gdcoEy/cT/U5Z0jTcguABFV2JX/k//NGO/7Xw8URRh5ZP/w5xvjXznZXaf/qPjFZi/X6HDdg2xOabLrF82M7SgF2GPRPvzTT6w8KMW7zUsjglnGHY7mFlFsTVgUA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713379207; c=relaxed/simple; bh=OhXYRkHlutJXyjU0T9+kwMcG8LQ8HZDcv6iWC6fQg0Y=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=EjoI8Pbtb+rT9DiVpfFmK9ZMIkyQLhhHZa4e9e7AZZh8EFJ+RASHojxbeVeBN+4vg4C9eOHS9tKbVX0IhdFPjN5ypR4dQLrCIgMbiStzrZZWaAN8udEpYqKPkga/TrhYAmfNpT59rRZqYoFm28qhMcMr+I1bGGfWq6Hg42H5xk8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=umcjkzaV; arc=none smtp.client-ip=209.85.208.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2d4a8bddc21so1057271fa.0 for ; Wed, 17 Apr 2024 11:40:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1713379204; x=1713984004; darn=vger.kernel.org; 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=R07SR/oel+G1qKlnViSta7s+zv+5bXS+VJuTgJczuYo=; b=umcjkzaVTNG+gtVI1EI484dB5LeE0bVaErV9j4wL7Ey9sG5qfRvnU0zPg980T5+q+T jgOC2Sr3rbjdSLS470TiYqKxkxw7IjbEhzCtuuI/6rvJ9bLVE+tYM7eCQJ1xXt2y35Q4 U5qWq5javu4ogbMJXxWPrqmanUnJp5IrOSmGLadjLS+sUvquB3G/OftgVThInu+DHxxc Cg+qZGlsKyFx9rz7sytfY2C7hMDTAoQM1uVAPm2WEgquj1FmM271rwO/qNEnm8XgIq81 bW2IGTOxONVs1nf3EBF6fDPRVR+eYj/MpN8zlVfPIr6TIvyIPPMVqn83LT6N9zlwm1eg V3mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713379204; x=1713984004; 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=R07SR/oel+G1qKlnViSta7s+zv+5bXS+VJuTgJczuYo=; b=Z5uFfgJ7tUixU8xKVcuKWLitFz+8T3esltoVwHk/L2PQ3U7abrF+RBvK7vFaM/xy2Q 4B0esIAIogTOHo11J9sgr80gRAM/2Xdw21aCubC5erDAi/NSeHNzqHF5Pr6kXFMC5pbU DwjQGX2pISkqbP8sDssBCWCcyYJZTUTzDC2HtaZdwc1Xe0I6/o3jvKpK+LPaCZZKd6j2 y8Gd5OzJe7xlYnLHp6zMJv3pSv69ozJYhGnWGZ3IN9EU8SsDqKFR+MV5K99noQjqJWdR UQNyKbXMLnyKJK+29g04aALjgrMNxebklHgMBq1u3pAM0IExhvhoji4PrOX7Gb+gAAiP voPg== X-Forwarded-Encrypted: i=1; AJvYcCVczXHtLQ3LpFSlgbZqlqjT0fzvvI02k4Y/d7LGN7rjfa3XOSwt+9hFste1syIlGFJrNA+vwG0voJ8quVBErXIOOAElx/qkX+fHV4Lhias= X-Gm-Message-State: AOJu0YwZ+dXgXaomNN/+FhaPEmpkmsJ686VmCW0Riiwm35ks+WyGGMS+ MyJqHZfr5eKErlTcnwquAxYLtodbPOBzohat6nseWYAVDFPI2FGayQUGNvUkk9tnY8lhPWfmKCf l3R1+Lq+5wt+L1LxNMdQ/VPNXHM4O+oa/A9BbQA== X-Received: by 2002:a19:740a:0:b0:513:5fb0:c5ad with SMTP id v10-20020a19740a000000b005135fb0c5admr89280lfe.17.1713379203946; Wed, 17 Apr 2024 11:40:03 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240408231727.396452-1-andriy.shevchenko@linux.intel.com> <20240408231727.396452-2-andriy.shevchenko@linux.intel.com> In-Reply-To: From: Bartosz Golaszewski Date: Wed, 17 Apr 2024 20:39:52 +0200 Message-ID: Subject: Re: [PATCH v2 1/2] gpiolib: Fix a mess with the GPIO_* flags To: Andy Shevchenko Cc: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Bartosz Golaszewski , Kent Gibson , linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, Mika Westerberg , Arend van Spriel , Kalle Valo , Charles Keepax Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 17, 2024 at 10:45=E2=80=AFAM Andy Shevchenko wrote: > > On Tue, Apr 16, 2024 at 11:07:58PM +0200, Bartosz Golaszewski wrote: > > On Tue, Apr 16, 2024 at 4:05=E2=80=AFPM Andy Shevchenko > > wrote: > > > > > > On Tue, Apr 16, 2024 at 02:22:09PM +0200, Linus Walleij wrote: > > > > On Fri, Apr 12, 2024 at 9:44=E2=80=AFPM Bartosz Golaszewski wrote: > > > > > > > > > IIUC include/dt-bindings/ headers should only be used by DT sourc= es > > > > > and code that parses the OF properties. > > > > > > > > That's what I have come to understand as well. > > > > > > > > I wonder if there is something that can be done to enforce it? > > > > > > > > Ideally the code that parses OF properties should have to > > > > opt in to get access to the namespace. > > > > > > Whatever you, guys, come up with as a solution, can it be fixed soone= r than later? > > > I mean, I would appreciate if somebody got it done for v6.9-rcX/v6.10= -rc1 so we don't > > > need to look into this again. > > > > I'm not sure you got what I was saying. I don't think this can be > > fixed quickly. This is just another bunch of technical debt that will > > have to be addressed carefully on a case-by-case basis and run through > > autobuilders in all possible configurations. > > > > This type of include-related issues is always brittle and will lead to > > build failures if we don't consider our moves. > > I proposed a quick fix which was rejected. I think this is still doable i= n a > few steps: > You having proposed a quick fix is not a reason for me to either apply it immediately OR equally promptly provide a proper solution myself. > - align constant values in DT and enum > - drop usage of DT in the kernel code (That's what you want IIUC, however > I disagree with this from technical perspective as DT constants can be = used > in the code as long as they are mapped 1:1 to what code does. That's cu= rrent > state of affairs. OTOH semantically this may be an issue.) It's against the convention of only using dt-bindings headers as I described before. I disagree with your proposition and it seems to me Linus backed me up on this. > - restore enum usage treewide (?) > > Again, the problem now is only in open source / open drain configurations > and there are only a few users of these flags _in kernel_. I do not see > why it can not be done in one or two evenings time range. > So you know what needs doing. I'm at a conference now, I'll be off for a week in April and I also have another conference scheduled for May. If you believe this needs addressing urgently, then I suggest you do it right. Otherwise, I'll get to it when I have the time. Unfortunately my TODO list runneth over. :( But I have to say, I suspect it won't be as easy as you present it because we have so many build configs that may fail. > P.S> > Most of the time I spent when prepared the proposed fix is digging the hi= story > and trying to understand how comes that we have desynchronisation of the = values > over the time. The output of that is the list of Fixes tags. > Thank you, this history is useful and should make its way into git history when we fix this issue. Bart