Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp260578pxb; Mon, 16 Aug 2021 05:03:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxW8T2sZYOekVzvLMa898inQUDZ3yrRPYJO1f76fEOHgbyka6H6cy7+QrfRaQ53CgQvurY X-Received: by 2002:a5d:49c5:: with SMTP id t5mr13081117wrs.161.1629115396811; Mon, 16 Aug 2021 05:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629115396; cv=none; d=google.com; s=arc-20160816; b=vf++yxZt+9yt+gKZ3MFJur0IEKOlj0wrYU+d/UuxemYmrBSlN1pw1WYnYcNdq0TSBL MrvvZR+Ymq4Qt/VkrOo1LGpspwUoIr+Bb9EPUSXdovApNJSVEuQSi8gs2tOMvzl4MPMf OVo3sqD1G9Psx/3rux2IgAHjHNXya5uFmF9j2SqnciErKdTWZBLfJhK8n3ER6Sf4r+Is 4exFXN9ALsDWosfUAYpwcI2UTgEfkgFHp7lK9u2g3tOPpV5ceESkwWp2A3stV8CVW7JN 5/g71V5hD74DNrHio25hWmHUOdppsMOlX0LYwjIhKdk1g4rgEAWEHbcofl5FyEzjT/VU 6/VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=DMySmaT+zZyzRUKd+imGdQAwEIIencE6eILFmWeMgH4=; b=MfsBFNd+ww4/a2J9Cxq01a/pbfm5nKiPI9AjIVovWQrj4azjzkFUVGPLEiXtFpg4B9 YdBzOE8QpX37a0O6YQALI1UtAUv2jNr6TnE3DauJ69qiZUpqMMlAkBS4XbO6YdSeWXTU 7PkuTbGOBMRyoWAccrMgvzevIz2IxVYpbjSclWa6KXTAN4FDNvHC6+8PAhE9uSvoWhJS B7iWoYmLz4uW78ekTpnZ8SjyIJO42nm4QiOYgU2+cPxggRCHZF6c1lMxyqx9/2vsqvSt XmZ2iX4Cti+8j8BWGDDPClnTlP7E6i9NtWt37O95MKvT22yqFndI8+CanR8sTvLMBx3N 6d5A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s12si10540814eju.326.2021.08.16.05.02.52; Mon, 16 Aug 2021 05:03:16 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233484AbhHPMBL (ORCPT + 99 others); Mon, 16 Aug 2021 08:01:11 -0400 Received: from mga07.intel.com ([134.134.136.100]:49131 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234791AbhHPMAz (ORCPT ); Mon, 16 Aug 2021 08:00:55 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10077"; a="279586998" X-IronPort-AV: E=Sophos;i="5.84,324,1620716400"; d="scan'208";a="279586998" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2021 05:00:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,324,1620716400"; d="scan'208";a="572448305" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga004.jf.intel.com with ESMTP; 16 Aug 2021 05:00:03 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id DD688FF; Mon, 16 Aug 2021 15:00:02 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , David Thompson , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, netdev@vger.kernel.org, linux-acpi@vger.kernel.org Cc: Linus Walleij , Bartosz Golaszewski , "David S. Miller" , Jakub Kicinski , "Rafael J. Wysocki" , Asmaa Mnebhi , Liming Sun Subject: [PATCH v1 0/6] gpio: mlxbf2: Introduce proper interrupt handling Date: Mon, 16 Aug 2021 14:59:47 +0300 Message-Id: <20210816115953.72533-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is just a WIP / TODO series based on the discussion [1]. I hope nVidia will finish it and fix the initial problem sooner than later. Bart, Linus, First 4 patches may be directly applied to the tree (they are at least compile-tested, but I believe they won't change any functionality. Patch 5 is some stubs that should have been done in the driver. Patch 6 is follow up removal of custom GPIO IRQ handling from Mellanox GBE driver. Both of them are quite far from finishing, but it's a start for nVidia to develop and test proper solution. In any case, I will probably sent end this week the ACPI IRQ abuse part from the GBE driver (I won't touch OF path). ARs for nVidia: 0) review this series; 1) properly develop GPIO driver; 2) replace custom code with correct one; 3) send the work for review to GPIO and ACPI maintainers (basically list of this series). On my side I will help you if you have any questions regarding to GPIO and ACPI. Andy Shevchenko (6): gpio: mlxbf2: Convert to device PM ops gpio: mlxbf2: Drop wrong use of ACPI_PTR() gpio: mlxbf2: Use devm_platform_ioremap_resource() gpio: mlxbf2: Use DEFINE_RES_MEM_NAMED() helper macro TODO: gpio: mlxbf2: Introduce IRQ support TODO: net: mellanox: mlxbf_gige: Replace non-standard interrupt handling drivers/gpio/gpio-mlxbf2.c | 151 ++++++++++--- .../mellanox/mlxbf_gige/mlxbf_gige_gpio.c | 212 ------------------ 2 files changed, 120 insertions(+), 243 deletions(-) delete mode 100644 drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_gpio.c -- 2.30.2