From: Jose Abreu Subject: Re: [PATCH v2 2/2] drm: bridge: Move HPD handling to PHY operations Date: Fri, 3 Mar 2017 10:05:36 +0000 Message-ID: <67b8ac3e-3227-8f32-7f20-0cd4b6d4510f@synopsys.com> References: <1488468572-31971-1-git-send-email-narmstrong@baylibre.com> <1488468572-31971-3-git-send-email-narmstrong@baylibre.com> <6652377.Pu8amSWD8H@avalon> <952185cf-16b8-b987-4737-96c2db4a0f6c@baylibre.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <952185cf-16b8-b987-4737-96c2db4a0f6c@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org To: Neil Armstrong , Laurent Pinchart Cc: dri-devel@lists.freedesktop.org, laurent.pinchart+renesas@ideasonboard.com, Jose.Abreu@synopsys.com, kieran.bingham@ideasonboard.com, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org List-Id: dri-devel@lists.freedesktop.org Hi Neil, On 03-03-2017 09:07, Neil Armstrong wrote: > > The problem is that the HPD/RxSense is tied to this phy_mask and glued into the > dw-hdmi driver. > > The *real* solution would be to completely separate the HPD/RxSense irq handling to > a separate driver as a shared irq... > > If Jose is willing to give me some documentation and Freescale some boards, I'll be > happy to do it ! > > Hmm, why don't get rid of phy_mask totally and just return the new mask in update_hpd() function? Or add a get_hpd_status() callback. (I also think there are too many callbacks. For example we could have: setup, set_status, clear and then just use parameters when needed: void setup(bool force, bool disabled, bool rxsense) void set_status(bool enable, bool enable_ints) void clear() What do you think? I only checked quickly the code, don't know if this is enough. Best regards, Jose Miguel Abreu