Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3042079pxa; Tue, 18 Aug 2020 05:14:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3gz85smkCdlRL7Qwu+FF6J4nWPq+0pZXOQME9+EGnvWLz2WYAsMV7vn36qQWrFGZhSKWm X-Received: by 2002:a17:906:3b8d:: with SMTP id u13mr20630684ejf.205.1597752866494; Tue, 18 Aug 2020 05:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597752866; cv=none; d=google.com; s=arc-20160816; b=W7KjpCRrRPxZ69J29f6Vz0NG/ezauq9hpTvtO4xNU3HwWDIN5VelpqIpoIdf7rWSc1 hyUAcKXei0RKSpLuUiUiD5PL5m64Mz9wBxvpwfaIkCFXOSACza2ati/HyiuqopIxqLUg ltoIPMd3A76kJe+mD7b4r6ZR89iIp2JtA2bQf6OR99TNoimy1YnNYiNufBY0AyqPbb1F 0+Ag9GQ1cPyGqA5KdQ95qdKegJc7QkdhCM8giiLr9WkbmiLyyM79thphFx+emff/b0pl 4Lc3vuRmsFu0sEUF6KiZaiZd3sr0+heS4qXedAgkvbvq51E1AJzsBnoEIiZqAre2p/mt WhHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=++0gwBfUNkJuZzMk3bgnrP9npQ5LGSFDhvgNs4y7ULQ=; b=fXPnPAB51sF1iX9aW+21sHKUOPUe2Zc/zgqz53zRMUqBZhZDYtEmO90aO2u7PVtICn 3GLUb3lqHvicOLF+mM8Mbjb9dMpbR2TtssuQwdaXb7SfvIExbsiK8yM1f4xh20thI7Mu EEI/Bn0hStedU56aoewlgDo5TGRpJx91s9zjpm5DRN34XcIVIPomzjT9gnzOtv85xTnm 4d0w6aNCumm5Ko9svoJw1ekHukfnsUUAuJUtTiwsoMcvd4/Dal6uVkysuT0l2BeEUho5 pGX8jADdMiCdXmfxsDw7pmClb0OWTGuROr00ECvFSyUD2G+Bdeb+RN1qoq2kzsV1kPHv fw5w== 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 f1si13027367edm.270.2020.08.18.05.14.02; Tue, 18 Aug 2020 05:14:26 -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 S1726868AbgHRMKd (ORCPT + 99 others); Tue, 18 Aug 2020 08:10:33 -0400 Received: from mga07.intel.com ([134.134.136.100]:58739 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726792AbgHRMKX (ORCPT ); Tue, 18 Aug 2020 08:10:23 -0400 IronPort-SDR: mss5JKyw5bR37BTig66GpIaVZ7J11/Xx/yxgLG9Syh8ia8Hjnx6nqYIn+dmrNOcdWoiMj8DHHc p5wZ/x6+mArA== X-IronPort-AV: E=McAfee;i="6000,8403,9716"; a="219200404" X-IronPort-AV: E=Sophos;i="5.76,327,1592895600"; d="scan'208";a="219200404" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2020 05:10:22 -0700 IronPort-SDR: zSuB06hyksvsmMMuIP6as8mjjlqkZ3hBWy5xVqaEyU84k1/Xie1+GafoiiGPM0liAP9IPuA/K9 +4nwSTWMkFeg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,327,1592895600"; d="scan'208";a="326713055" Received: from twinkler-lnx.jer.intel.com ([10.12.91.138]) by orsmga008.jf.intel.com with ESMTP; 18 Aug 2020 05:10:20 -0700 From: Tomas Winkler To: Greg Kroah-Hartman Cc: Alexander Usyskin , linux-kernel@vger.kernel.org, Tomas Winkler Subject: [char-misc-next 10/13] mei: bus: unconditionally enable clients with vtag support Date: Tue, 18 Aug 2020 14:51:44 +0300 Message-Id: <20200818115147.2567012-11-tomas.winkler@intel.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200818115147.2567012-1-tomas.winkler@intel.com> References: <20200818115147.2567012-1-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Usyskin The list of clients is only visible via mei client bus. Enabling vtag clients on the mei client bus allows user-space to enumerate clients with vtag support by traversing the mei bus on sysfs. This feature is required for ACRN device model service. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/misc/mei/bus-fixup.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/misc/mei/bus-fixup.c b/drivers/misc/mei/bus-fixup.c index 07ba16d46690..4e30fa98fe7d 100644 --- a/drivers/misc/mei/bus-fixup.c +++ b/drivers/misc/mei/bus-fixup.c @@ -463,6 +463,17 @@ static void mei_nfc(struct mei_cl_device *cldev) dev_dbg(bus->dev, "end of fixup match = %d\n", cldev->do_match); } +/** + * vt_support - enable on bus clients with vtag support + * + * @cldev: me clients device + */ +static void vt_support(struct mei_cl_device *cldev) +{ + if (cldev->me_cl->props.vt_supported == 1) + cldev->do_match = 1; +} + #define MEI_FIXUP(_uuid, _hook) { _uuid, _hook } static struct mei_fixup { @@ -476,6 +487,7 @@ static struct mei_fixup { MEI_FIXUP(MEI_UUID_WD, mei_wd), MEI_FIXUP(MEI_UUID_MKHIF_FIX, mei_mkhi_fix), MEI_FIXUP(MEI_UUID_HDCP, whitelist), + MEI_FIXUP(MEI_UUID_ANY, vt_support), }; /** -- 2.25.4