Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp146972pxf; Wed, 7 Apr 2021 22:58:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFXIJLMFaCWaKi6omyDtb2BdQeZb/irJLTPv0p2LgOTLFbQzz3/NGNguTh8y24lRcv3Nkv X-Received: by 2002:a17:906:1784:: with SMTP id t4mr5641751eje.167.1617861527006; Wed, 07 Apr 2021 22:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617861527; cv=none; d=google.com; s=arc-20160816; b=Zh8E+1WK8iSGk3fdXnu7qDGg+RemOPFveqJpstjt7hB7f3yiLtJYYj5OE949lEG63F pR5HJzWJ3l+5mdME7rXUsLhlHXcE/oEnjl6U9Wfjk6S2rc32J4KKbWY+3I8vj0w8Ift1 5AvR8b+XqAMlHOCR9GdLFL/hbByOb1L8UcGgjUXgQiK90XXznCSbqlybR4D3Dwwe9J7f jyQrDUnmpfv6+WtocvH0puKmsbHnA/+GP7iI9BTwL0vEd4Wdv+KHZt3A+bQsqG3/efI0 N1ZJjc7MZA91kdNbqbJ9m2T2C8o4dJ7RbjMsM2U6kwXC9EI3aNL0oVtQKbEjYPfSJa1u PMcg== 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=NF6+KA1hmcxu8LOS4sh14AzA0G1CRSU3hyieSqe1wFQ=; b=dXpTlVQNthfeqwWtTJr9OkidXjhjTEsVLRxnD0bz2vfdm0g54bcYYCeVDaS+fE2r9A GrNuNsHtKWIjsFQsSEI8Eu01Q52z83rTYw5ZiHCavi7/Q6DOIWuxyhTOQv9/bP0hUb1Z io+sbOVZ7YgYS2/D6l9ge0OBHJNMFeUDS7NhV+7uw/gb7HDji8WD67lob2rgcZVhYAtH zbbkM7R1z1rHmMti9ikDlGsI69kkAe9hmFazj8d0jM65eDmlDbgZah4lh2gN0ZLOemr5 sQ/WrpEtBfjF7/9UeItQvkNiJfaMWra9lSo1yHl53+8qO9wyvJp3s6FHct2B6Fm3L6NW T7Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rk4R+Bhu; 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 23si2888020ejx.233.2021.04.07.22.58.22; Wed, 07 Apr 2021 22:58:46 -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=rk4R+Bhu; 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 S229562AbhDHF5Q (ORCPT + 99 others); Thu, 8 Apr 2021 01:57:16 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:33900 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229506AbhDHF5P (ORCPT ); Thu, 8 Apr 2021 01:57:15 -0400 X-UUID: 9ec0f36d79df4bbdade276e159f486fb-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=NF6+KA1hmcxu8LOS4sh14AzA0G1CRSU3hyieSqe1wFQ=; b=rk4R+Bhuk0RgMXW6IW8wB7poaU/a0Lp42O7LQDSO4ysz1h12KNbbSwd7NgyoXKS4WLMt+CUdNHUYEwMVorL9ge/0cJLwlu1uGJ7AKym9ZrseU0J1htMIn9OBLZTaR5h+pcogN0G8SdCtb8sigCVLJzVblvPg0JPTj68BOJHpIpM=; X-UUID: 9ec0f36d79df4bbdade276e159f486fb-20210408 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 270468067; Thu, 08 Apr 2021 13:57:02 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 8 Apr 2021 13:57:01 +0800 Received: from [172.21.84.99] (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 8 Apr 2021 13:57:01 +0800 Message-ID: <1617861421.8874.3.camel@mtksdccf07> Subject: Re: [PATCH v2 2/6] soc: mediatek: devapc: move 'vio_idx_num' info to DT From: Nina Wu To: Matthias Brugger CC: Rob Herring , Zhen Lei , Neal Liu , , , , , , Date: Thu, 8 Apr 2021 13:57:01 +0800 In-Reply-To: <39794302-7993-4f9c-b28c-577fdb0265a3@gmail.com> References: <1617259087-5502-1-git-send-email-nina-cm.wu@mediatek.com> <1617259087-5502-2-git-send-email-nina-cm.wu@mediatek.com> <39794302-7993-4f9c-b28c-577fdb0265a3@gmail.com> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIE1hdHRoaWFzDQoNCg0KT24gVHVlLCAyMDIxLTA0LTA2IGF0IDE1OjQxICswMjAwLCBNYXR0 aG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