Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp843645pxu; Fri, 4 Dec 2020 17:52:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvgqQqtVaDqkujsW+7Fq3QFaTlRJN4CDtcKk8r7bhAj5Xeu2qi8oaJwQTAAFDX3HN1nDx9 X-Received: by 2002:a17:906:1b04:: with SMTP id o4mr9764578ejg.531.1607133178145; Fri, 04 Dec 2020 17:52:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607133178; cv=none; d=google.com; s=arc-20160816; b=hKydU6QV8jj96YG6HjenjG7/Kp3Hed+ZSS8Me5Q3Z1o7iWiloL5njpZM8AGFPS7Tj3 TRFHSQQnHuz44N3zJ1OIZCP1zW3Xuid1Il/VZ7RzL/2TL18MDFSL2feWybOWYNTv8YlK og99kj+4xJKB9Z5DHg6M4KEK5jpVPNNnWaGNhGFSXc6Fx1wIPpLyZEz29VgZwSMNr6y3 2Qgj0Y7aHNbaSyipxQW/V3mr550QXzFhycXfZEs51pWnr+MiVmnWReXtG+N8VjJ+i+tq lYWN0Fy1VZVQtrXJYq/JG/DtF9sCtmcow2sCP9HDzxNotxHOkqqlhN3DtcH4zLk36PoM JC5Q== 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:dkim-signature :date; bh=tvUrwZ6gTkVPZNvNYIDZZy4pAMcR7H0xeqkKpYaZ0r8=; b=bWWZMdozdOz3q2vfw7JzRiuxt+/LTq90hkZcpECxUcGgzeno953jqqyvPtDfbITjxO b3exryqKpMEeMizgQ64t/WM2paL27pXNCX/29uPP9WzS3VLByef/NpDdukOV4/oNOFin 82yFVv5JoHWv2MacmTAj8WOJJePvd61cWnkGRsWawOKoy9lsF5VdmKj3ZtQn2g11gdAT NOwY3G7sV9fV1o5gxGfKlOcwQ5Rt97Xy7Bb8QepxTLUPpcGCDfLElwtvozTqU10iDm71 /8Vu4kuI/gG231Qhb2XWXfu8hW8Yfrku7y3weuBXcciZv45W0FzJJaXnoCEUAYtfVu1p dBHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rp8x8Xvl; 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 i8si40978ejj.262.2020.12.04.17.52.34; Fri, 04 Dec 2020 17:52:58 -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=rp8x8Xvl; 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 S1730852AbgLEBtK (ORCPT + 99 others); Fri, 4 Dec 2020 20:49:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:58332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727225AbgLEBtK (ORCPT ); Fri, 4 Dec 2020 20:49:10 -0500 Date: Fri, 4 Dec 2020 17:48:28 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607132910; bh=99YpDeQm5sbHZzFHrWTNOoOMq76A7Lg2w14V/f0JXRE=; h=From:To:Cc:Subject:In-Reply-To:References:From; b=rp8x8XvlKrSwYDydy4dlEftDPPpFZpJmD/62/1ZAXkQi4Q83ZcB2+GTI682jlGZ2k 9LM8NNbNscJTcqxXjHJ6Yyk0O6PXrECxetliANtM5IEgOxwuAwMmWDyhYcJI+a6Ge+ S3+Tw3DnJm68D6MEOMZASVD4cwmHvsrwubkkzDrzegE35ohZdCHAHeLRML90KCrQXx +l41D7CGa4N2mhudkyfLnnMP2pHYG6SBOusky/Fdm+ksry2swfixbsXlGdbT9CzomD F3eMMuZyup138z34RNHIgnx3OotHm9Jgn5GZheyBmM1BhwwTTZ+kHv5+JC8VrGy7q8 f5//t0mCzjGnw== From: Jakub Kicinski To: Bongsu Jeon Cc: linux-nfc@lists.01.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Bongsu Jeon Subject: Re: [PATCH net-next v4] net/nfc/nci: Support NCI 2.x initial sequence Message-ID: <20201204174828.7f2fec74@kicinski-fedora-pc1c0hjn.DHCP.thefacebook.com> In-Reply-To: <20201202223147.3472-1-bongsu.jeon@samsung.com> References: <20201202223147.3472-1-bongsu.jeon@samsung.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 Thu, 3 Dec 2020 07:31:47 +0900 Bongsu Jeon wrote: > From: Bongsu Jeon > > implement the NCI 2.x initial sequence to support NCI 2.x NFCC. > Since NCI 2.0, CORE_RESET and CORE_INIT sequence have been changed. > If NFCEE supports NCI 2.x, then NCI 2.x initial sequence will work. > > In NCI 1.0, Initial sequence and payloads are as below: > (DH) (NFCC) > | -- CORE_RESET_CMD --> | > | <-- CORE_RESET_RSP -- | > | -- CORE_INIT_CMD --> | > | <-- CORE_INIT_RSP -- | > CORE_RESET_RSP payloads are Status, NCI version, Configuration Status. > CORE_INIT_CMD payloads are empty. > CORE_INIT_RSP payloads are Status, NFCC Features, > Number of Supported RF Interfaces, Supported RF Interface, > Max Logical Connections, Max Routing table Size, > Max Control Packet Payload Size, Max Size for Large Parameters, > Manufacturer ID, Manufacturer Specific Information. > > In NCI 2.0, Initial Sequence and Parameters are as below: > (DH) (NFCC) > | -- CORE_RESET_CMD --> | > | <-- CORE_RESET_RSP -- | > | <-- CORE_RESET_NTF -- | > | -- CORE_INIT_CMD --> | > | <-- CORE_INIT_RSP -- | > CORE_RESET_RSP payloads are Status. > CORE_RESET_NTF payloads are Reset Trigger, > Configuration Status, NCI Version, Manufacturer ID, > Manufacturer Specific Information Length, > Manufacturer Specific Information. > CORE_INIT_CMD payloads are Feature1, Feature2. > CORE_INIT_RSP payloads are Status, NFCC Features, > Max Logical Connections, Max Routing Table Size, > Max Control Packet Payload Size, > Max Data Packet Payload Size of the Static HCI Connection, > Number of Credits of the Static HCI Connection, > Max NFC-V RF Frame Size, Number of Supported RF Interfaces, > Supported RF Interfaces. > > Signed-off-by: Bongsu Jeon Applied, thanks!