Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp972938pxu; Wed, 6 Jan 2021 09:04:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyK0nD1afnjzQ1/IUoeMC0Nh1H86oXxXEmcz/r7aL+Cfw47lpLnFtD35aRjwzgyCMl55guG X-Received: by 2002:aa7:c919:: with SMTP id b25mr4404693edt.108.1609952646666; Wed, 06 Jan 2021 09:04:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609952646; cv=none; d=google.com; s=arc-20160816; b=y76Ig1irSaGu+d12oQVPz1tul6+piYhsPU7ZgOOwLYJcxZF9bS8Ar3UY5mZPlBwstV bGxv6BSyH4zUzjhs5WR8ljdM9ybAI3+2snrL1Fku8difSwBmKzdGmw41EeSXhcXCDSpG udd1YPr61hoV5QUfeqUcw8iiOTSTY8rqzDkv12ziUR+k8rORmp3mYQ7lXqaO3rmzsAFR btksDSyRYPEFNlz4QGWdB+E9XjJNziXmP/ue3rnehX3ztccjh3aeKoZnkRsZdRcwAS2Y 3EmROMjRZ8E5TDIFkndjb4SHOZLakvsVMwu1Emw5hH/sLwBqEQ7fsufpdcS8q3PeCF5L L+HA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=jYYN08jWc6vbV341MsC4bLA86yMnFLZXKrhYNdII/+g=; b=xpDRdTPqkzGgjcCUmgq5922WSXS6uX85xPZwPHRjCSL00yRyPZmrtmgkTS9xOEvHo3 EZe3NaswrnBoXmfNGskAihQeQsmlFmDQCuUFh2cgiCKeIW5jy2deP1gSSBPOb0nT0wwg zU2lnkuQ3fT5L+2F6srGgatmlKFtKtO6Kav+GNEyi8M6xWpqtgikzwOkx2506WLt/QjC 4TnfGKa66sRs7nEz9eRhAiTUodc6nY+lFuiOL/iuzVYm03XJvxdMhikg3jHGYiNDpV5K KXeRDczysvODawp3B6JGZuLQFelRjcfduQFA5X08Ovx3/XXvC3I5X3LbKQZ1bulycd07 XSJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oTB6IySt; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si1177410eds.65.2021.01.06.09.03.34; Wed, 06 Jan 2021 09:04:06 -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=@kernel.org header.s=k20201202 header.b=oTB6IySt; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727816AbhAFRB5 (ORCPT + 99 others); Wed, 6 Jan 2021 12:01:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:58094 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727804AbhAFRB5 (ORCPT ); Wed, 6 Jan 2021 12:01:57 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8923F23132; Wed, 6 Jan 2021 17:01:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609952473; bh=Z2KRyDfJPSLu/00pFs7dpyH4JX/cDDDyqtla9ACYJ+I=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=oTB6IyStibaIcTssg8nT78WaHLImp5vGGcRP6virCQURXnqJkJEJDYGhd9hmtbf0U 6Rk6dzVq9eEg/ovMoF7cx+c0Rr74QrCrx/6hGYR/dd2oW4G0oM9QABM3exNrq3Zars /qaUguXHkFr2MGEo3tCQ/4gW2epW7POguoOQX3oFlQHn+7TdF0EFXY/7KRbubaMHel RwoA+Yw/tdrKMM8P+78PXV9f2o6OgQz4vItuIDYQN4rbwimi2ZpTtvgBLJOwtU8EYc oDJ2ad3M791aG+MZWJTDJ1zktR27F8GTXcZXYQgyUFgZBzcT2ayI3/U6KBdcpDywMP zrc5xNR9+7dtQ== Date: Wed, 6 Jan 2021 09:01:12 -0800 From: Jakub Kicinski To: Bongsu Jeon Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfc@lists.01.org, Bongsu Jeon Subject: Re: [PATCH net-next] nfc: Add a virtual nci device driver Message-ID: <20210106090112.04ebf38f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20201228094507.32141-1-bongsu.jeon@samsung.com> <20201228131657.562606a0@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20210104114842.2eccef83@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 Jan 2021 08:16:47 +0900 Bongsu Jeon wrote: > On Tue, Jan 5, 2021 at 4:48 AM Jakub Kicinski wrote: > > > thank you for your answer. > > > I think that neard(NFC deamon) is necessary to test the NCI subsystem > > > meaningfully. > > > The NCI virtual device in user space can communicate with neard > > > through this driver. > > > Is it enough to make NCI virtual device at tools/nfc for some test? > > > > I'm not sure if I understand. Are you asking if it's okay for the test > > or have a dependency on neard? > > Sorry for confusing you. > There is no dependency between neard and a NCI virtual device. > But, To test the NCI module, it is necessary to make an application like neard. > Is it okay to just make a NCI virtual device as a tool at tools/nfc > without the application? Meaning the device will be created but there will be no test cases in the tree? What we'd like to see is some form of a test which would exercise the NFC-related kernel code on such a device and can signal success / failure. It doesn't have to be very complex. You can build a more complex user space applications and tests separately.