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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF721C4338F for ; Thu, 12 Aug 2021 14:15:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B6CDE6109D for ; Thu, 12 Aug 2021 14:15:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229649AbhHLOQI (ORCPT ); Thu, 12 Aug 2021 10:16:08 -0400 Received: from mga17.intel.com ([192.55.52.151]:19856 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbhHLOQH (ORCPT ); Thu, 12 Aug 2021 10:16:07 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10074"; a="195628583" X-IronPort-AV: E=Sophos;i="5.84,316,1620716400"; d="scan'208";a="195628583" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2021 07:15:42 -0700 X-IronPort-AV: E=Sophos;i="5.84,316,1620716400"; d="scan'208";a="507750091" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2021 07:15:40 -0700 Received: from andy by smile with local (Exim 4.94.2) (envelope-from ) id 1mEBUc-008fGr-0L; Thu, 12 Aug 2021 17:15:34 +0300 Date: Thu, 12 Aug 2021 17:15:34 +0300 From: Andy Shevchenko To: Linux GPIO , linux-acpi@vger.kernel.org, "Rafael J. Wysocki" , Linus Walleij , Bartosz Golaszewski Cc: David Thompson , Asmaa Mnebhi , Liming Sun , "David S. Miller" , Hans de Goede Subject: Re: Possible ACPI abuse in Mellanox BlueField Gigabit Ethernet driver Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org +Cc: Hans (on FYI basis) On Thu, Aug 12, 2021 at 05:13:38PM +0300, Andy Shevchenko wrote: > Hi! > > From time to time I do grep kernel for ACPI_RESOURCE_TYPE_GPIO usage. > Recently the drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_gpio.c > caught my eye. > > Looking into the code I see that it looks like misunderstanding of how ACPI > works with GPIOs. First of all, I would like to inform that this code has > been properly reviewed neither by GPIO nor by ACPI maintainers. Second, before > going it to the real conclusions (and potential revert of this), I would like > to see the real ACPI tables for this and some explanations from the authors of > the driver about GPIO usage here (from hw and sw perspectives). > > It makes sense to discuss ASAP, otherwise I would really want to revert it. -- With Best Regards, Andy Shevchenko