Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2423916rdb; Sun, 3 Dec 2023 16:56:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEI+JNBeQYbD0sFGlonVBKXXdvseXU5/io3JXPuGIm7uoQqWc5+9s5t+NL51iHYY0TuuEmO X-Received: by 2002:a17:902:b702:b0:1d0:92a0:492a with SMTP id d2-20020a170902b70200b001d092a0492amr423776pls.85.1701651406793; Sun, 03 Dec 2023 16:56:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701651406; cv=none; d=google.com; s=arc-20160816; b=rAljyHx4h/tGCBu6DnMR1g1p+n/Kp86vFQ2X31OLZ6WjQd/kJwx+dV4zaKvC+7p6iQ n/H1aijD7pTGAFFDnU2p4lID/1NDa5saDJqJ3xna0yETr3ogL3ZXcvZllj6chFdXqgnb BvAKrqCOAodaQdJweqP9NbtUooxdnAUb/jxyQJucEScG2qL2prNb81bH7PFImgeOSRJv 0jIcNVoULg49lzSf1Q6X2JvL8o0l7igLQ8rWUUV3gZz1bcy5ceJpbTPwnJpoyoo3nRGy 4NIIWdDuPoy4M8yJuGN1ZJCzTVZ12kDozLJwGKBmfzsyhFk0f8YhP5/aeoATHuVuOALO RcEw== 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=z8yLBAoiHDP1xyP3Z7szBlBzr4iY487Eizn6mBEARo4=; fh=nE1gjtnRoh7p0xjZkJLhPH7ODkLbl97wBIQhWZYKYVs=; b=df6OX/NncCNBMMQZ8qxBpDoDgZMPx22hbrigWGCHOLoE7HJQ7CTeTPRsmwvbJoH5AC ttmDnOb2lG7kSv4T/C1gTmAEdgk/EKR3vxL4w/q5Em10adVkVkY18Yx7NAHSXT3CVy6t fr6eWHborpjtddTz6ij4sl72Z0wkyJK5/4zBvGTIS+O2t/By/vqqKNit5Q4Kq27oi+xa sxq2vuCQcsPnUdnxvGK3dSF0N2ZkRXf3VgF7KwwD9F9sJ4M7FDzXopJdc5raxlCUWYcR xA2+PF/hXJZeZe6WQmieACoXyJAuPUrQmWyJ86BOaBnF8+3Ri6TFGYjAw8xp+/hqD7pd Vp5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jL2rUAPX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id l16-20020a170903245000b001d044978d7esi882079pls.598.2023.12.03.16.56.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 16:56:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jL2rUAPX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 96CE48066C58; Sun, 3 Dec 2023 16:56:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230139AbjLDA4K (ORCPT + 99 others); Sun, 3 Dec 2023 19:56:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229869AbjLDA4J (ORCPT ); Sun, 3 Dec 2023 19:56:09 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61ECBD7 for ; Sun, 3 Dec 2023 16:56:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701651375; x=1733187375; h=from:to:cc:subject:date:message-id; bh=zb8oftfqk82UeCnS01ntPGlL3LP4p1h8hJr37z80CQY=; b=jL2rUAPXKbQnqsfIr5Uy7M2E0ul5anMgv6yS2l2q4eHyVwu8s15oCITm TMol3sZGhdZeeLF+idipl7V41GCciU23RO4/JeWq7J9tnaqo3rMqmVHuK yK49cEOSCXI/GSwIh4U6CkeM0ZqEWRjYPkhuhGh03pLqWDJrVy2XLLVJn uAnPfIMRXqKiNEq8LVhWvre9Yxnpoz6YK3BNMD7vkV1XbsR/GpgXy3D1w CmS0MxoY0wxEZQNmfaFl7bl+075tvzwbvAl5Un6qeVdk2RXDo29QJulJc Mj6FuGrlJeIYMmmq9C1iwVHmpBLTrYULX5k+z6tBF9rVpBMsZr/BXkYXy g==; X-IronPort-AV: E=McAfee;i="6600,9927,10913"; a="393406170" X-IronPort-AV: E=Sophos;i="6.04,248,1695711600"; d="scan'208";a="393406170" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2023 16:56:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10913"; a="861212183" X-IronPort-AV: E=Sophos;i="6.04,248,1695711600"; d="scan'208";a="861212183" Received: from shsensorbuild2.sh.intel.com ([10.239.134.197]) by FMSMGA003.fm.intel.com with ESMTP; 03 Dec 2023 16:56:01 -0800 From: Wentong Wu To: gregkh@linuxfoundation.org, tomas.winkler@intel.com, hdegoede@redhat.com, krzk@kernel.org 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 v2 0/2] misc: mei: Add support for IVSC device Date: Mon, 4 Dec 2023 08:55:42 +0800 Message-Id: <1701651344-20723-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 howler.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 (howler.vger.email [0.0.0.0]); Sun, 03 Dec 2023 16:56:40 -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 IVSC device. The firmware downloading for IVSC device is implemented as well. --- v2: - change to `depends on INTEL_MEI_VSC_HW` for INTEL_MEI_VSC Kconfig - remove MODULE_ALIAS and add MODULE_DEVICE_TABLE in platform-vsc.c 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 | 450 +++++++++++++++++++++ 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, 1908 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