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 AC437ECAAA1 for ; Tue, 6 Sep 2022 16:11:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233802AbiIFQLd (ORCPT ); Tue, 6 Sep 2022 12:11:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233857AbiIFQLJ (ORCPT ); Tue, 6 Sep 2022 12:11:09 -0400 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52FF69D67D; Tue, 6 Sep 2022 08:35:46 -0700 (PDT) Received: by mail-qk1-x72b.google.com with SMTP id m5so8442108qkk.1; Tue, 06 Sep 2022 08:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=B1nLx7OoVE2iJLBf662NA/6uPa0hL0tfjj0xV5A5JwE=; b=KyLnvCFNtl1vS7lqTBYFzyVn96UTNw1UtCJfRvlvxChOCyk4ViH1zG2N9gJRUETjva NB2Kh6yZuisVcrBeOwEIwA+3FzGOXwmDT7qDFwsP2aGXSc00qDMkHY0Xtc/w5xMxpHkc Qx+CZtvh1lDMe5u9Jm/h3ANbysNk8PnfkgapTmoWEFuyi0O/MoPKOAzhKbBNd1QtKll+ 9E5sUiVe5wWREqQrl5giXgCs1NjJHiO59F+H8SGeEvbj5wEc+MtVp2l5fUr7X21gXq+j CK35MP9iMfJq75J4FH4wPKmsJwKvwqQ1nVT1zT2Q+sLfOwzCVapv3R3kRT4A8JspKjtP 8A0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=B1nLx7OoVE2iJLBf662NA/6uPa0hL0tfjj0xV5A5JwE=; b=fTo4e+P1HNqbvd1QfYjKx+KIYuD6dIXPALTb/KN8teEMb0b1QlmZuOZObFfeeUVlm/ wESS4RduMStaz68RyMUrgwaoprluzmNAgvK5hDjz5NzbaO8birJNGhD2yg+qknFBeV+5 lv+WfyC78r8uC15Ai/0vNDEvHA+hMTzMibmLr4yXm4MssgApddhH5zVRMyM1eFjBqbnw UHYixMFJ8a0ceNeALn52Y6pHlRS/zOl8Xf/tCGiLQHRg92vEB5H9x5ijoFs55yHNt9qB 8NgOlqtKZMCubLZ+wbzoaaPrFoZ9FCxoJPuCXPibvuZrpalp8r0dnfbSOTBMrymN0nZG SkPQ== X-Gm-Message-State: ACgBeo3pI5Qh1UWiwRMPC8fpClT69RrLfBzC1bIvOLdPmHQFwdskPnXn /mkzxy5fxXErDW2G8+xp+iqukSzGdcTAp3GpyYY= X-Google-Smtp-Source: AA6agR5s5OyR/c7EiS1x6fQLfWbXYhQQDXm62DJk5gxHUpMPj4rHxmkXnxHBEa0JbQeSdtKgEIFgl52/pZK84yIcEas= X-Received: by 2002:ae9:e311:0:b0:6ba:e711:fb27 with SMTP id v17-20020ae9e311000000b006bae711fb27mr36442218qkf.320.1662478545225; Tue, 06 Sep 2022 08:35:45 -0700 (PDT) MIME-Version: 1.0 References: <20220418141416.27529-1-asmaa@nvidia.com> In-Reply-To: From: Andy Shevchenko Date: Tue, 6 Sep 2022 18:35:09 +0300 Message-ID: Subject: Re: [PATCH v1 1/1] Add driver for Mellanox BlueField-3 GPIO controller To: Asmaa Mnebhi Cc: Linus Walleij , "bgolaszewski@baylibre.com" , "linux-gpio@vger.kernel.org" , "linux-acpi@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Tue, Sep 6, 2022 at 5:08 PM Asmaa Mnebhi wrote: > -----Original Message----- > From: Linus Walleij > Sent: Friday, September 2, 2022 5:55 PM > On Fri, Sep 2, 2022 at 5:55 PM Asmaa Mnebhi wrote: ... > > I would like that to be controlled by the ACPI table only. > > I don't know if it is possible to restrict GPIOs to just be used from ACPI. On Intel platforms that's done with HW assistance, i.e. firmware configures special registers inside pin control / GPIO address space that reflect ownership. The driver rejects any attempts to request such GPIOs. As a workaround one may simply disable all user space interfaces (as you already discussed in this thread). -- With Best Regards, Andy Shevchenko