Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2124176pxa; Mon, 3 Aug 2020 08:05:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwztzZMlvJ7Y8S2E3+lqgmQ043cNZfHV7wB1jb+uDpHS9srBFYlZkt15O+/UEJu9vgklKlH X-Received: by 2002:a17:906:269a:: with SMTP id t26mr16901258ejc.286.1596467120739; Mon, 03 Aug 2020 08:05:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596467120; cv=none; d=google.com; s=arc-20160816; b=F+Hfo6xe8eS+pMmKeT2cQeH33HM+VHYbYkgOfhAEguP03C2usB1UecLEdB1n/vCuII PS1t8llYLAJ+5u1qneDmpxHxtnJ/grg0zsEzf8YXoPxJc9fYIswTptvb/ecbitV4BbdZ pFREVpMduJp0CdAVGkMzfOYT+wiaMi1b04dgp6jEt06ZN66/m6EZyC9uOZIJym2JrTrP RLrBocQ5wqX0xUYJn5B9KBQEk+rBobIC26piMXQG27I0mY/MzlhPjkvEQmsUFkJ26I1x rRK8eOJ/2sm0nIs470Tz42q2MY0ii4LmgrOLF5SaeppJrApN9d/BaAVIEX8ymDFiiYYd CDrQ== 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:subject:cc:to:from:dkim-signature :message-id; bh=lveE/B5Sc1PNwm2il2hYBThpT4HQ6BzCOeCbte77MAM=; b=y4Viynv7GUrsnHQW954Ygwuky7RiQgFtaK0389/NCv1xh4YwCiIdD+g0Lok5b6zMeX EURQTBEEXxmUJJAqwnENH3tNPAoOCBdK8K6PfGIZgSMg9AI+w1JT5OyhQtBpqHKawEkU FPuMNJRLFn7KA3CyAIZ0twTFsMki4mIES8rvkoUmYIMTZndlgCJkeuCnsLbMK2DzF1gG 1MPV9ycSCBRT9/83FUePP5FszZvw/FMsLAIEQOQIGwz1g9USrjxhxLD6PeetJUeLeauB 9pa6oIf7oCTw38K3w4G+6Q8lwLMVl8vTZcjaVPJ1mRsB4rpNuQOvCDGVK/LFu2w59nft a45g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=EGH2t2yq; 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 d19si10606460ejj.468.2020.08.03.08.04.57; Mon, 03 Aug 2020 08:05:20 -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=EGH2t2yq; 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 Message-ID: <5f2827b0.1c69fb81.881f6.0200SMTPIN_ADDED_BROKEN@mx.google.com> X-Google-Original-Message-ID: <43f5cba1199f89cde68c8a577103f28b@kernel.org> (raw) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727118AbgHCPEY (ORCPT + 99 others); Mon, 3 Aug 2020 11:04:24 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:9837 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726276AbgHCPEY (ORCPT ); Mon, 3 Aug 2020 11:04:24 -0400 X-UUID: 44fc7870d10c4dc6a677fb0714efd6d4-20200803 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=lveE/B5Sc1PNwm2il2hYBThpT4HQ6BzCOeCbte77MAM=; b=EGH2t2yqz9uyT/cYjKROtRNY+yY8pYku8M/ORjIMaMB8WQPalFxHQNx9eWCAq91zzb3mMHnjuZfP3muJt5eu3eStiykVU3i7b8aeGbE0CIoZQLkOotnZeHfxo7HXnbL7jfT9J7kW3fULseBhPnIavhyu1fIxTMhg2sL6aANAjuo=; X-UUID: 44fc7870d10c4dc6a677fb0714efd6d4-20200803 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1024477934; Mon, 03 Aug 2020 23:04:15 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 3 Aug 2020 23:04:10 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 3 Aug 2020 23:04:11 +0800 From: Mark-PK Tsai To: , Mark-PK Tsai CC: , , , , , , , , , Subject: Re: [PATCH 1/2] irqchip: irq-mt58xx: Add mt58xx interrupt controller support Date: Mon, 3 Aug 2020 23:03:37 +0800 X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200803062214.24076-2-mark-pk.tsai@mediatek.com> References: <43f5cba1199f89cde68c8a577103f28b@kernel.org> MIME-Version: 1.0 Content-Type: text/plain 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 RnJvbTogTWFyYyBaeW5naWVyIDxtYXpAa2VybmVsLm9yZz4NCg0KPiBPbiAyMDIwLTA4LTAzIDA3 OjIyLCBNYXJrLVBLIFRzYWkgd3JvdGU6DQo+ID4gQWRkIG10NTh4eCBpbnRl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