Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp514271ybf; Wed, 26 Feb 2020 17:34:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzlbrkHqSsWXcotqICc+lpMlpjTj7Ec9mcxJ3Dc5cCe86niAYzMYFAhym/NsS4OuPeIEXio X-Received: by 2002:aca:c0c5:: with SMTP id q188mr1448699oif.169.1582767266505; Wed, 26 Feb 2020 17:34:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582767266; cv=none; d=google.com; s=arc-20160816; b=Mfyq1/dyQ6M6RQ9ESuwrhHDoTwjE0ia07rIwr7cVXJwmPiW3aM3oRkj2kAuT+k70/a kmfu8CxIg44qO0xNSmgQ+mgvB2AVyXNUD/vxHT0o/tB16X4EoQhp0Di6FghCkCy0Txh3 K8t8MQZ75jnydZj9xftMaAY99A366zm5Km6wEOOVe3hniEhPbKNmU1m6Ivq8d8Qbe+Ba omPxi6iK7T1tR2H5o3+B/4R+9+BSOeeqbZ7E04r6B2UoG8x0vT/WCDSqG9TnXypjxsOM klRAam8xF15s9Ag8IxP9+FszD9zOMuUHYb8e92gqpgi0AoM627jLnEBcAasXE7H63MvP lNPA== 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=CIR9EL5zBnoh8nvfq5nySdNJ6R1FKWqVgskka9d0zdg=; b=jpFlVlfp3tRXVxEVaTgjs2hU47XZ8ygX6r0a1OJgRIv0eYmRpG5PfTgJv9FcOZcvfN u9BOFihgO5cbrGE+NXM6PoU89JB36hf9KfSicM0lUQEy8ej2Lg9jb7DI/v9ljnOkAYC1 FlGan4Ijpoe9PdfMqRzS2SrLIh6Gt5pRnxdY12yqD3/Gg7MSW/8fQDNmWaS6CNN2OiYt usxyqsoUtF0OBQz2e1CuaF1Vpnst4K/t8yJ55IdlJ7+/6fSpGUTP2CloxYrV5yM1i9Tv jUY4142uLYQZ79WqYbxpmCNh6wKZ1Un93U6PGUitCAUWrkTZ4s8whimvWhGb7e3bspUv G8Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hVlI8Q9I; 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 i23si594659oto.206.2020.02.26.17.34.14; Wed, 26 Feb 2020 17:34:26 -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=hVlI8Q9I; 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 S1728217AbgB0BdL (ORCPT + 99 others); Wed, 26 Feb 2020 20:33:11 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:37183 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727964AbgB0BdK (ORCPT ); Wed, 26 Feb 2020 20:33:10 -0500 X-UUID: 25dbe4fbec83480ba6777e7c0a56384b-20200227 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=CIR9EL5zBnoh8nvfq5nySdNJ6R1FKWqVgskka9d0zdg=; b=hVlI8Q9IQDCf1XeDabUC2Krh4oj6ec4N7a4HdlUrwEzDs2t+N0yPl+z0BSsjXftSiF/kLRJlRqMAm1SPlAoaQhDhTT4tchWiG+9tBYIkKYQ+3SqcHqaJgWdUutMn0CcbTeggntXOv0q1Nxh/lzQHcXO8pTrpGaQ3muFFeW7l4JQ=; X-UUID: 25dbe4fbec83480ba6777e7c0a56384b-20200227 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 25294029; Thu, 27 Feb 2020 09:33:05 +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.1395.4; Thu, 27 Feb 2020 09:32:15 +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.1395.4 via Frontend Transport; Thu, 27 Feb 2020 09:30:45 +0800 Message-ID: <1582767184.20746.6.camel@mtksdaap41> Subject: Re: [PATCH v9 4/4] drm/mediatek: Fix mediatek-drm device probing From: CK Hu To: Enric Balletbo i Serra CC: , , , , , , , , "Mauro Carvalho Chehab" , , , Weiyi Lu , "Seiya Wang" , , "Collabora Kernel ML" , mtk01761 , Allison Randal , Thomas Gleixner , , Kate Stewart , "Greg Kroah-Hartman" , Houlong Wei , Matthias Brugger , , , , , Minghsiu Tsai , Andrew-CT Chen , , , Matthias Brugger , , Richard Fontana , , , Daniel Vetter Date: Thu, 27 Feb 2020 09:33:04 +0800 In-Reply-To: <20200226105419.632771-5-enric.balletbo@collabora.com> References: <20200226105419.632771-1-enric.balletbo@collabora.com> <20200226105419.632771-5-enric.balletbo@collabora.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID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