Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2278016pxk; Sun, 27 Sep 2020 01:34:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJypPsPv6RdzyAI92a2l1XPhQvR5PUhh3hQrTIgAjoxXs57QyqCmIjozBOhSf3X1NZMnVZ X-Received: by 2002:a05:6402:13d3:: with SMTP id a19mr9813857edx.255.1601195652076; Sun, 27 Sep 2020 01:34:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601195652; cv=none; d=google.com; s=arc-20160816; b=qMBUoAT+hLqZdtF2xEeZmVAvzY5sS/ol4IjCzC+1fPYiDUA0/U1dKLQtvqmSewMqhD qSpqSmeDOXekJ6eBEKEL8H8S8SnFlK9WNuOFEyassZY/7HWSc22aDIIYC01o+5CD77Fx 6Aed/nwvnoFRX4MvkNtIpKtxgKWTsW9c8mMndvI2pgtKOn1YWs9eDXuINvMSVLU01nvA oxwcaNvnCJ3MhBJHx3GswNTwj3m99CsK62vlnb0hx27OFEIUwQiTDlznPV3OYp1eozK0 jYxKsM3GZ01RObQZfUXJqje31CfVLv5Ss72sU1x8FQIDZMrLaZoXCpjbEEZx6sDYqMy3 lygw== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=Lner+8cIRgrg0cDNcBnnCq0acUspa7hUGg30bAeP/UE=; b=T9CzAdvUknqsfVo7f/LSqI3FsbRDXSco1kQBg+5puXc2jE1QdzKv82Dm2R9BLVh36H cFLKbwMgqTDCdfJ3gkO2uNfLVAKlEAD3cIKGnnKGjNL/jLhNu5li5eh14etIlHRtjnRa JQyHXD6Q5sQOctr/qprlne14XlfWy8es/wyzlVEffDJpG24HQ1+kUi276dP2cf/1QW3S G0V84K7NsWc3SBnJv3TgQuec6l2zP1jCIA8UN13rWCaZ1rmxxzVoNcGimTn4Z563zjoL sIB/WU4HnMRJvnA2pwWZJdyYo7M7cV5LMNP3x6Qn27+yZrf4SXn7Vv7EYYe+iap/GKAQ w3tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=pFD6Tgrf; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m16si5188303edr.280.2020.09.27.01.33.49; Sun, 27 Sep 2020 01:34:12 -0700 (PDT) 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=@mediatek.com header.s=dk header.b=pFD6Tgrf; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730585AbgI0Iac (ORCPT + 99 others); Sun, 27 Sep 2020 04:30:32 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:32913 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730450AbgI0Iab (ORCPT ); Sun, 27 Sep 2020 04:30:31 -0400 X-UUID: 44b997db2ba1471d8bc2dc62961eaed7-20200927 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=Lner+8cIRgrg0cDNcBnnCq0acUspa7hUGg30bAeP/UE=; b=pFD6Tgrfv5dopQXE62tIo5gn5ppuG6Rtmvj8zQD6GN2h25xzqH8nFvBMU6jwm4rffVhfJq4sWKt6yHmYEq3ZkGplUmLFNh/6rGVgB6GsYLNI2TQbIwy8nLXuqgMHAWLZdCSkirI35c2cQM6Tb2MnMoNoQLyamtDXPnTWvTtUigs=; X-UUID: 44b997db2ba1471d8bc2dc62961eaed7-20200927 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1572921222; Sun, 27 Sep 2020 16:30:26 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 27 Sep 2020 16:30:24 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 27 Sep 2020 16:30:23 +0800 Message-ID: <1601195424.7766.4.camel@mtksdaap41> Subject: Re: [PATCH v3 5/6] spi: spi-mtk-nor: support 36bit dma addressing From: Yingjoe Chen To: Ikjoon Jang CC: Rob Herring , Mark Brown , , , , Matthias Brugger , , , Date: Sun, 27 Sep 2020 16:30:24 +0800 In-Reply-To: <20200925145255.v3.5.Id1cb208392928afc7ceed4de06924243c7858cd0@changeid> References: <20200925065418.1077472-1-ikjn@chromium.org> <20200925145255.v3.5.Id1cb208392928afc7ceed4de06924243c7858cd0@changeid> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCAyMDIwLTA5LTI1IGF0IDE0OjU0ICswODAwLCBJa2pvb24gSmFuZyB3cm90ZToNCj4g VGhpcyBwYXRjaCBlbmFibGVzIDM2Yml0IGRtYSBhZGRyZXN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