Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4443673rdh; Wed, 29 Nov 2023 01:27:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEy3QzwnGfF2wDPXFTtM+m6KwOjbBfhor/u/6u77vhgt4XA0Pkez9VVPTDVV9ff7mMQ9MRM X-Received: by 2002:a05:6808:1188:b0:3a9:bc8d:42ed with SMTP id j8-20020a056808118800b003a9bc8d42edmr18910792oil.43.1701250032998; Wed, 29 Nov 2023 01:27:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701250032; cv=none; d=google.com; s=arc-20160816; b=0nvzfG5G6lYdMlv32q6xsVM2Ybn1OWvlewn3i4eVhzSsB6nVmWZG/J9p9hCTOtM+rZ 95kJw0NgY6i+gFwGPB9WXZESjhbIskt/sL3HLBoYzYO+RYcFcui25ndi45xb9K6mikLz vpEwFscaDnZf7q1Y09zZgz96hMtdsV9cgoUrhZXcFy5MRlJg02wNL1E4GIkE9/fgWd+1 Gy0Txcqki0/zrSY6Jn6QNGyGCbcufYoLAjkm0qZAm49PnkpJ4uV8mtDtDJEEaTBYXlYz sCywcmF0ohxUOJLQJKADBS16JBEOS/nVloh2mDwf6eaDrOtK5BAdHZ38os/kD1SffB58 wo9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Pyzdrru1TpZaP5gqNIarl3a9lF+dp32BUtGOuRhRCxM=; fh=De/CSYxnQ/G+Dph321MgbuN9gJfvDkPo+ScVAKTccIo=; b=H/jsSdzVgL6pxd+xErhd0f/GjvlJ82Dw0ZmzUOkMXEOU0ESxAs94AIy4EgiayheNkj JeR4UGpSPPGq8DKOHpBQqwpBTfuGXsHwPW0VMK6GUAXJfmrPrn1+N/o2s9yewO1hxaso EdXDeYIVToGY7Z6D7KBYnY4LRBxL/0bEWaangLcBPgrIwxYLM+ZyGRWil+8HE84+QXR0 of13STuG9xoWQmuStBvr3cB0S/J0ubI7S66bc1xhtTSMtZlpJKt0pJ/3a2cMvUBVmbfc z6N768UBQI3CZRMpdp05MsRcNB7Z7ATkeUUP1PgLgYVlqzHSDGcdlqz1hSpsAOuZ03tI iS9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IV6kCOIt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id m13-20020a634c4d000000b005b8f298110csi13849001pgl.6.2023.11.29.01.27.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 01:27:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IV6kCOIt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id AF6EF80ACC71; Wed, 29 Nov 2023 01:27:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229535AbjK2J0u (ORCPT + 99 others); Wed, 29 Nov 2023 04:26:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230184AbjK2J0q (ORCPT ); Wed, 29 Nov 2023 04:26:46 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CD391BD5 for ; Wed, 29 Nov 2023 01:26:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701250012; x=1732786012; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=poiK1yo9lPuaW4EnpGFoANhEWrq6YSdTlqrnepy9ZE4=; b=IV6kCOItPI7o9obj192WehxRJXNxiCiuqD8Tn4wn0n7IWpWlnJWv4j5m 9nfGyPILGYrtggiXDus07SkX9kcKGM61G+cYfqKeoR8U7Cq6q8ltAbvtc e3ENALSVe0T/cvnv+rm+qWjStDOIWCOmdxmhMZMvbYqboTzIJY7IBPvzQ qsEyk/xBJXicDdN7AW1Y+uOx7LLFLJSLLsVg0xMO1+3XDhEaJn5/x61+W fSXMpWRWDR41f5DDG/ctWie8VtG4R0XYueYlUIb6GyNK4QZ0cZaDPQenw jAmZrIOrW4LEGznwm/2iDDLb1i8Q1ualHWVusQtRkI+v2IGXmYULgh6mc Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10908"; a="395950737" X-IronPort-AV: E=Sophos;i="6.04,235,1695711600"; d="scan'208";a="395950737" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 01:26:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10908"; a="768845355" X-IronPort-AV: E=Sophos;i="6.04,235,1695711600"; d="scan'208";a="768845355" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 01:26:50 -0800 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 25FFC11FC11; Wed, 29 Nov 2023 11:26:47 +0200 (EET) Date: Wed, 29 Nov 2023 09:26:47 +0000 From: Sakari Ailus To: Wentong Wu Cc: gregkh@linuxfoundation.org, tomas.winkler@intel.com, hdegoede@redhat.com, andriy.shevchenko@linux.intel.com, alexander.usyskin@intel.com, zhifeng.wang@intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] mei: Add MEI hardware support for IVSC device Message-ID: References: <1701174846-16316-1-git-send-email-wentong.wu@intel.com> <1701174846-16316-3-git-send-email-wentong.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1701174846-16316-3-git-send-email-wentong.wu@intel.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 29 Nov 2023 01:27:09 -0800 (PST) Hi Wentong, On Tue, Nov 28, 2023 at 08:34:06PM +0800, Wentong Wu wrote: > The protocol used for the IVSC device to communicate with HOST is MEI. > The MEI hardware interfaces for the IVSC device are implemented. > > The APIs are exposed by MEI framework to mei clients, e.g. mei_csi and > mei_ace. > > Signed-off-by: Wentong Wu > Reviewed-by: Alexander Usyskin > Reviewed-by: Sakari Ailus > --- > drivers/misc/mei/Kconfig | 13 ++ > drivers/misc/mei/Makefile | 3 + > drivers/misc/mei/platform-vsc.c | 442 ++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 458 insertions(+) > create mode 100644 drivers/misc/mei/platform-vsc.c > > diff --git a/drivers/misc/mei/Kconfig b/drivers/misc/mei/Kconfig > index 470957a..2c5312b 100644 > --- a/drivers/misc/mei/Kconfig > +++ b/drivers/misc/mei/Kconfig > @@ -71,6 +71,19 @@ config INTEL_MEI_VSC_HW > This driver can also be built as a module. If so, the module > will be called mei-vsc-hw. > > +config INTEL_MEI_VSC > + tristate "Intel visual sensing controller device with ME interface" > + select INTEL_MEI_VSC_HW Changing the select here to depends on addresses the Kconfig option dependency issue (as select just blindly selects the options while ignoring their dependencies). I wouldn't mind having a single Kconfig option for the two drivers either. They're always used together, aren't they? > + depends on INTEL_MEI > + help > + Intel MEI over SPI driver for Intel visual sensing controller > + (IVSC) device embedded in IA platform. It supports camera sharing > + between IVSC for context sensing and IPU for typical media usage. > + Select this config will enable transport layer for IVSC device. > + > + This driver can also be built as a module. If so, the module > + will be called mei-vsc. > + > source "drivers/misc/mei/hdcp/Kconfig" > source "drivers/misc/mei/pxp/Kconfig" > source "drivers/misc/mei/gsc_proxy/Kconfig" -- Regards, Sakari Ailus