Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1108842pxb; Tue, 3 Nov 2020 23:39:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwygsHkFR26m90baMOc07951lJcH/dtfJ7XNiChJTBM1SDoBVa5maSI+aabcaRod0u8HniA X-Received: by 2002:aa7:df04:: with SMTP id c4mr16030143edy.25.1604475544291; Tue, 03 Nov 2020 23:39:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604475544; cv=none; d=google.com; s=arc-20160816; b=SUnzi3kMU1YxkgYs6uX9IuY+Aw1bZuLo42Kn1nlgEgfCEcJrSDlHIewM6SeLSEAj46 Vxgc/9IhTfAiX00TIqbB61U4aZUL+FOhI91MGoQ0BJ6tDXcPR5ACbCH+sXPbE39D4c7S 192JhmNEcm+16qJbMP/+vmjkx1hSjxUZ2ZJNEWmdbyMEKXU2qAiqe3hrsFyhtkGbPXsh Dqof1oqyUkgj1gz+A4bXWIZbDFDkcbXHsdbLV8qi8lQJqbRAIhWy+PkKKSihXx6K7MKP F3y+QPWtaBwiUNUf5NYQ5CPn6T9mG4+FvmCD9thJMHA43IhE5C9O/mFVNHommlNKeiFV BWVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id :mime-version:references:subject:cc:to:from:organization:date; bh=IxgQerfkkZ6yrsBzmrp2kKKCDp3jjX5DeMKRiD3iALY=; b=cdDsRwq44lA0rj5kxw9unLROgBgEKQTihzFQtTic1bc3fdBR6avP+opXaWAoLqQgTM tB/UibsijpjD3MlYMFhxnbihjAlvyv62Ap8C9jAkR+sOipb3i9M8hkc96JERCMu/447i 2gTwHtWOvPkWT5oRTR7Hi8BH6oKvp5q0cVwwXfeJsuW6SNB7jPgwe/3+bKVzurFet1kc aBA1fxXBsx0HhjPRV0blCCzMgQ147WgrQUPP9YrDOAvGhN6rtf0X7B2UF/aW2oSKSHHf KM8B+P271YjbMEUWX2YX0C0MfR9b7u9kyS6GYDkMamBkbhgszRQCBnBbyacQc7e24FrQ PNag== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx24si707105edb.419.2020.11.03.23.38.39; Tue, 03 Nov 2020 23:39:04 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728348AbgKDHeQ (ORCPT + 99 others); Wed, 4 Nov 2020 02:34:16 -0500 Received: from regular1.263xmail.com ([211.150.70.200]:33568 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727651AbgKDHeP (ORCPT ); Wed, 4 Nov 2020 02:34:15 -0500 Received: from localhost (unknown [192.168.167.69]) by regular1.263xmail.com (Postfix) with ESMTP id 5BC8F1D3D; Wed, 4 Nov 2020 15:34:06 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-SKE-CHECKED: 1 X-ABS-CHECKED: 1 Received: from hp1216 (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P1240T139713711163136S1604475244578897_; Wed, 04 Nov 2020 15:34:05 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: zyf@rock-chips.com X-SENDER: zyf@rock-chips.com X-LOGIN-NAME: zyf@rock-chips.com X-FST-TO: jbx6244@gmail.com X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 X-System-Flag: 0 Date: Wed, 4 Nov 2020 15:34:04 +0800 Organization: =?UTF-8?B?55Ge6Iqv5b6u55S15a2Q?= From: =?UTF-8?B?6LW15Luq5bOw?= To: "Johan Jonker" , "Miquel Raynal" , richard , vigneshr , robh+dt Cc: devicetree , =?UTF-8?B?SGVpa29TdMO8Ym5lcg==?= , linux-kernel , linux-rockchip , linux-mtd , linux-arm-kernel Subject: Re: Re: [PATCH v13 2/8] mtd: rawnand: rockchip: NFC drivers for RK3308, RK2928 and others References: <20201028095326.15562-1-yifeng.zhao@rock-chips.com>, <20201028095326.15562-3-yifeng.zhao@rock-chips.com>, X-Priority: 3 X-Has-Attach: no X-Mailer: Foxmail 7.2.18.111[cn] Mime-Version: 1.0 Message-ID: <20201104153317363340190@rock-chips.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgSm9oYW4sCgpPbiAyMDIwLzEwLzMxIDE5OjU4LCBKb2hhbiBKb25rZXIgd3JvdGU6Cj5IaSBZ aWZlbmcsCi4uLgo+PiArCj4+ICtzdGF0aWMgaW50IHJrX25mY19yZWFkX3BhZ2VfaHdlY2Moc3Ry dWN0IG5hbmRfY2hpcCAqY2hpcCwgdTggKmJ1ZiwgaW50IG9vYl9vbiwKPj4gKwnCoCBpbnQgcGFn ZSkKPj4gK3sKPj4gKwlzdHJ1Y3QgbXRkX2luZm8gKm10ZCA9IG5hbmRfdG9fbXRkKGNoaXApOwo+ PiArCXN0cnVjdCBya19uZmMgKm5mYyA9IG5hbmRfZ2V0X2NvbnRyb2xsZXJfZGF0YShjaGlwKTsK Pj4gKwlzdHJ1Y3QgcmtfbmZjX25hbmRfY2hpcCAqcmtuYW5kID0gcmtfbmZjX3RvX3JrbmFuZChj aGlwKTsKPj4gKwlzdHJ1Y3QgbmFuZF9lY2NfY3RybCAqZWNjID0gJmNoaXAtPmVjY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