Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1078670pxb; Wed, 16 Feb 2022 10:27:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQVgn6iSW5Y0PEyXi93yLQsPTh0MnuiE9o4oPuXBR8fODiTDfiWg9V461ZV+aed17YIZ5T X-Received: by 2002:a05:6402:7cb:b0:410:dde2:5992 with SMTP id u11-20020a05640207cb00b00410dde25992mr4515917edy.323.1645036039258; Wed, 16 Feb 2022 10:27:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645036039; cv=none; d=google.com; s=arc-20160816; b=tpb+gUslTutg4EObAqni/gfFaXfVYxfuAeZXXWx5A0so9tp8zniAGKp1OdxU9q1MMK VKYu10p7IxtF3bkAp/cUVCCWjh850hNywbv/8bpRdw5ko0nTA/cXJRMx/FoXd1vjymFl x9MMinkplAXz8Hd6rGrhZ6lkf4n6HOz8Zjh+TuuM73+53hK2W0XlbdRfNk9LT69A1sIJ QG6Z3hm1AfTNMQQUQ+xiF+cI5C8ZrPOy9HhmlPeM2MLMH2tAQRH/rZyk7afJtaD0k1hK AC+ngvwHWckQts8XkTdktgWPFupZMIetIXvj9+h3qdofaLFG24+q06JD+V47KsvDmRWq 4Udg== 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=dhg8ObNqJqU9MXgC8htbZHEYozTLZfTKNUE4M3ppPEQ=; b=zICpGAJL8wd+YS1hsoE6oOxNB/g66uHNxGFyvTCE765w6y9C7LtoIU5r5QzsHs/cao rNraG1SeRB+DvlRqUdGfR0gdDragbuoKbkKp4vEOquceoyao7GmXhEbC9DXNax87TGNp hn90OXq7VrVlsdup0gS2aRpQUdnoJwazt6ig65JMKVZo1PjfnzDltV04oi6QWAbbJ0O6 gZgZmdohEt3h9ZdF6wiohSG5nh/uarl9fWYbceOwKjeis3R1VBubSuGrJN7zMBi/Z/Gv 2e48N4Wyrp/crp8FJpaRRpjM3Rkzg9QE+oeTFo2i9lCOZf30LINo0gOAhFydaJKd4Zpn jHrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=X3YBCQPL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q6si325211ejt.197.2022.02.16.10.26.56; Wed, 16 Feb 2022 10:27:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=X3YBCQPL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S237480AbiBPSKp (ORCPT + 99 others); Wed, 16 Feb 2022 13:10:45 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237442AbiBPSKo (ORCPT ); Wed, 16 Feb 2022 13:10:44 -0500 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 011C32B0B1C for ; Wed, 16 Feb 2022 10:10:31 -0800 (PST) Received: by mail-il1-x12d.google.com with SMTP id f13so412438ilq.5 for ; Wed, 16 Feb 2022 10:10:31 -0800 (PST) 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=dhg8ObNqJqU9MXgC8htbZHEYozTLZfTKNUE4M3ppPEQ=; b=X3YBCQPLYrjbSwdYieYTzfp5aHHmxsfeg3RTf4qZg0wFQ6+c9DxcKdaAJmOlc37Dsv CTdEpl0BzCTg87o7PF2lX4vr7saXRgNN4zH/iPLgcyLTPMZGhRdeuiUlyPMWzB1yffkQ L1SizYyjHV+Gfh5MA9OSmEyn4e1glalJ49FS0= 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=dhg8ObNqJqU9MXgC8htbZHEYozTLZfTKNUE4M3ppPEQ=; b=ueoZreMQ1k4DLXCSdUsHQZ2vn7iQ90WHddohi2Vq1KHLJ1thG89EZWEeea9H/TGV9M ROYRiWLJ4SIEXG3Yi1KqZ8+EnsY0nLM3g4GC00VKRsTkjD35DRpouz+AvaEjKwP0/NSs bZGpjcK48O8HEcx293p3joUkSf1TKR/FHNxsb9PB0u2I3fP2p2uSpJxA2s3Jl/UOwaHJ KynwkRCfaX7MPKvbKvxfKmGo9nyYIC/Xfws/HKQRmLGGSkXb5z8LO4M9cjwl2L1Yna75 GwffU0U3sQnYus/WlNKVABPZ8ZRLcS46qkrLqiVtcx1g3YS+gdQTk4OyCcq1MSOoaL3u 72Gg== X-Gm-Message-State: AOAM532fEBhwpXtWsen6Kc831Fb01OLRsJFx9ax9nMFYnKR24E5sAmYC AJ38lmhxggJ06X1Mjwq0KZPlWxYGJUiK9A== X-Received: by 2002:a92:c269:0:b0:2be:795d:abb2 with SMTP id h9-20020a92c269000000b002be795dabb2mr2638878ild.46.1645035031221; Wed, 16 Feb 2022 10:10:31 -0800 (PST) Received: from mail-il1-f179.google.com (mail-il1-f179.google.com. [209.85.166.179]) by smtp.gmail.com with ESMTPSA id w4sm284536ilv.13.2022.02.16.10.10.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Feb 2022 10:10:29 -0800 (PST) Received: by mail-il1-f179.google.com with SMTP id z7so408410ilb.6 for ; Wed, 16 Feb 2022 10:10:28 -0800 (PST) X-Received: by 2002:a05:6e02:144f:b0:2bd:da3d:f50b with SMTP id p15-20020a056e02144f00b002bdda3df50bmr2425111ilo.165.1645035028535; Wed, 16 Feb 2022 10:10:28 -0800 (PST) MIME-Version: 1.0 References: <20211001144212.v2.1.I773a08785666ebb236917b0c8e6c05e3de471e75@changeid> In-Reply-To: From: Doug Anderson Date: Wed, 16 Feb 2022 10:10:16 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] drm/bridge: analogix_dp: Grab runtime PM reference for DP-AUX To: Brian Norris Cc: Andrzej Hajda , Neil Armstrong , Sean Paul , Jonas Karlman , LKML , Jernej Skrabec , Laurent Pinchart , dri-devel , "open list:ARM/Rockchip SoC..." , "# 4.0+" , Tomeu Vizoso Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Feb 15, 2022 at 4:41 PM Brian Norris wrote: > > On Tue, Feb 15, 2022 at 3:46 PM Doug Anderson wrote: > > On Tue, Feb 15, 2022 at 2:52 PM Brian Norris wrote: > > > It still makes me wonder what the point > > > of the /dev/drm_dp_aux interface is though, because it seems like > > > you're pretty much destined to not have reliable operation through > > > that means. > > > > I can't say I have tons of history for those files. I seem to recall > > maybe someone using them to have userspace tweak the embedded > > backlight on some external DP connected panels? I think we also might > > use it in Chrome OS to update the firmware of panels (dunno if > > internal or external) in some cases too? I suspect that it works OK > > for certain situations but it's really not going to work in all > > cases... > > Yes, I believe I'm only submitting patches like this because fwupd > apparently likes to indiscriminately whack at dpaux devices: > https://github.com/fwupd/fwupd/tree/main/plugins/synaptics-mst#kernel-dp-aux-interface > > That seems like a bad idea. > > (We've already disabled that plugin on these systems, but it seems > wise not to leave the stumbling block here for the next time.) Yeah, it doesn't seem great. I guess it's _slightly_ less bad since it's for an external device. As I understand it, they never really turn off in the same way. It still feels like letting userspace indiscriminately whack at DP AUX registers isn't a great idea, though.