Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp896595imp; Thu, 21 Feb 2019 13:34:33 -0800 (PST) X-Google-Smtp-Source: AHgI3IaiNsbYyUmLItYgxrvEE452ZVXCqrcE9xMGeJwMMjJwiUMLV0RbYKcOJIIGhfZdPC88J3NA X-Received: by 2002:a63:f553:: with SMTP id e19mr575010pgk.87.1550784873193; Thu, 21 Feb 2019 13:34:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550784873; cv=none; d=google.com; s=arc-20160816; b=vMOqndeig//VTu6gz+aKOSfN/X7naSpwAdBMKZhlGfuX2Jb1+C1z4QG4IkOlVna4rT KEowFqaZKsSDEVcwoB7jFxeEpEmX2IeuxwsvEvC5ZzAy6pzwYCFYIZeSkmaNODX9gptm lGHa0nZlPzWzKMkCwFWP/PHAK+wBAC+zf/uwnKo6ZfkwvvfH9drywATkzFDTzAzc4hqS e1O2Q1nT7zE9FIur8GHyIoMcfHf1bkoxIspC0owqOGDEoNsomstFu2MUkLuOnIwFWzAI Q5+S0EWz+RfXbfeOmJRxk+qZml7Z0m59jZrj7Lx4B40tX/x9hHCWFmkGBVlRKCfBTwTc IwHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=nBZx27vBrdpIQmN2DAtDjZxxyQeAhe+MKciUaCbbRIM=; b=jXDoxoLv59m1xZ6pTgAgYfV0CMsO07xjP+Ij6FTbjogGsJcgB0zKV7uoEhsSbOsPlU NSJCSRDFpDeQE6dPSsh3/ERWpLINB9+iBB1gEku6mFu01YghqgGUKutGTR2b2qwYWydA 4BtHHilwWqY/5QVqg7CEylmG4K19r3U5IR+oN8W3GhH4mGleVQgO/uCzNwovs5oKONgy FShwNBJdtefSqkAAO76trCIsctUD0I43ajDOsuw5yy0TEnHc4VL9c5b9nrjk/SCCO5Lq DB7lRGlSz+6oRPsfwKxXUyfh2C5K+vsGOld7F8h166d62mZShCaY32ta4RrgzUTboCgN 0Q+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7si11942258pgm.335.2019.02.21.13.34.17; Thu, 21 Feb 2019 13:34:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726757AbfBUVdf (ORCPT + 99 others); Thu, 21 Feb 2019 16:33:35 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:50739 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726155AbfBUVde (ORCPT ); Thu, 21 Feb 2019 16:33:34 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from sramani@mellanox.com) with ESMTPS (AES256-SHA encrypted); 21 Feb 2019 23:33:29 +0200 Received: from farm-0002.mtbu.labs.mlnx (farm-0002.mtbu.labs.mlnx [10.15.2.32]) by mtbu-labmailer.labs.mlnx (8.14.4/8.14.4) with ESMTP id x1LLXQOc009779; Thu, 21 Feb 2019 16:33:26 -0500 Received: (from sramani@localhost) by farm-0002.mtbu.labs.mlnx (8.14.7/8.13.8/Submit) id x1LLXMCa032128; Thu, 21 Feb 2019 16:33:22 -0500 From: Shravan Kumar Ramani To: Linus Walleij , Bartosz Golaszewski Cc: Shravan Kumar Ramani , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/1] gpio: add driver for Mellanox BlueField GPIO controller Date: Thu, 21 Feb 2019 16:32:54 -0500 Message-Id: X-Mailer: git-send-email 2.1.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v3 - the naming scheme has been fixed to remove double underscores and use standard variable names - the locking has been updated to protect the entire read/modify operations. Regarding the suggested use of the generic MMIO library, I noticed that bgpio_init only allows for either dirin or dirout to be set, never both. But since our controller has 2 separate registers, using bgpio_init might not be possible here. Shravan Kumar Ramani (1): gpio: add driver for Mellanox BlueField GPIO controller drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-mlxbf.c | 222 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 229 insertions(+) create mode 100644 drivers/gpio/gpio-mlxbf.c -- 2.1.2