From patchwork Fri Aug 26 14:43:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 600839 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42C40ECAAD4 for ; Fri, 26 Aug 2022 14:26:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344230AbiHZO0D (ORCPT ); Fri, 26 Aug 2022 10:26:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343958AbiHZOZ4 (ORCPT ); Fri, 26 Aug 2022 10:25:56 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1DA233356; Fri, 26 Aug 2022 07:25:51 -0700 (PDT) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MDhpd5XTNzYcmQ; Fri, 26 Aug 2022 22:21:29 +0800 (CST) Received: from CHINA (10.175.102.38) by canpemm500009.china.huawei.com (7.192.105.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 26 Aug 2022 22:25:49 +0800 From: Wei Yongjun To: Mark Brown , Steven Rostedt , Ingo Molnar CC: Wei Yongjun , , Subject: [PATCH -next 0/4] spi: Introduce BPF based SPI mockup controller Date: Fri, 26 Aug 2022 14:43:37 +0000 Message-ID: <20220826144341.532265-1-weiyongjun1@huawei.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.175.102.38] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500009.china.huawei.com (7.192.105.203) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org This series Introduce a BPF based SPI mockup controller, which can be used for testing SPI drivers without real device. The testsuite for SPI drivers will be post in other series, with also support for I2C and PCI bus device drivers. patch 1-2 introduce BPF based SPI mockup controller patch 3 interface for dynamically add devices from dts, may use of-configfs insead patch 4 add the document Wei Yongjun (4): spi: mockup: Add SPI controller testing driver spi: mockup: Add writeable tracepoint for spi transfer spi: mockup: Add runtime device tree overlay interface spi: mockup: Add documentation Documentation/spi/index.rst | 1 + Documentation/spi/spi-mockup.rst | 201 +++++++++++++++++++ drivers/spi/Kconfig | 15 ++ drivers/spi/Makefile | 1 + drivers/spi/spi-mockup.c | 315 ++++++++++++++++++++++++++++++ include/linux/spi/spi-mockup.h | 13 ++ include/trace/events/spi_mockup.h | 32 +++ 7 files changed, 578 insertions(+) create mode 100644 Documentation/spi/spi-mockup.rst create mode 100644 drivers/spi/spi-mockup.c create mode 100644 include/linux/spi/spi-mockup.h create mode 100644 include/trace/events/spi_mockup.h