Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp371061ybf; Sat, 29 Feb 2020 05:37:03 -0800 (PST) X-Google-Smtp-Source: APXvYqz947Zys2ZU2IsZO1/wBmgSotub9Y8q81C5h8ilvXJZQWl31317+E6SjmMGMX9hRkhKHWgU X-Received: by 2002:aca:ddc2:: with SMTP id u185mr6396548oig.24.1582983422538; Sat, 29 Feb 2020 05:37:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582983422; cv=none; d=google.com; s=arc-20160816; b=ermNhekBAE+wJH2gkCdX/VRQzHyr7j9AFzwhTAQh7340M4U8JSgXB9djicaB/UGFII 11s1xrD3o0BvzEg25guZ8cpL8Du6umwHTNoR6Jt+EUNYlH0nUv+FqCgOpboxDajtZJqq dLGNMxBK1171wMjrs66J2lTGgJ3MCU42og8GrJX5AmI43x4BJkAgFocAmZzoirUIoGO0 2+BDKuT3Ec17SRpxVva96UMtgrMVW7+uAA3n0Hijlc3MmDP5L/1O+He6s406plnIvmYA RyorboMf+nA+YDVGJEdqmLGtls6F8Bx3PvNcg3QjzIXoYUoJnDakdp0MPT+zpYoJnscU 3UVQ== 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=Dx2qiVbtcnvo9hiyRO0Rt8sPm8J4l82Ym1oh2Kcvb5E=; b=jF4DkqaJ0pOdW5E0nggzRNVFk8cn3X8cT4UBPE5P4o5nHBD2XzgsJnIJrPmzdleMwR eVG4x1Z/I6MUF1rwa8moXs1s1YcK/x3HgXiuA/lqTeOvo+V2b7txBuKvXyPykUHWqP52 zXI/MJUWPjNqK5ZjRF1fbujMsEYIVcau7H2VX/gVxhrWazXVi7kNh9Z8vXNPxXe/K7y9 vPEN6E3rsGBFjG6fa3U4tLKobvRzR7l1TRQkb11/nSDtwVg3fuN+dVb9loAapVupHoGQ jnIE6DNSqrWaEZFble2R2C5me5iOU6vZNgjgaUVA6rbxwxH3BnBIbriJdH+x0eBe2hKD Rd2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=HFn83XBj; 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 m9si3510401otq.304.2020.02.29.05.36.50; Sat, 29 Feb 2020 05:37:02 -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=HFn83XBj; 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 S1727008AbgB2Ngk (ORCPT + 99 others); Sat, 29 Feb 2020 08:36:40 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:26518 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726973AbgB2Ngk (ORCPT ); Sat, 29 Feb 2020 08:36:40 -0500 X-UUID: 08d7846565454e66bdbcaa117a462aae-20200229 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=Dx2qiVbtcnvo9hiyRO0Rt8sPm8J4l82Ym1oh2Kcvb5E=; b=HFn83XBjSN2ZxM7F4CXsfaqhgxrVYIf5dQFCh9EOWelxD2KgmyjkdYxi9Tj6zgzVmGEtRibQ4XXGyJR6EMVPy3YqXx5f1wVLtt9OSW98ITV4Y7aL2Pe1uhC43IGpxXS7S9VKmbV4ZE/S8k0RsuO5JJ6sy5tWcQ72kYedJ+6W6vs=; X-UUID: 08d7846565454e66bdbcaa117a462aae-20200229 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 690810008; Sat, 29 Feb 2020 21:36:33 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 29 Feb 2020 21:38:08 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sat, 29 Feb 2020 21:36:09 +0800 Message-ID: <1582983391.21073.1.camel@mtkswgap22> Subject: Re: [PATCH v3 02/13] 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 , , , "Ming-Fan Chen" Date: Sat, 29 Feb 2020 21:36:31 +0800 In-Reply-To: <1582903376.14824.16.camel@mtksdaap41> References: <1582897461-15105-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1582897461-15105-4-git-send-email-dennis-yc.hsieh@mediatek.com> <1582903376.14824.16.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 SGkgQ0ssDQoNClRoYW5rcyBmb3IgeW91ciBjb21tZW50Lg0KDQpPbiBGcmksIDIwMjAtMDItMjgg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