Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp925418pxb; Wed, 27 Oct 2021 15:20:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyb8e3+qnksBOsz+EGhTokbNbwZ35BPKCxuOuDR1MLYjiVTEWJsktbeCCyA0hhcvp2KTdRC X-Received: by 2002:a63:9809:: with SMTP id q9mr341717pgd.235.1635373245810; Wed, 27 Oct 2021 15:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635373245; cv=none; d=google.com; s=arc-20160816; b=hfTmD8ZvEv/g20vqa0NO2dXpwtoUEjnRCAaqCzECFnhriCcyUvXKVQ93UHU53nWp5E d0SD6rqA3QpgoUfQH2RtVMwyiweDOZOednn2FmwLshpS92vRgYngqiL4kFN6tAVNbVp0 v6+kRxZNhvnYOPtyBhp10DaGg/wruQ+ZyYsZZWaNh9ZkJvLwFw7t8wjrYjbMFDhj7P1E m6mHxQS3EYOf5lSAGQV7nv4jnH6Ds7VyQYm2V3laajcbJPBT+qelsY4WZfJg2URPryYq rfizsE/AN9VGuDjBE+YHYhYy7oIk+IdC3a4vo06C8NbaURKHDT+KYIUwCQy4tvq054ZG DdHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=UyCg7DiL988tpgR9pZu+L02w+APdAgTFVBDFz0gDAgw=; b=CZ/JSjyNESAi0ANjOfAcNkw4BKmozzOCOI2SBalyOIlP4v5p5W26qDSXP2HQwG9huV 3dr6PbPvi5k42rrHjsf4UNXbZkhGOAFLDaK4ZTtJBFM0ik4ks2YIFLxijfhS9lkoLvkM MGXnDg+hy5xwHEWoM7/RMAp+fQ+32tVEaBNNDpNVYZ6Ng1SGle90dU7PlExhc/Hi/sh/ 8ZQf1xrZFCvzw4VEUAs4J4HuHRf3WnjV4ZznxfBPoL1B+0aouPhpdYt8wIXLHFcloDwE zbqX6ldvuUCTPQKQfi1eSYYO81jF7bNMGAa6B8g9CmBcx1ZdzhJ4eevmIVuu3mqFIpaE t6Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=i+0qsvuA; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si1744565pgh.611.2021.10.27.15.20.33; Wed, 27 Oct 2021 15:20:45 -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=@chromium.org header.s=google header.b=i+0qsvuA; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230120AbhJ0WPg (ORCPT + 99 others); Wed, 27 Oct 2021 18:15:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230140AbhJ0WPc (ORCPT ); Wed, 27 Oct 2021 18:15:32 -0400 Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18770C061570 for ; Wed, 27 Oct 2021 15:13:07 -0700 (PDT) Received: by mail-il1-x12b.google.com with SMTP id i26so4575946ila.12 for ; Wed, 27 Oct 2021 15:13:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UyCg7DiL988tpgR9pZu+L02w+APdAgTFVBDFz0gDAgw=; b=i+0qsvuAqhfM+m9wIh07yUq5Hr/REgcloxgOucORITFVq7b3BGWhHtzu2Y4U9zjDcb va+jlyOMZWhp1ohOcL33fMOlthu8T2HfRrfii2ToHajqftEeVC1Ryrrw0/RaLjhBY1fF zhmU94L2XVbNxtZ3SA9bQEr3IfCr7czPzZmCU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UyCg7DiL988tpgR9pZu+L02w+APdAgTFVBDFz0gDAgw=; b=Qwi5RgtlZhfC46XvtWwGZ+zv990vJul5YjqTwfKi4FV1mCRHCdz9HsSym3EtC8FkEF HnQokrUB+VBEmq88tDzmoJEGgqaEfJAlrPg98r4k5WE6TtFKaT4y73M74EtiK607AlgD 4VUBYbvBMMjlNB9c/gR8FHSteapPyMBVp8y3+R4VTSbNDosDp9ZgPpefbTsBaVg/M4/P e4XjPtZV+8KkzzjFP0pkRAZ2fQgUg6A8JQSUQO57QjQuq5S8T6E1Exk2FGnoP8XuaSOa a7IwhcU+w8+jmdgldi8TpJL8bDRAv/2W5wXEWKszSmjMJF9XIFzC0eVax11MAf5+ETMQ dbXg== X-Gm-Message-State: AOAM530HwTAHj2CbKNeaFoK3RxM+3t7wd6m5bjqfQ7eYEZSWDdq/vmBy Eqi2+a4mXStRx8ykbOUg5SvHT0MtHtFbCQ== X-Received: by 2002:a05:6e02:1d99:: with SMTP id h25mr361727ila.29.1635372786329; Wed, 27 Oct 2021 15:13:06 -0700 (PDT) Received: from mail-il1-f178.google.com (mail-il1-f178.google.com. [209.85.166.178]) by smtp.gmail.com with ESMTPSA id n17sm571811ile.76.2021.10.27.15.13.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Oct 2021 15:13:05 -0700 (PDT) Received: by mail-il1-f178.google.com with SMTP id l13so4644538ilh.3 for ; Wed, 27 Oct 2021 15:13:05 -0700 (PDT) X-Received: by 2002:a05:6e02:1b09:: with SMTP id i9mr355037ilv.142.1635372785377; Wed, 27 Oct 2021 15:13:05 -0700 (PDT) MIME-Version: 1.0 References: <20211026145622.v4.1.I9d81c3b44f350707b5373d00524af77c4aae862b@changeid> <20211026145622.v4.2.I09899dea340f11feab97d719cb4b62bef3179e4b@changeid> In-Reply-To: <20211026145622.v4.2.I09899dea340f11feab97d719cb4b62bef3179e4b@changeid> From: Doug Anderson Date: Wed, 27 Oct 2021 15:12:53 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 2/2] drm/bridge: parade-ps8640: Populate devices on aux-bus To: Philip Chen Cc: LKML , Stephen Boyd , Andrzej Hajda , Daniel Vetter , David Airlie , Jernej Skrabec , Jonas Karlman , Laurent Pinchart , Neil Armstrong , Robert Foss , dri-devel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Oct 26, 2021 at 2:56 PM Philip Chen wrote: > > Conventionally, panel is listed under the root of the device tree. > When userland asks for display mode, ps8640 bridge is responsible > for returning EDID when ps8640_bridge_get_edid() is called. > > Now enable a new option of listing panel under "aux-bus" of ps8640 > bridge node in the device tree. In this case, panel driver can retrieve > EDID by triggering AUX transactions, without ps8640_bridge_get_edid() > calls at all. > > To prevent the "old" and "new" options from interfering with each > other's logic flow, disable DRM_BRIDGE_OP_EDID when the new option > is taken. > > Signed-off-by: Philip Chen > Reviewed-by: Stephen Boyd > --- > > (no changes since v3) > > Changes in v3: > - Fix when to call of_node_put() in ps8640_of_panel_on_aux_bus() > > Changes in v2: > - Add of_node_put() calls in ps8640_of_panel_on_aux_bus() > - Select DRM_DP_AUX_BUS for PS8640 driver in Kconfig > - Replace _put_sync() with _put_sync_suspend() in ps8640_post_disable() Not that it terribly matters, but I don't think the "put_sync" vs. "put_sync_suspend" was in patch #2/2. It was in #1/2. > drivers/gpu/drm/bridge/Kconfig | 1 + > drivers/gpu/drm/bridge/parade-ps8640.c | 51 ++++++++++++++++++++------ > 2 files changed, 40 insertions(+), 12 deletions(-) Reviewed-by: Douglas Anderson