Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp996318rwd; Thu, 8 Jun 2023 10:27:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4CWKeO8tE+YfHrIeeUAEk0mBZWlMrW+GEDd7ANcKpHtl7B/Yt9mxdhuvBcjEtXP1MaQfAd X-Received: by 2002:a17:902:d38d:b0:1ac:815e:320b with SMTP id e13-20020a170902d38d00b001ac815e320bmr8279100pld.17.1686245255218; Thu, 08 Jun 2023 10:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686245255; cv=none; d=google.com; s=arc-20160816; b=oJpDoexOiT2tvJOhu7HnHwtO2g1AlUXm4RU9Ng9+PxnjxrF9J61gL5gZEKpJj9CRdW TEHnmhIk3yIpY37m4feDUo6PU/iF06hQEu+fQcCvyobN4A9WmG3WMt2eEba9ObELGyL6 EcQe0W53DTs1Safqh+877KXb+OtILf/9Ot3TBI4Ze02UFy/lWplp70Im89KALn4470Wh cdHhFwn0vtKa1xyZeabQIW2gANxlSgBQj8SyTr6oXhuqJGtkS0wcWhOYSbCgAjAyimhj QJL2qZ9Xuv+MwO7giESFw3af+boEWXn3IOxECqqL0hMsVwYwRQ18obT/AD9wvUWQd5MD BrZA== 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=lPT/tVmJaBHo3MhgPjztTD4skeAHAwVYuwE0Ewq+Bgo=; b=O0Gm1zjhb9Mx3YIpSJ7Wnqevq+GC41Ts7ERsTgfSUEVqkrLoj0CzPoEv8xstHz6icO sx4fBVstxBCaaLzTiSPAGTWpmWUkBDlIRLDnOSM9Sct3cOlW0Ssr93guK05uCtRJibyF 6jbvyUuXecmKzWVul5dXpywtj396sBsXXYQzBiOvXEYuppUfOZfJp2H3Lh63x+JKfXXs 6QGgLQy6SPoVQyuq10Klp7HyLOfuNnfWqinZooQvzTqR9vEI+DEdWhQG5+K6x6hoVIne tiTuBPQcxS8xwbNsn0Q4PnGSmPfxaBATcEoG0Qrp5Z83RfjXPfVk2Lsc1MhNtl5jCw/h C5jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=IHToE8+O; 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 e6-20020a170902cf4600b001b033635461si1289102plg.545.2023.06.08.10.27.22; Thu, 08 Jun 2023 10:27:35 -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=IHToE8+O; 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 S231650AbjFHRPs (ORCPT + 99 others); Thu, 8 Jun 2023 13:15:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231192AbjFHRPq (ORCPT ); Thu, 8 Jun 2023 13:15:46 -0400 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEE88269A; Thu, 8 Jun 2023 10:15:45 -0700 (PDT) Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-39a4eb67c5fso642657b6e.0; Thu, 08 Jun 2023 10:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686244545; x=1688836545; 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=lPT/tVmJaBHo3MhgPjztTD4skeAHAwVYuwE0Ewq+Bgo=; b=IHToE8+OMiQxRi0mkbx/gxmyAs5R1O7sF4BKdLeeQuLnbTKZQHyM548UPM8ZveZczc QjrhCzWFHU/Y9mS/lopiS9jKN270hhXXCaSyWJWZxyh6id7O/o/BTiLf1TfYhScjNkG0 UNQC1MDfUNWN9p4NcJ0I9pe+XK6myRvqeQXVyV25F7D1aSbOnM7uSRqh48IVV02jkCoJ 2vPHZ2lVWN/I8zLFXgj7PUw3zL1B93JKkhnWPHv5HNpxcJw5uRcx3cFH+FZ0sLWZ2Ufr BwQEAxhS6DnqLRzZ+HDPzReSrN+17WMQoDkqSpHC87NxE27uw+YGCZRU6tN7hyogYYE1 siGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686244545; x=1688836545; 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=lPT/tVmJaBHo3MhgPjztTD4skeAHAwVYuwE0Ewq+Bgo=; b=gpALh1nLVenWPTkNSqdUvVYE8mUMXaK92S3lIFfQ3uqsIG+BKHZBOJ7zW1fHx/+fTm wLOTUkE9uRiG0RPecp2TsDi1dywvBSXiCn9lqKQztBfekDzHVC5jfg6l9slZTtaJ0KDR 4zVL4OBTTwjFA+jMLGQmRl/RXdoiGsRg9lehuEGbsX/p7iqqWv2pjr4LErniD9V3WDwp 5Mk1t91PiCRzqw1lPU7SFdgbTD+Sv4zhJHC1VEllr1Vsmgo4f6g9UUl/VkW3EgRaITPX qbexmK5wgHBT01guq3ZnnkIf7vBlU9gQ0OIX7xxXp6dEYI/u2qC+nndayJJjM0YA8Oxn esSQ== X-Gm-Message-State: AC+VfDxLBZcDkeyiL/5sTFZfK6BwuLje4AoSM1fs7WMjU/ute6Sd6RW4 NX+sUTG7rt1cv6eOGkjMd6xAu30scGjVBUrzwGs= X-Received: by 2002:a05:6808:303:b0:39a:bbd4:bab with SMTP id i3-20020a056808030300b0039abbd40babmr5733436oie.31.1686244545170; Thu, 08 Jun 2023 10:15:45 -0700 (PDT) MIME-Version: 1.0 References: <20230606014234.29491-1-nick.hawkins@hpe.com> <20230606014234.29491-3-nick.hawkins@hpe.com> <81CFCEE8-5276-475A-A2AB-A814DEDA04B2@hpe.com> <7FEECBB4-482E-4719-94CA-6D10E4C08078@hpe.com> In-Reply-To: From: Andy Shevchenko Date: Thu, 8 Jun 2023 20:15:09 +0300 Message-ID: Subject: Re: [PATCH v3 2/5] gpio: gxp: Add HPE GXP GPIO To: "Hawkins, Nick" Cc: "Verdun, Jean-Marie" , "linus.walleij@linaro.org" , "brgl@bgdev.pl" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "jdelvare@suse.com" , "linux@roeck-us.net" , "linux-gpio@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hwmon@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, Jun 8, 2023 at 5:58=E2=80=AFPM Hawkins, Nick = wrote: > > > Is there any documents available describing how regmap_gpio > > > populates the GPIO lines? Does it automatically go through and add li= nes > > > for each successful regmap_read and bits per byte? > > > Nope, it assumes one bit per register or something different if xlate > > callback is defined. This is my understanding. That said, it might be > > that this is a limitation which does not allow you to switch to that > > library. > > Thank you for this feedback. After exploring the gpio_regmap it seems > it does not fit my needs. Some of the GPIOs are a combination of > several bits in a byte. For instance the Health LED or Identify LED have > more than 2 states. If acceptable I believe the gxp-gpio-pl.c file should > not use the gpio_regmap. Yes, just mention this reasoning in the cover letter. --=20 With Best Regards, Andy Shevchenko