Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1394990pxf; Fri, 19 Mar 2021 06:26:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKJWfoDjCk7cANCz6LZSr+tMq+5riQLm2d/mYgLMAE1CXrpiKxqIHLYsJMYCgfxarRSlSr X-Received: by 2002:aa7:d74b:: with SMTP id a11mr9419365eds.92.1616160372121; Fri, 19 Mar 2021 06:26:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616160372; cv=none; d=google.com; s=arc-20160816; b=evZmUNX9bVzpWIZX1tTAUQCaiex0iNcsXo0YZINmT9wMFtZWA5XvYc56N9RYmeOzKJ P1l9sPJ4OIk0wA1qk5zZxTKc1IA/g5ObFuxuiQ9y9Y/LZLmQRk4a7X0R0liKfSUfa5ug vO1q2pVWrQ+gzVEQiqJoLXD9zL9PK8npDkQaqP7e583CIQro3KstXc7tD5kc1XpW1zDw z7ik60YKPeol2IqaSrXsFWFSprWAu+vJPuBi7Gb+m/2jk3aP3bfzuJKr5Mv3VslahNtn zo6w2EBErxR7ZQyixpeSL/T31ijyeonhchaWnOpg2EQ5dKnUrJ1hgSs5JIVl4Hz/T48J gD3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=9IqH8UL3xB6LAoualTDgucZ1845HArTK0uri+hIntWE=; b=AIwpzG+KT9rT+V9y5kGTYLtadRUL/89KrBEnE+B8QQ8vrYvTJTBXP/EaBBgPbU4aVn xsy3X/OwnxjUcMm8cJsmUsMz3S7Z1sM1AIFuA7wvCxf07XNbwodVu9J83Q25yObkSPlT cAlOlRh7AOCjS0HwskKTlvMOc8q9WmTrhFI7+4SWQapatWgukhm4vGlndiGgH1arjlXd LKUrNjQBKgneIbFYPTT0fFuwlaKz1QJs1DvnXBl5nzKKhqlDkFVS/RIHyOyn739RkFjG tIDKV4ZHDo4YyJSc43MjDhavOo9eoFz762gZRh/xZDQdxjcmwdgSttas26YA+qOnsJ2k He9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb26si4233143ejb.144.2021.03.19.06.25.48; Fri, 19 Mar 2021 06:26:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229937AbhCSNXm (ORCPT + 99 others); Fri, 19 Mar 2021 09:23:42 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:37120 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229805AbhCSNXd (ORCPT ); Fri, 19 Mar 2021 09:23:33 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lNF69-00BtB8-BQ; Fri, 19 Mar 2021 14:23:29 +0100 Date: Fri, 19 Mar 2021 14:23:29 +0100 From: Andrew Lunn To: Asmaa Mnebhi Cc: "linus.walleij@linaro.org" , "bgolaszewski@baylibre.com" , David Thompson , "linux-kernel@vger.kernel.org" , "linux-gpio@vger.kernel.org" Subject: Re: [PATCH v1 1/1] gpio: Support interrupts in gpio-mlxbf2.c Message-ID: References: <1614120685-7452-1-git-send-email-Asmaa@mellanox.com> <1614120685-7452-2-git-send-email-Asmaa@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > We cannot really pass it through the ACPI table because the ACPI > table is common to all BlueField-2 boards. And each board may have > a different GPIO pin associated with a particular function. This is > why we use ACPI properties instead of GpioInt(). So that the > bootloader can change the GPIO pin value based on the board id > detected at boot time. That sounds very broken. ACPI describes the hardware. If the hardware is different, you need different ACPI. And i assume the ACPI spec says GpioInt() is the correct way to do this, and does not say you can hack around limitations of your bootloader using properties? Andrew