Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1694734ybh; Tue, 14 Jul 2020 05:03:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLMyhyhXpP1bP7+PzJ0EHwt9Ih0UEA0W4Y/ruLXgfFE1sRntkEJrhUMwWpg2vUB+8RyAfs X-Received: by 2002:a17:906:ce43:: with SMTP id se3mr3978868ejb.543.1594728190670; Tue, 14 Jul 2020 05:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594728190; cv=none; d=google.com; s=arc-20160816; b=M2ryDu1Hyud83/pmYGEIHczJ0TuXLeEUTMnckm46ZHakpoodthIEfRzbURDesP6430 lDo0HvK0Qn+DsnJ7LNwWCarmgfkzITBdqvcCpZupvgiM4G5EELgsYiQ4S+UnZvMOJFIR OlC3rtWvqNlCu8y2jSypUaloTKnOr/aVcHUP1wMMR5f1Uwwcoblk6b1M0NdnGWmV8+st /4v0+OYb9k56O6dpD2+u3b4e+806dPUZ2f3WRpsPLdtwyTyQNsjB0P6DwCm1vSPT430W 9M/RlvwVdNzfrc/hPl4bmHJCQ87jm/oV3FcaiNN0u9Kr+XukrZ664ptgIodZK0p9kETd E/cQ== 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=lSMa6s6bIyE6Jec6M62ACA+S8+aHdoBfNt6JdQLWf4RFqLhW3aWgvRDpdzbm52CarO M1OAbuMGRu/tU83/FNisDqpcn9VVrdiYOLEYqtXpc585UQId4f58GhlzVtOat0fG365m EyKJ6jlgKtrFtf2o/cExaDgOGVLWuwkh6s9lOTtkCpRnsuTiCnDeoBq0WPs/EOLxz+7o hEzQAodDugqcWt1ARO5fMVjy7/ddpl4c9akAM2TJXeVE1Xt9Ilu9bOJ+a9e6UUXneswX hcL2uMBbZ7Lb9KC0+1t5Hl8K8qYWyTIUlnAboGJh9QmBdCHqMZ/ZU9TgN35yO5jQh6gg q7dA== 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 d25si10666519eja.521.2020.07.14.05.02.46; Tue, 14 Jul 2020 05:03:10 -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 S1728186AbgGNMCZ (ORCPT + 99 others); Tue, 14 Jul 2020 08:02:25 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:52644 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728174AbgGNMCX (ORCPT ); Tue, 14 Jul 2020 08:02:23 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from vadimp@mellanox.com) with SMTP; 14 Jul 2020 15:02:18 +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 06EC25dn004353; Tue, 14 Jul 2020 15:02:18 +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 v2 10/11] platform_data/mlxreg: Add presence register field for FAN devices Date: Tue, 14 Jul 2020 15:02:02 +0300 Message-Id: <20200714120203.10352-11-vadimp@mellanox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200714120203.10352-1-vadimp@mellanox.com> References: <20200714120203.10352-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