Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2406773ybt; Sun, 21 Jun 2020 19:37:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXkOATE2FK7fNwBBZTjDzTRVwKy9hhaD7G5ReT208E477tSf+u3+Aj3cZHpJzYfTMS0xEy X-Received: by 2002:a05:6402:b8a:: with SMTP id cf10mr15409731edb.138.1592793425205; Sun, 21 Jun 2020 19:37:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592793425; cv=none; d=google.com; s=arc-20160816; b=BK9EhWkv6Y1fUfnVuQmjJin5g+Gwetprb5qyM//cJhvaQnLui7PKiZdT2AWNPEFmOX FK7ysLa/wvO2zhTsx1ZW1FSgQizbhO44xwRX3zmF6yyW7hyfAP+XsSGewDi4RCRU5Il/ HEx2yCq0yoUvPtUTMv2WbkLVFXxmRAOskivH/gmpE9q0m4wnGNLPeK3Vz1ngZ3w7HqQL X+8ljHi2h7ATT2W4yaXFphvOHL0P1cxBJi3zOddV/xtbUaoS849if5p0X5uzz10j3Gh/ 2I1tQ/OjJH5NdPxDYkvKQcRX38QzdVq9xSdjnYLdWcb0UAQP8ZY4PaZk8h3//1U0QyFn oy2w== 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=ByJTtYzQHG/165xTsWKSc+ZX9KvUOOK6HlxoNnCCfcI=; b=tSps9i2vOd5Sq5fVxJzZPOsFWvNpNbNyXtA79fTHiySe7tpqEzpKm5bW3gxJJyC5Jv Km56ObIi9vcPqyP4Yty2w7flOVh2magxmNRgPhzpaAAJbgbQH186IyGq1mgn5EmrGqt/ gelA1uEuxDkCwnik3rBQT2paTXthrylA5fuHE9HohZzMgNAkrDWPvkD8S8u3hpeoXDW+ FPu/j4fnDSuKpc4OsI4C2GwCfgM9CsW9G92wRpiNYhGWIUN25OE2+E8H6DzTjwtLasfM cfFxzecSZ7dPjruwmRfeHOYAcGY1PsUZIZcZeXGqyy07vxHSPZY9xWjlBYWl0SO2HBNY +AyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=WBCYsSsI; 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 dr12si8909453ejc.352.2020.06.21.19.36.41; Sun, 21 Jun 2020 19:37:05 -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=WBCYsSsI; 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 S1731032AbgFVCeK (ORCPT + 99 others); Sun, 21 Jun 2020 22:34:10 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:1039 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726696AbgFVCeJ (ORCPT ); Sun, 21 Jun 2020 22:34:09 -0400 X-UUID: e0759da0e2d84e389bebe29547b246e5-20200622 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=ByJTtYzQHG/165xTsWKSc+ZX9KvUOOK6HlxoNnCCfcI=; b=WBCYsSsIZmjOLJTTGoX+wpaZvbug9ImVQSu4f8MUBgGy0hHO2Z57dkSOh9G9daqSBmFLm7Am9MUGG6GCpdVsS4VV+fMCla4kosWWYXuUU+47zqElJDG2agL2dVUVrJskVIcwpEVFdhD0wMQ61YQT2kFaCO/3nSa+pZuLRdgnvnA=; X-UUID: e0759da0e2d84e389bebe29547b246e5-20200622 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 2134778133; Mon, 22 Jun 2020 10:34:01 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 22 Jun 2020 10:33:56 +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; Mon, 22 Jun 2020 10:33:47 +0800 Message-ID: <1592793237.11692.2.camel@mtksdaap41> Subject: Re: [PATCH v7 2/4] mailbox: cmdq: variablize address shift in platform From: Bibby Hsieh To: Dennis YC Hsieh CC: Rob Herring , Mark Rutland , Matthias Brugger , Jassi Brar , CK Hu , , , , , , Houlong Wei , HS Liao Date: Mon, 22 Jun 2020 10:33:57 +0800 In-Reply-To: <1592745731-14614-3-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1592745731-14614-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1592745731-14614-3-git-send-email-dennis-yc.hsieh@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 0AB90760B4D291E393731A3FDA391442CCC2891E54AD45EF39D2880EFE2E53802000:8 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 T24gU3VuLCAyMDIwLTA2LTIx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