Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp327193ybg; Mon, 1 Jun 2020 02:23:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyDTP5Z8HFLWSRPwiVFh5yO0ZceoTC2IuKbTKQKtQeISlJ+Hh0X+x/XjYQVVHHmNQQfPMb X-Received: by 2002:aa7:d785:: with SMTP id s5mr6337671edq.17.1591003400584; Mon, 01 Jun 2020 02:23:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591003400; cv=none; d=google.com; s=arc-20160816; b=DnmvoJg/KRe53y8Tca1Y9Afpx4TapMkk5EEJLfPKOHRTBBkdPK91fdtieRCxaLlDgW xWcdImn04uROsZXJIkPv4hkOIAu9FbpTkvcKRryRlvXE1gBjEWreuhP/7Y6xHC7WBMPM rC7hhO4LfZyTjeyjuwJ3p1qlUlUBZ04s1iKKQBhkilfcFRf/oe/lnmGUeIrLirlIQm0V 6JKiM/49wq2GdQADzNsHuaFXpHSrZVAHxKo3C0T2R4f+hIaBAuFVXDHwndiEA84+7ppA CriBrDao0lq+6I49uyfyHkDc7z3bWJJjFGS8ccoBxRdBNU5DOh2lvqsv9HV0gDWPb6t1 cBSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=9nbslZcCA7rj7o4nm8AwOirY7Srxe7QrAN0rq8F/dRE=; b=kuWeJ433msOe5qUHqhc6VDTUdIVXu0woTniZiYnPEW8rynyUTlOQFN00wcmQE9E9EP r8rshYpPiL0RuHyr3wXNreONXqA7FQlxmvX5bh9QZHKn8t1TR9l094qy/dokGMIQqhbN Gtf7M6NBNKKNIs5zfTv/RsvnIjnzrHQztrwHmhTy+Wbk5MytnLbSe3W8ehGChKKOnLnA ICEaSjelHjzt0G8lIScTL1AiXlbCZTfMUTxIuSHfeg69h3uEjPMELD/fU55oaEYpFVzC f2sFceWfrGMTKbVjRUjfzpNLU4Z7UU4DQW8qec+uqnv5ZnSgzw0k7+FIU34Z3ZZuZ6iN ObDg== 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=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yh29si8781508ejb.71.2020.06.01.02.22.58; Mon, 01 Jun 2020 02:23:20 -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=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728012AbgFAJTN (ORCPT + 99 others); Mon, 1 Jun 2020 05:19:13 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:51592 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727959AbgFAJTL (ORCPT ); Mon, 1 Jun 2020 05:19:11 -0400 Received: from Internal Mail-Server by MTLPINE2 (envelope-from vadimp@mellanox.com) with ESMTPS (AES256-SHA encrypted); 1 Jun 2020 12:19:08 +0300 Received: from r-build-lowlevel.mtr.labs.mlnx. (r-build-lowlevel.mtr.labs.mlnx [10.209.0.190]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0519IsSv003135; Mon, 1 Jun 2020 12:19:07 +0300 From: Vadim Pasternak To: andy@infradead.org, dvhart@infradead.org Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Vadim Pasternak Subject: [PATCH platform-next v1 7/8] platform_data/mlxreg: Add presence register field for FAN devices Date: Mon, 1 Jun 2020 12:18:50 +0300 Message-Id: <20200601091851.5491-8-vadimp@mellanox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200601091851.5491-1-vadimp@mellanox.com> References: <20200601091851.5491-1-vadimp@mellanox.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add new field 'reg_prsnt' to the structure 'mlxreg_core_data' to provide the number FAN drawers equpped within the system. The purpose is to allow mapping between FAN drawers and FAN rotors (tachometer), since FAN drawer can be eqipped with a few rotors. Signed-off-by: Vadim Pasternak --- include/linux/platform_data/mlxreg.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/platform_data/mlxreg.h b/include/linux/platform_data/mlxreg.h index a2adc3ad45f2..9cffa9a64ab3 100644 --- a/include/linux/platform_data/mlxreg.h +++ b/include/linux/platform_data/mlxreg.h @@ -75,6 +75,7 @@ struct mlxreg_hotplug_device { * @mask: attribute access mask; * @bit: attribute effective bit; * @capability: attribute capability register; + * @reg_prsnt: attribute presence register; * @mode: access mode; * @np - pointer to node platform associated with attribute; * @hpdev - hotplug device data; @@ -88,6 +89,7 @@ struct mlxreg_core_data { u32 mask; u32 bit; u32 capability; + u32 reg_prsnt; umode_t mode; struct device_node *np; struct mlxreg_hotplug_device hpdev; -- 2.11.0