Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1492194imm; Sun, 27 May 2018 08:14:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqbxcaMDf3bpzDkwGrUBjtDOutIm8pCc17QLMCTL5+m/G6HJGKCywJXuJ0SHF/Ogvor/n1X X-Received: by 2002:a63:2ace:: with SMTP id q197-v6mr7989689pgq.60.1527434090985; Sun, 27 May 2018 08:14:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527434090; cv=none; d=google.com; s=arc-20160816; b=XZGYc4wRJLgC5VLD4vbbYhY1LGq7AcAiLVdCvwvfa9zoFW55d7Zv3PWEPj5rQ8h2uQ xxe6eQZE2gBklFh/rKh11YIYZ2Dkh9ppQFKYgNfFy7fkOEarSELStU6oUbI9bN4i74v8 s/ER/prGRtADwqEiswS57IBzojK8MX3qR+zOe1+B3vSYmPWgq7QSIIaP+kPDKhpZcVEf 3XKkBMhyCxhmtyvlqkQbgAFYFxQM3720DhsejBisB+/IedC4A7PR2WgJxj74hOFO8eeG dxeZG7K6fMuyMJI/aAA15kHLi1P81nEjHDKzAq6oW5HpZGKeV/xLz3j8c/UBhDQd3xqb NzIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=k8YY/QcVWIJmdyC8Tfvac9bPukg3IPoLBJGO6dp7CFs=; b=fkh/TCo6u0pPG9pHsuHoHos5TGfSk5HdLmRXGSjMoqv66sKO8MnICATum2fFxQwXEP 2INKnggdcgemGvr3rVligVgiHVlqWl2fWnBXw3L8eA4byJngI+X8X2w2E/govWhaTEOn B+UDrHKDribAytDXbp4xgGzD3VhwNYUDmBF5yjKzCbGm7RcnA/L5XGpyaF+jBHFOf7Qq MXncvaWOAeV1M/sMd0bfPOEuM0hFOJs2Rr3JLG0269njIEDRdeoNG4L2y12UguXJOXw5 DndJieiMhdddyGMqDLQfqjsHRaTeLx4mNM9ujuw9WriiIyT6W1hYt+lxxYwjmUOydUwK Jwtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zQN93lXw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si24650853plq.56.2018.05.27.08.14.33; Sun, 27 May 2018 08:14:50 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=zQN93lXw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032787AbeE0POJ (ORCPT + 99 others); Sun, 27 May 2018 11:14:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:44726 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032595AbeE0POH (ORCPT ); Sun, 27 May 2018 11:14:07 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E2FF920849; Sun, 27 May 2018 15:14:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527434047; bh=6kaBVCpRhqgRIX4LE8L43l37rYXmpqk7NWwgqpZdrNY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zQN93lXwhOW6xT2lagdSPuvdBGaxMoYMlMTcSEcXxJaofXaoyEr9uJB87OUkaNarL xvZTod24ZdytKFgl5lW13hOjPoTey8gYRlzNpDEjTJN/Lm8ruKwlpG3+/5KCGl7aD3 KlqCp2fCtcSNKedaWMVx51Wiffz+znV9+CwgardA= Date: Sun, 27 May 2018 17:13:47 +0200 From: Greg KH To: Vadim Pasternak Cc: dvhart@infradead.org, andy.shevchenko@gmail.com, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, jiri@resnulli.us, michaelsh@mellanox.com, ivecera@redhat.com Subject: Re: [PATCH v3 6/7] platform/mellanox: Introduce support for Mellanox register access driver Message-ID: <20180527151347.GA15487@kroah.com> References: <1527439664-127317-1-git-send-email-vadimp@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527439664-127317-1-git-send-email-vadimp@mellanox.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 27, 2018 at 04:47:43PM +0000, Vadim Pasternak wrote: > Introduce new Mellanox platform driver to allow access to Mellanox > programmable device register space trough sysfs interface. > The driver purpose is to provide sysfs interface for user space for the > registers essential for system control and monitoring. > The sets of registers for sysfs access are supposed to be defined per > system type bases and include the registers related to system resets > operation, system reset causes monitoring and some kinds of mux selection. > > Signed-off-by: Vadim Pasternak > --- > v1->v2: > Changed added by Vadim: > - Change ---help--- to help in Kconfig, according to new requirements; > v2->v3: > Comments pointed out by Darren: > - Remove conditional assignment per attribute mode type, because mode > will guard against not permitted access. > Verified by Vadim. > --- > drivers/platform/mellanox/Kconfig | 11 ++ > drivers/platform/mellanox/Makefile | 1 + > drivers/platform/mellanox/mlxreg-io.c | 203 ++++++++++++++++++++++++++++++++++ > 3 files changed, 215 insertions(+) > create mode 100644 drivers/platform/mellanox/mlxreg-io.c > > diff --git a/drivers/platform/mellanox/Kconfig b/drivers/platform/mellanox/Kconfig > index 591bccd..ddfae9fc 100644 > --- a/drivers/platform/mellanox/Kconfig > +++ b/drivers/platform/mellanox/Kconfig > @@ -23,4 +23,15 @@ config MLXREG_HOTPLUG > This driver handles hot-plug events for the power suppliers, power > cables and fans on the wide range Mellanox IB and Ethernet systems. > > +config MLXREG_IO > + tristate "Mellanox platform register access driver support" > + depends on REGMAP > + depends on HWMON > + help > + This driver allows access to Mellanox programmable device register > + space trough sysfs interface. The sets of registers for sysfs access > + are defined per system type bases and includes the registers related > + to system resets operation, system reset causes monitoring and some > + kinds of mux selection. No Documentation/ABI/ entries for these new sysfs files? Not good :( greg k-h