Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp586900pxb; Wed, 27 Jan 2021 15:57:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxWPjp/4xbYoQpEfM51J8vZGvj0Pk0FkCEZpusVjjwOGAnhNsuFKREFnNrk4WqGfNbE5R7 X-Received: by 2002:a05:6402:942:: with SMTP id h2mr11306683edz.128.1611791876587; Wed, 27 Jan 2021 15:57:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611791876; cv=none; d=google.com; s=arc-20160816; b=sR1jC1y2oX4TS2txtDGb9WFlBIFTYheMRGBYdK856aI3ygZ7cPXAzYOoAj2DYWzplq P1BUhONYmF1s/PjIIs55qS5Z4pLmuQffr5o058wqw9sWEIYMl93mhRyy8C3b8nVwORCC ZVpfhRPMgU52RvL1y4FhbmXHA7XxhHLcgYAuUGzZ/ysOV+KLSNzT0wMwEpN6s7DzAZIe inWTwP+AGD8iQm/Iy+61RKCG4XfsaK2N9eIIARQDCfoTZfA+XWczmzUs3fjlaIKZiomw BBfTU3oFb49cSeSIiVmp+fa8KQKcwzgXBXSl3S6R2n+y6SVWrnGnRua4nCV8NTC1lGnv FKBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=vBvz2YbWfOX3Q1Cs7mp1zN0scocgctdq3d4EpjgIfoU=; b=cfZ5+WwbRa+2dGFYvEe3WQ6O4N/3TSPeOBeBvbmVysCUOdbW2tcgFSqsFKRR5TJ39I 60TryfgjTXKOqMEFFROUBBXokgarCS3XM5aW41w3FM047HYKDGiGEL/tNYOZxn/YTzDS pt67dglV+62R8OIw861lsnLkeCH7/IXQrN0C3R20HUZ3EADYOsDX1Sf6mD3VbilLnG0r /xkIZxahR0xsNY6Tkhpe85ATgbhx42OcA0bNi5USYMFvdnlDVWt2kNVhNAzqr5/rliM6 KcKYc5H/LQkvDz0KHRAHiRVFQHNbfygUYTXbFJ8lsN+rya6DPBPtCVK8ChGm7LweBTNu JRTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HWyptk4z; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rh4si1526372ejb.538.2021.01.27.15.57.32; Wed, 27 Jan 2021 15:57:56 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HWyptk4z; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343763AbhA0NLr (ORCPT + 99 others); Wed, 27 Jan 2021 08:11:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238211AbhA0NJZ (ORCPT ); Wed, 27 Jan 2021 08:09:25 -0500 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD893C06178A; Wed, 27 Jan 2021 05:08:57 -0800 (PST) Received: by mail-pf1-x430.google.com with SMTP id q131so1149210pfq.10; Wed, 27 Jan 2021 05:08:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vBvz2YbWfOX3Q1Cs7mp1zN0scocgctdq3d4EpjgIfoU=; b=HWyptk4zgJU+E4QeZpyMjSvaPvBMY7rf07ldY7/Bv4bILZqUBSAOhMheNqi9rFwQYk NANnDBOlnyO4jsl87JBiYpmaA7iCEM/+gbckv+t876UEc1kRp+E+Vps+l1aPS2ZiXM27 cBF6LqzILcGZDhuIAlw0J/EGaYml1Wiq7XYKF2Eb7KjDATgZ9moQxplY4gwp4XDeDRzN 6vo+tL/rBSeblVzAhT8F/ukP3+Kim40ENLFURvY0paqglf1KWtXmY24WPscPMV0DTQwu 7k58CpzgxZIXmX/45cBfTp7kEphhLzMuqK71d+mZWxmvPBl2GfR6lCfe19UQwgZAp677 hmQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vBvz2YbWfOX3Q1Cs7mp1zN0scocgctdq3d4EpjgIfoU=; b=CgniCRT9+RcAGRV7xWonQzi85mVm505pX4NHah1zBH5Hby+n26X69Xkjop1+yKBgaM zlJVjAL8pJL+Menr0NRuV274FYz/64R1yPcLJK+KY5eJxEpoz6IVUVNFAYfdllM57bu4 pROpTicKtrXgHjgaBfFTtJ4BHONPPTTisGOWBhOaFXgPGWUnu8tSLXpesy/H50jBJlDY VZpDxVpg+dwG/ZTLWdAHCzOTDMaZ16HAa/aTkn/1Ykx3ivPJMWJ5fz25zpK3BjanUvXQ vf1J0Vk2ue3yof4DVKudCsfrJ3KHfiRS6ZDXQ5o8yx9LppTu/heO6r9GtCIDeBeetm67 ig0Q== X-Gm-Message-State: AOAM530SxhlE/WgywB0M9y5aajLVW8nJjUNlcYbRdZfmxB/7f048Vxne D0iQfuSuRYtBMibRAZT+T+M= X-Received: by 2002:a63:504e:: with SMTP id q14mr11062319pgl.306.1611752937308; Wed, 27 Jan 2021 05:08:57 -0800 (PST) Received: from localhost.localdomain ([182.226.226.37]) by smtp.googlemail.com with ESMTPSA id 6sm2163343pjm.31.2021.01.27.05.08.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jan 2021 05:08:56 -0800 (PST) From: Bongsu Jeon X-Google-Original-From: Bongsu Jeon To: kuba@kernel.org, shuah@kernel.org Cc: krzk@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-nfc@lists.01.org, linux-kselftest@vger.kernel.org, Bongsu Jeon Subject: [PATCH net-next v4 0/2] Add nci suit and virtual nci device driver Date: Wed, 27 Jan 2021 22:08:27 +0900 Message-Id: <20210127130829.4026-1-bongsu.jeon@samsung.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bongsu Jeon 1/2 is the Virtual NCI device driver. 2/2 is the NCI selftest suite v4: 1/2 - flip the condition for the ioctl. - refactor some code. - remove the unused function after refactoring. v3: 1/2 - change the Kconfig help comment. - remove the mutex init code. - remove the unnecessary mutex(nci_send_mutex). - remove the full_txbuff. - add the code to release skb at error case. - refactor some code. v2: 1/2 - change the permission of the Virtual NCI device. - add the ioctl to find the nci device index. 2/2 - add the NCI selftest suite. Bongsu Jeon (2): nfc: Add a virtual nci device driver selftests: Add nci suite MAINTAINERS | 8 + drivers/nfc/Kconfig | 11 + drivers/nfc/Makefile | 1 + drivers/nfc/virtual_ncidev.c | 215 +++++++++ tools/testing/selftests/Makefile | 1 + tools/testing/selftests/nci/Makefile | 6 + tools/testing/selftests/nci/config | 3 + tools/testing/selftests/nci/nci_dev.c | 599 ++++++++++++++++++++++++++ 8 files changed, 844 insertions(+) create mode 100644 drivers/nfc/virtual_ncidev.c create mode 100644 tools/testing/selftests/nci/Makefile create mode 100644 tools/testing/selftests/nci/config create mode 100644 tools/testing/selftests/nci/nci_dev.c -- 2.25.1