Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp224909ybl; Wed, 11 Dec 2019 17:04:45 -0800 (PST) X-Google-Smtp-Source: APXvYqzJIf0H5NAhL3P7GqF0dZ1Uo29kE9SGUh601LFk2I4TLwjfkurxH9AVBQ4pyRIxdcdGUj4N X-Received: by 2002:a05:6808:643:: with SMTP id z3mr4700929oih.19.1576112685295; Wed, 11 Dec 2019 17:04:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576112685; cv=none; d=google.com; s=arc-20160816; b=BpWrfpqqjO2nIprRhrRuECSAqzKSqVoZ4k66PbAMJe1HETFuTwQx9Q4gTEHgxEVI86 5OzCwBG0DOwMkiUdzk2MHVBQrfPCPTn2ttQuIH429G1HdGt0xk+w2zaDrL28KkRut17A IUlPjzjXWDMEGCnjI92OC9MPj8+veq2p62VENf3Df95bOIwc992It9OJWnqU/dzi1oDo bNUl9Nyl9dXK9NOHK9OQGMWExHIUNMqEPG+iKZC2YlyOaHKuk+CN0/z92WlFbB0HjDtc Dmdcs5id8ULtsoK+Z3G+QQ8th1p4rRj5cpLgRfedP7hlx1tU5NKsSrcRWDGVpHGD2SMt 9NYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=1nVw2YWBGUS/oMhW5DDgBl2g5t5Me3srGmGp5Tfjzxg=; b=MdAj97o6z96zXHyBK98L+U0kKO2N5cDhTZ/KcKfo6yoRHJqBz9+5lhx+sx0JXUSbK/ 5jEGcAU4d6bUUdnxWvEwNh/8ouUAXrtLRDsw6Xe4oRZ51+I2zN1/PtWVwoqs4QtvRviw OiOw9eu3cUOdmVvRZZlab7U3bM3xbiOEF6KKrNmDXj3QDEp164IN0BTDTN7xgVPfc1db zvgR1ljk5TveOEkwVEq4VrbYPLFgBKFn349xZf/oFEJ4OX0gwZ1x4QgGxsHbkRrRHiVf qdJvcz9/5w1pSR8gXUNdulg3mYKWwlaMWU+N4/wt7c4vOuyZYSEh0xg19iZMx4/REAUj 2ClA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=OFoPtBfc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id y8si2139739oih.141.2019.12.11.17.04.29; Wed, 11 Dec 2019 17:04:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=OFoPtBfc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727519AbfLLBDX (ORCPT + 99 others); Wed, 11 Dec 2019 20:03:23 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:57363 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727403AbfLLBDX (ORCPT ); Wed, 11 Dec 2019 20:03:23 -0500 X-UUID: 4abd8ddb461b4a88b062efb3c2ff6f08-20191212 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=1nVw2YWBGUS/oMhW5DDgBl2g5t5Me3srGmGp5Tfjzxg=; b=OFoPtBfc8hc3RDn55qAHCBISzy4tvQOUk2ZkT9hq4TX+bdVXRG+xitr2/EV+NsVOucqrMaNhkjxZVHUoz+MXxpIEbFhjMS1mXJJATdLAKlzVrMbwpYHJOulEgaMF2Ik2sBg0EoVLSQ5JMmQt/ig+KqqeJyPgZ51+UqSEoAu1RKY=; X-UUID: 4abd8ddb461b4a88b062efb3c2ff6f08-20191212 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1650934045; Thu, 12 Dec 2019 09:03:14 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 12 Dec 2019 09:03:05 +0800 Received: from [172.21.77.33] (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 12 Dec 2019 09:02:37 +0800 Message-ID: <1576112593.17653.1.camel@mtkswgap22> Subject: Re: [PATCH v2 02/14] mailbox: cmdq: variablize address shift in platform From: Dennis-YC Hsieh To: CK Hu CC: Rob Herring , Matthias Brugger , Jassi Brar , , , , , Bibby Hsieh , Houlong Wei , Date: Thu, 12 Dec 2019 09:03:13 +0800 In-Reply-To: <1575942906.12891.6.camel@mtksdaap41> References: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1574819937-6246-4-git-send-email-dennis-yc.hsieh@mediatek.com> <1575942906.12891.6.camel@mtksdaap41> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQ0ssDQoNClRoYW5rcyBmb3IgeW91ciBjb21tZW50Lg0KDQpPbiBUdWUsIDIwMTktMT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