Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp155048pxf; Wed, 7 Apr 2021 23:11:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOvSZpVRrKMamuQKLQyedgLPYDxxkAk0/glKHjya6NxPl53lRao1B+f0XIfdbdLBitZgpa X-Received: by 2002:a17:90b:3b87:: with SMTP id pc7mr3873404pjb.87.1617862308735; Wed, 07 Apr 2021 23:11:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617862308; cv=none; d=google.com; s=arc-20160816; b=LwEDHIa5Dsw0o6lkg35AHwpjMOlnalCt3xi1ZJrgoVdH6LjCeEHlTIhHqsvMPgxsOr vsB6XtQdGbsvFPeMDhb5dkPi/UI2PLkSQ5pAaodawqmPEETxykYfJc+kfLUOXRukSEgI EC6m3TCrebkFZ9abSU6j/CHYUxbYNHjN2cCwPIc45xbha8h3hY+0PqAv0+j70K+ew7HD d0rRlTa8BQgdA9ltUb/w34caNX3Y3lzQERmKfCN3kA1uy8wVONimHQeZXtRb4eBLXMxV byZAUQmY+BNL8ZnTOgGaE7iOTUxnglfmbeMqYGtARK1ev/z3V3gNKprepb43JBTbJtMR M2OQ== 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=EJEGrtJeH59qQNQHwYtSxuFXpFKOfiBvVZE4IMKw+UI=; b=Z//p/d0i5Y0XFtIfvaIlsvxV0fQiW6Zg1201ZMst+sFnXVsTFlkeIC1Y1lhpD+rnjv kC05YDKBOfsE4pOdqCTPFgF/u/+QidLzVm95YYYGGA+HQB2R0n/mtctSn1Di7ZUev7ak 60OVbS9EtFSeig5Q91TxLid68taA2JMTCfMtiMsepfUWK8Ng9rLwV2y1LSP8eK4Nm3Q3 /vECSTPjEtq5dIZYpUqHNHnqOVDvaaFUYg1p1OQ9UlXvMokQZzOokpkT3tuWvCDbcS3m UrZZ+4lpE7QRs0+yGMKjLB6i5Ecj94Ner+RX1BPJGfNfZyWgX3XZh+zOX0rMHsUzLdkt YQ5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UsTCpPMv; 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 m21si27738809pfa.124.2021.04.07.23.11.36; Wed, 07 Apr 2021 23:11:48 -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=UsTCpPMv; 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 S229811AbhDHGJu (ORCPT + 99 others); Thu, 8 Apr 2021 02:09:50 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:45282 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229534AbhDHGJu (ORCPT ); Thu, 8 Apr 2021 02:09:50 -0400 X-UUID: 8d8b8fd3c0cf4307ba5ed5db2872e22e-20210408 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=EJEGrtJeH59qQNQHwYtSxuFXpFKOfiBvVZE4IMKw+UI=; b=UsTCpPMvfYiOkL2VHzgv6WKbUAMQH6RFhyRvvqDhgiIv6Bi/AAMMH4w3EqIS6isiMjpthY8Ed+UtZ4MxUoiOsqDQBMq5m5P+KCfHesA8/ndodQtV4/QUBrVyxm1TD1FT1A6TVbnxWEgRHG8rZMeQ+0uyq+lVubnCnF50C22Ki5Q=; X-UUID: 8d8b8fd3c0cf4307ba5ed5db2872e22e-20210408 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.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 1071343655; Thu, 08 Apr 2021 14:09:36 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 8 Apr 2021 14:09:28 +0800 Received: from [172.21.84.99] (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 8 Apr 2021 14:09:28 +0800 Message-ID: <1617862168.8874.13.camel@mtksdccf07> Subject: Re: [PATCH v2 5/6] soc: mediatek: devapc: add debug register for new IC support From: Nina Wu To: Matthias Brugger CC: Rob Herring , Zhen Lei , Neal Liu , , , , , , Date: Thu, 8 Apr 2021 14:09:28 +0800 In-Reply-To: <23c0d15c-6cc2-dc40-e45a-c2fb749cec1f@gmail.com> References: <1617259087-5502-1-git-send-email-nina-cm.wu@mediatek.com> <1617259087-5502-5-git-send-email-nina-cm.wu@mediatek.com> <23c0d15c-6cc2-dc40-e45a-c2fb749cec1f@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: 7CAFF274F06E74740FF1A0901266ECC9C36F1710CE7BB4806B874DD48507ED1D2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIE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