Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1983639pxk; Sat, 19 Sep 2020 08:33:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/79971HZ+ctNAe+ifmmzi+3w65OggezCmxbSvlvKfx8KfurvQBZtc7DtoR3IdFIrqyygi X-Received: by 2002:a05:6402:d8:: with SMTP id i24mr44113073edu.294.1600529606340; Sat, 19 Sep 2020 08:33:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600529606; cv=none; d=google.com; s=arc-20160816; b=kpugjIPts999CLJTwAWmaKy8tjwzs+MShyUVBYDQkcqX0e1ktlssiDWiVrXxzon9Xu IRkhGmnFOmBE8Smm7hdNCgSPGHSMmWfJs7WlBKGVuVPmDJ3Hd3P7xGVyOCBVhgf/Na3L 2bqdSnhhlGlNkqaKft/TR2Dk5bLajesz01quKpW2e9B86dJPys7u+E8e8ZQbDhQyPcQn 3DcMxQX8TaFn6lB0kaEkiU4uSdsNFf9LlHUzz65t3bFzYrq7tAI5DZzRpCE77oLW+nuH WqZ91DFAjFiEmQ5EIP6QZerBIzrSZ2n0tRV8sof2NjST/cUNuXFK+nJPmvMy+mnyGQfg u4Vw== 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=IrIcNVhFVMWRbTHiVNPXL4VIQ4/x908yIeAq6qk9Ekc=; b=tEMext2BnOLhCQS4xsSSblx1jUgpCU0VcKHhqCPDtCf0E9GUP3HI7nea82VSct3nTJ 75+54kSx2YDdX2PhYE3EoXqnKMMGCWPXNswLy/AeK+qpFrKp4NYGv27E1NKF+NGO7t61 OGbCltguZ38xNTpqZko0V+ol8G7s4Sgr1Gf+MBxGHhNDXbk5aFJwyG2P/krLBHOyhOUA Y4DAuaTef+kxVm4xILMzGSe1HZbpgOI1w1AlzatVOqKXHXjdMErdzyRy/9Fsb0zY1nvZ kIHTH/NG2bewFpd1ulmIyBBq8tEy3S7hKPHzu4Sjj14/uX174mTp2RxXoQ12IxbxjR+W Hhhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=AkC4jDUG; 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 g10si4720545edp.138.2020.09.19.08.33.03; Sat, 19 Sep 2020 08:33:26 -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=AkC4jDUG; 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 S1726634AbgISPcB (ORCPT + 99 others); Sat, 19 Sep 2020 11:32:01 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:50523 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726491AbgISPcA (ORCPT ); Sat, 19 Sep 2020 11:32:00 -0400 X-Greylist: delayed 303 seconds by postgrey-1.27 at vger.kernel.org; Sat, 19 Sep 2020 11:31:58 EDT X-UUID: cd6e87128bfa48b7ab029e7556ad1be4-20200919 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=IrIcNVhFVMWRbTHiVNPXL4VIQ4/x908yIeAq6qk9Ekc=; b=AkC4jDUGvMpB3L53ZdH1ue0FGSgGFs0n4j/r6cPjzBdoxCITafuHL1+KZakmoORsWbVBlIBD+Z+jxGoFMGRMt3JL8uVKSby43kwv/ZBVGx9o7SRkI4MdleN8ZkXPUF3oVHclKUJDTfdCQial5DRmFTjC0CrOqxeEsQbfCpWVeAQ=; X-UUID: cd6e87128bfa48b7ab029e7556ad1be4-20200919 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] 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 1990299331; Sat, 19 Sep 2020 23:26:52 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 19 Sep 2020 23:26:50 +0800 Received: from [172.21.77.4] (172.21.77.4) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 19 Sep 2020 23:26:42 +0800 Message-ID: <1600529204.7002.0.camel@mtksdaap41> Subject: Re: [PATCH v2 4/5] spi: spi-mtk-nor: support 36bit dma addressing to mediatek From: Yingjoe Chen To: Ikjoon Jang CC: Rob Herring , Mark Brown , , , , Matthias Brugger , , , Date: Sat, 19 Sep 2020 23:26:44 +0800 In-Reply-To: <20200918162834.v2.4.Id1cb208392928afc7ceed4de06924243c7858cd0@changeid> References: <20200918083124.3921207-1-ikjn@chromium.org> <20200918162834.v2.4.Id1cb208392928afc7ceed4de06924243c7858cd0@changeid> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 46E17E8B4D077AB8C9950FBED0B79A5B30E2719458EBEF71FDC429C6B020E84F2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-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