Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1515252pxf; Fri, 19 Mar 2021 08:46:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9AHkWVvHzeuhoiHKNxzFscQyQiloEqTSLIMymNkxbrFRcNegExSKGO+r0DhzexJKLjzQf X-Received: by 2002:a17:906:6a06:: with SMTP id o6mr4965858ejr.306.1616168784036; Fri, 19 Mar 2021 08:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616168784; cv=none; d=google.com; s=arc-20160816; b=BdoSvq1DJEa4uV8yFyG3JNGxFpskWuMiSCkpnTchA3N+e5URFMaxatMqOLEh1eQx8H 45/aC3gscXuTjWoZdMy9NzcLWte4cc3rR98lLGHKTzJG+QU/AVUMT6mYj6shTiHcXFQi 0+xlH8quKRdev4pl8hht4Wfo5ymhtHD4Hh5Uts/ctWHaYJ7wk59ufS2R8YC9af/52ec/ hFp1xhbFCRywZqu19yiXEwTYYEtAKtAAqDIpuNoIjG8xmYyfXREmhfQQYjfhfeOswNi3 BOiuJTan9Zpx7lYRe4tJAhdD11/c88iXb6IGz721JA/dwTfcR+7VZ17Vqcsd8lYeOOsk hwVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GCZHlMVbKbX32874y5u+F3c4bj2Tk2XhYaf8cu3E8HE=; b=XIXbFn/rm+L+T/6BV/bSYzSVEJ7wvDVv8rn/HFIJsMVhza1KVcq/c6xP8YxdAtGTVv 5XmtIRfhszK9UDTvGPSjcNJch7BLqQ3VaQldKyv6SXOgfClbVm11pmRkisuHj2SptQXn MIHIQwTgWQIeBsiZJI7CpIec4gulqygi4iAoj5qRgiWuM9nzFCoMk/BqhKIOadTe6Kx1 fps0jFHe2ECRKjov0/wgyWMNlRuS6OQIJCDxGsVxWFqb5Ei4w3HR9FNIUdCTMW881hgL 9pxOLcgszH4d8wGhCiuCdAdqeqrBXXEy6UKXsxrwUfoeYdVW5DMNvg5AVemZAmnF82VJ ewvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l+O0jQxl; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lf1si4360600ejc.433.2021.03.19.08.46.01; Fri, 19 Mar 2021 08:46:24 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l+O0jQxl; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230274AbhCSPpA (ORCPT + 99 others); Fri, 19 Mar 2021 11:45:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230154AbhCSPoh (ORCPT ); Fri, 19 Mar 2021 11:44:37 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A2ACC06174A; Fri, 19 Mar 2021 08:44:37 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id f2-20020a17090a4a82b02900c67bf8dc69so6923355pjh.1; Fri, 19 Mar 2021 08:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GCZHlMVbKbX32874y5u+F3c4bj2Tk2XhYaf8cu3E8HE=; b=l+O0jQxlTczTV3nNthVLdfWmQXIB3gKHaG4yeFD4Ch3O5eEVQ2ZT5M+KgYfraDLYN8 c5NLJVa3eEsVNUjCwBPswPDo6cFwecwIQWZ2Vx4oWuUCx98qX+lu5wG7GKzi42Xhm1j7 Uq2VMC/o4X0JZeFMW9w4qdT9l2KJqas7nixIERCSLSmzAVBEhesVNQr4CWi1eRZS2tRE kEzNr5EW2nGKbcBQBUb3g+JVLVhdqO6uySnrRoaRmif99WN8Y49tW6meh3OYsSHHbqAE kuUNCT5qng+A0irhlEvZFPzD9OoHfIJx6ekguEsGNRLofLuwBJN5wOjnRabxcHWRE2l4 z/1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GCZHlMVbKbX32874y5u+F3c4bj2Tk2XhYaf8cu3E8HE=; b=mBza0SSgLHj/UA+dfy1rL92WHp5VvLdshAW/Vi2nhGXv4Y2A740RZz5N3JVN+1jfn8 k7MtTgxyH5hAPnyqwKH2+AKYU2IY9SDpUp18nT/Nwj6k3NToiuUW7qkTPpfU58jvAqhv /PZ2dkGcqCEvKiQGKBIelcg6ga+njQ1/ePzW9yg/Sgl1T3ICByoqLAsTeInULTm0zVLr OV+7OAcKE8FNA/ZyuXSTQCeBZDZ6FcanrlXZERE02iwtwU0J/OhwjOO/ntO/XkGBkCaP +OL0CrmTv1d2Bj/tuPN226uTJWW/EFAT8ilZiIn78dHBmE2GJVv9epnbVJref8YtkAiy +1nA== X-Gm-Message-State: AOAM533wp0lurqYlbMju7xmcbniumGag++CtxUwyBxcFCpItQbt+xhjv e6PnqOsdJMoDPhOBbHyetxAS79XeosHp9PB/JtI= X-Received: by 2002:a17:90a:b311:: with SMTP id d17mr10586290pjr.228.1616168676916; Fri, 19 Mar 2021 08:44:36 -0700 (PDT) MIME-Version: 1.0 References: <1614120685-7452-1-git-send-email-Asmaa@mellanox.com> <1614120685-7452-2-git-send-email-Asmaa@mellanox.com> In-Reply-To: From: Andy Shevchenko Date: Fri, 19 Mar 2021 17:44:20 +0200 Message-ID: Subject: Re: [PATCH v1 1/1] gpio: Support interrupts in gpio-mlxbf2.c To: Andrew Lunn Cc: Asmaa Mnebhi , "linus.walleij@linaro.org" , "bgolaszewski@baylibre.com" , David Thompson , "linux-kernel@vger.kernel.org" , "linux-gpio@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 19, 2021 at 3:24 PM Andrew Lunn wrote: > > > 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? It seems my reply didn't make the mailing list, but I'm on the same page with you. On x86 boards the difference is usually provided by firmware via NVS and corresponding macro(s). One may google for any DSDT for x86 and check for, for instance, GNUM() macro and Co. -- With Best Regards, Andy Shevchenko