Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp480197rwd; Thu, 8 Jun 2023 03:38:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Pdfee4zD5AjPqxwT+EvODyqDbx84wWQnYrCq+s399ZbHP3xf3CG++N0TRgIR2/ShMpASO X-Received: by 2002:a05:6a21:7883:b0:115:8be3:3d76 with SMTP id bf3-20020a056a21788300b001158be33d76mr4252935pzc.6.1686220702818; Thu, 08 Jun 2023 03:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686220702; cv=none; d=google.com; s=arc-20160816; b=A5W8tvAmkWfymQvfa08lAwh6G0Hz5Qc3TwOO3QGGXXgU7G4lqhrHByn1Str5JzZI9+ m61b/oW5ZYR5IJpA9M4TJIAzWWBMF7UG8FLSE6j7SKAh9oqhcHanE5MCDiebpGpZwA64 EEU385PQN1dybiMpuh/xa8cWogQPN4OBtfzpNtwGnnfxLW8N0KdhqToRwgLPQgRuTcVu G26vlQCwgZZTpiN8SW4XfYnsRny9r2guO5lqLmCCQ94q1Gnm0BbhmNLjvcphYjGWiRXm tmki7S2kU3uPDKmrkoAcG49oTDJoefkvuOgdbc42hhVpXv6qY29Nx+j9hVYnJi1nqFKa qjPA== 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=kTGc9+CSoeOkMBrTWKiVuewpGFLPDLPpalEIUi+52BA=; b=AawX6HqTNc42yNreBZpEMDkLoJiX8YzjSw+6R8QTgSPrPTC0CAvzWgNHdeiGy5vSa6 E9PEvfaUFk+n9j33x1UnrVxYzOg0q43Gut5ZkgJmnYaW6g18Q+aFSGuJDo7BXiNabRKA BJENv83EYo00YFWMBy++7+fTBZ5AoKw9BKiDU/pAQQHQBh83YAAiViR0H2zEiInc4m6S Bz7EgAc2zFGEYqgxA9IB9ICPKTwzonEAVdpJ1pdUbfwzxk9wcBRC10vmFJrFqzoQU3EU NW3J3P1r/+1A9UseoUxQHqS0oUCF1vYHMAOWJ63qUyjsoxXq/7S4hWpK1tac/g8tbBLO HPBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kMHuP+l6; 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 b2-20020a170902ed0200b001a2a4eb10d6si906559pld.58.2023.06.08.03.38.10; Thu, 08 Jun 2023 03:38:22 -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=kMHuP+l6; 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 S236045AbjFHKXX (ORCPT + 99 others); Thu, 8 Jun 2023 06:23:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235934AbjFHKXU (ORCPT ); Thu, 8 Jun 2023 06:23:20 -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 D34691FE9; Thu, 8 Jun 2023 03:23:18 -0700 (PDT) Received: by mail-qt1-x82c.google.com with SMTP id d75a77b69052e-3f805551a19so2983371cf.3; Thu, 08 Jun 2023 03:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686219798; x=1688811798; 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=kTGc9+CSoeOkMBrTWKiVuewpGFLPDLPpalEIUi+52BA=; b=kMHuP+l6AXKx3KQnUOjWbYWoygOj0EqlCR/SK6JXYS+kMBFEU6Rc0eujR7UkxtqWiS PFNuVRkOld8O9nw/mj5VeVXmSX0JxgBmHGPhsUBVcyFvSickkEiNBG8j1LhYi5TD+cYd I5+N+MIwfLY7HVC98OSVb1lPZSFebqzyfkpj1onClKIC5dyTV8QvMi90Czq8CiUSKsi1 MG5xq0NPfANPTYKkHgFgqYrKwDAlkoqMTWp15YW84I3d/H5i/0U1/aKkvMN9z+IgVz+p L373YuR0Obd7S9i57laQRaPTyYVPvSjBLsZfwxco9/RvhgjeIVqugHwba9mm8xFVft+h NeYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686219798; x=1688811798; 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=kTGc9+CSoeOkMBrTWKiVuewpGFLPDLPpalEIUi+52BA=; b=BHpe/r0S46w/kFpx62JLs/UI2piH0qyDlPwtKBo0WW610XTztEZqZuKXWQW/fhiJsH srugB8K1ebQpazABhrR6G5lrB3d8ybNfUJu7ZZsuThEVBd+ZcvxaVGU6ZBDijF+5PBtx 9KKA3JmYmsNGJdZa8JPNng/hUiM+u+QhvxgQobXIaexXRsjt0RyA0XQlms5Vc0zzxy+k z4TcQBJbhwWRF90jd0yUMLgwV3cdpDpcmoS9Sm8vzx7NUwEK31h/v1wqmPUYHTqroZRE 104k343EZz6q5Wt7RUbC4GbgQ3Ntx8b6sZ/WudJhbl2skU0KkaOGQUTAnwxIcNODEDRb 2Sgg== X-Gm-Message-State: AC+VfDynQQbVNUdbLEoVDjxY81cG0TxvM3oRb2oo8NRb6i4DAix+NwN2 apWVZN+XzDparXT3HUBctnOCSpiMJlJM4q08lHU= X-Received: by 2002:ac8:5a11:0:b0:3f6:e3aa:a61f with SMTP id n17-20020ac85a11000000b003f6e3aaa61fmr6798441qta.19.1686219797956; Thu, 08 Jun 2023 03:23:17 -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: <7FEECBB4-482E-4719-94CA-6D10E4C08078@hpe.com> From: Andy Shevchenko Date: Thu, 8 Jun 2023 13:22:42 +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 Wed, Jun 7, 2023 at 11:45=E2=80=AFPM Hawkins, Nick wrote: > > > It does care about things the average GPIO controller driver needs to > > repeat. So at least you may try and see how it will look. ... > Is there any documents available describing how regmap_gpio > populates the GPIO lines? Does it automatically go through and add lines > 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. ... > static const struct regmap_config gxp_int_regmap_config =3D { > .reg_bits =3D 8, > .reg_stride =3D 1, AFAIU 0 is the same as 1, so this can be dropped. > .val_bits =3D 8, > .readable_reg =3D gxp_read_write_int_register, > .writeable_reg =3D gxp_read_write_int_register, > .max_register =3D 0x7f > .name =3D "gxp-gpio-pl-int" > }; --=20 With Best Regards, Andy Shevchenko