From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CCFACA0ECB for ; Mon, 11 Sep 2023 21:58:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354844AbjIKVzi (ORCPT ); Mon, 11 Sep 2023 17:55:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235883AbjIKJo6 (ORCPT ); Mon, 11 Sep 2023 05:44:58 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77034E40 for ; Mon, 11 Sep 2023 02:44:52 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-401ec23be82so47234025e9.0 for ; Mon, 11 Sep 2023 02:44:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1694425491; x=1695030291; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=R0/rqbO9zdTuj+XkCrDufr//URbhGp0n8nPQ9514Kz8=; b=PUTTscD58RX1mh/d1df8HZM2ilvxGzeYUcpXbZZn0KeldCLUphJTNhPJCBQL6PpAAs kN9OZntU1pYI1L+jwHustC+6iegUCtzvlcuw4PmfM0dPEK2DGXzFKuCSo4nHHZDdkbQv BOTNuFACAT4tdRuEudWgB86+1GBTiOtlUNuxFGYuHFQOEdu0ToUcmbBc1ftWafOaSfRi 8k/0TqjeGe6Vkw5noos2QB63990ZS80O1DDa3MRP1yv81+g6iLJZahFrmoWE06COc/CX a6E+K13Go1iUeT7mNhpAaIoTuoswIsMagmZZGm5YrMBniPbsSd2tZumjseZT4Ld4r5Mh wPgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694425491; x=1695030291; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=R0/rqbO9zdTuj+XkCrDufr//URbhGp0n8nPQ9514Kz8=; b=HE2mmy7xNepExaCbjo+1LhoK0vC/jN4FmYZhVI37+BLkhdg5DGmKqfi4rudPQ3zuwq RyOq1pMc1iBTiGh0KM9BtlgGczRcnOJceon06goAE7qNGM6P8T46vtZ41UCpvztv5Z33 nz1MU+LcqZy5Rrqo+ITqOhtleKzOJL1F7fCV97HxLgxYIBKNzM/lo+77TZPeZAAvi6si TVu22J9L0kI3A5twdnEQKTjndFNgDCT6hIrYEvjhXp5Y45gru+z3IdiUN8MFDL3+35Wf qFOZm5mH76T18CIgnKqSb26pJ+TS7MOKPfYTMen/NAbgI7U1cYfZFpDO5fI4rT6f60vE y4tw== X-Gm-Message-State: AOJu0Yw9tcq8pM8bVzfTrilDIWCVCo0+BVaThrpuwALmCKgt0IFcPuvx 1iu+FirMWjTT0ZDHkkhOELjqCg== X-Google-Smtp-Source: AGHT+IFoi4Dei8OscALHdqZx2NassPsp3aooQcZ1UAgjVrAk+Jw6ryGdd0bnraeWRUOWi1pzfF528Q== X-Received: by 2002:a1c:7508:0:b0:3fe:d1e9:e6b8 with SMTP id o8-20020a1c7508000000b003fed1e9e6b8mr8066631wmc.12.1694425490282; Mon, 11 Sep 2023 02:44:50 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:c2b1:675e:119e:2497]) by smtp.gmail.com with ESMTPSA id c26-20020a7bc01a000000b003feeb082a9fsm9627985wmb.3.2023.09.11.02.44.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Sep 2023 02:44:49 -0700 (PDT) From: Bartosz Golaszewski To: Dipen Patel , Thierry Reding , Jonathan Hunter Cc: timestamp@lists.linux.dev, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Linus Walleij Subject: [PATCH] hte: tegra194: improve the GPIO-related comment Date: Mon, 11 Sep 2023 11:44:43 +0200 Message-Id: <20230911094443.14040-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Using any of the GPIO interfaces using the global numberspace is deprecated. Make it clear in the comment. Signed-off-by: Bartosz Golaszewski Acked-by: Linus Walleij --- This was part of a wider series but since this is independent, I'm sending it separately. drivers/hte/hte-tegra194.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/hte/hte-tegra194.c b/drivers/hte/hte-tegra194.c index 6fe6897047ac..9fd3c00ff695 100644 --- a/drivers/hte/hte-tegra194.c +++ b/drivers/hte/hte-tegra194.c @@ -407,12 +407,15 @@ static int tegra_hte_line_xlate(struct hte_chip *gc, return -EINVAL; /* + * GPIO consumers can access GPIOs in two ways: * - * There are two paths GPIO consumers can take as follows: - * 1) The consumer (gpiolib-cdev for example) which uses GPIO global - * number which gets assigned run time. - * 2) The consumer passing GPIO from the DT which is assigned - * statically for example by using TEGRA194_AON_GPIO gpio DT binding. + * 1) Using the global GPIO numberspace. + * + * This is the old, now DEPRECATED method and should not be used in + * new code. TODO: Check if tegra is even concerned by this. + * + * 2) Using GPIO descriptors that can be assigned to consumer devices + * using device-tree, ACPI or lookup tables. * * The code below addresses both the consumer use cases and maps into * HTE/GTE namespace. -- 2.39.2