Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3805927rdh; Tue, 28 Nov 2023 04:35:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFsNQh+hgNJoDo6huYUXq4PAE/OUldrH0lsJp+Mbh2TU3YMUkRGxzDLcRWrnFNWw48WyGzh X-Received: by 2002:a05:6a21:a5a8:b0:18c:3fe8:d8cc with SMTP id gd40-20020a056a21a5a800b0018c3fe8d8ccmr13332980pzc.28.1701174915493; Tue, 28 Nov 2023 04:35:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701174915; cv=none; d=google.com; s=arc-20160816; b=NjqRqhvUGStkpY+xt0AtPSffiqgG7XirUBqPs2aE8PMoNc8IHkm8nWab7Krm0DTdaS NEiTlcXKllhTLLQ83sdn9L2Ch8OqWl1vkWjiWfpT3dbU0XfTG+W0V7bxFd6kgJ5nKAHw +zqS7TB1n3cKvBrfY/PoBVFniQXX2fGAc1mDpbm/1+A/y1pINBJ5wbRDj3mGQ7MVa0IV zyBYbtaWK5Qe+dUMT+Ysw2VzQYxND3a80VAMkkNrH9Y5Tm7Rm68Fu0yN/HERLvnB6nS3 mtMjILu/YJmfgd7Uh2hA0c0LBDX3su2m1SCXhP6XPJ8ZYBR5xoAUsKPGcu7iAt8zw6Xn 7s4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=v2ZR3GwUvqRFHmomKiA8SI8N1X9wI74EqEW1kVrIC3s=; fh=gQ+1MirDpV7FJfUH0TGTR88wrhQaTB6aMyRrr/ERaEw=; b=eVX1aBsPpCrkceyyHrlJKYrTeSRVGvPKFU6PhmC5jffUo1KZZYBQJk+GCH0jURwBYx Ibt8bXy4wSU9fNy2SDrOn+BiVSu3kgVlDHxp8Zl40WY20Ftj185A2U04LYCfqLrp3E7K nvruujUIdS+2ANFkpo9DfrrEwTodO3MTErHw34jRJEwheWaOgY4jUO5lLHjbZ/HE/l8K K/c5mu9znRywvtK+7HpSJsU/NfiJ7DWYOYVpRdp0IvXwZofONvXbiNhlxsEXGqFMrHTx NuHil16Rar55+vLRafSvK6PXyWmp1WIKFFj17J+G0HE2Oa2a0QsmmEnr3C9+A7rrwPHc ZKTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QecQFnZi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id n4-20020a17090a9f0400b0027686905e79si12584764pjp.146.2023.11.28.04.35.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 04:35:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QecQFnZi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 64C668046C84; Tue, 28 Nov 2023 04:35:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344474AbjK1Me4 (ORCPT + 99 others); Tue, 28 Nov 2023 07:34:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344178AbjK1Me4 (ORCPT ); Tue, 28 Nov 2023 07:34:56 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1245ED4B for ; Tue, 28 Nov 2023 04:35:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701174903; x=1732710903; h=from:to:cc:subject:date:message-id; bh=wGqGjWnAXZbXb3fYquhsZNbFE3HpVMDhn3OXEVqBg0A=; b=QecQFnZiyT7RLfVTOZLT7omZ15FPowgWxcpqMbcS2oPLbFe4NjfQ3czA J1y3JSl/CUikbdk+ihCmxphaY+NKQXiVj5Vjbb+djp0B7W8tvYaC5RO6B 1gPGqjfTt/IOOEngem8Q7gdSjjGrjrBZZdiVdd4nml+H1uLMHLQC6vwRG UUa52vHYQitGKL89EIlZkL7IQgLdW3R1jrFE6VkJI96+DpNIrExai1mBE oMoWkYIkDI7JkaTqQc5eQR9mVAmOrXkBbiH29Ln2M/05nWmX0frmFFTP5 Jv4O7eWir4oBCTYh8XdFvTe1/Of0TsH6QT5vQ6eSy7gU/nnDBxnhDsh9u Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="373086831" X-IronPort-AV: E=Sophos;i="6.04,233,1695711600"; d="scan'208";a="373086831" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2023 04:35:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,233,1695711600"; d="scan'208";a="9935639" Received: from shsensorbuild2.sh.intel.com ([10.239.134.197]) by orviesa002.jf.intel.com with ESMTP; 28 Nov 2023 04:35:00 -0800 From: Wentong Wu To: gregkh@linuxfoundation.org, tomas.winkler@intel.com, hdegoede@redhat.com Cc: andriy.shevchenko@linux.intel.com, sakari.ailus@linux.intel.com, alexander.usyskin@intel.com, zhifeng.wang@intel.com, linux-kernel@vger.kernel.org, Wentong Wu Subject: [PATCH 0/2] mei: Add support for IVSC device Date: Tue, 28 Nov 2023 20:34:04 +0800 Message-Id: <1701174846-16316-1-git-send-email-wentong.wu@intel.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 pete.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 (pete.vger.email [0.0.0.0]); Tue, 28 Nov 2023 04:35:12 -0800 (PST) The Intel visual sensing controller (IVSC) device is designed to control the camera sharing between host IPU for media usage and IVSC for context sensing (face detection). IVSC is exposed to host as a SPI device and the protocol used for communicating with host is MEI. This driver implements the transport protocol and MEI hardware interfaces for the IVSC device. The firmware downloading for IVSC device is implemented as well. Wentong Wu (2): mei: Add transport driver for IVSC device mei: Add MEI hardware support for IVSC device drivers/misc/mei/Kconfig | 24 ++ drivers/misc/mei/Makefile | 7 + drivers/misc/mei/platform-vsc.c | 442 +++++++++++++++++++++ drivers/misc/mei/vsc-fw-loader.c | 822 +++++++++++++++++++++++++++++++++++++++ drivers/misc/mei/vsc-tp.c | 555 ++++++++++++++++++++++++++ drivers/misc/mei/vsc-tp.h | 50 +++ 6 files changed, 1900 insertions(+) create mode 100644 drivers/misc/mei/platform-vsc.c create mode 100644 drivers/misc/mei/vsc-fw-loader.c create mode 100644 drivers/misc/mei/vsc-tp.c create mode 100644 drivers/misc/mei/vsc-tp.h -- 2.7.4