From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=178.238.236.174 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795530240; b=IHRsSgycMIDLIRU1IebDD3QZRZtNQlDtZQ9yGsFJV9DbPoAZVLzGInUItVtXnjQMcu/E gJUP60F7fdIT8QznnkL7b47Lnnx3GpVnqOrEpOQPPQdy4FcI8FPDo3OxpXsOripwesiHC sObrZK4C0gSp5U6Omkdh4h/Zte0TKc//72fEq0cl2K2PpvvcOYEWPC02MjqLVrOAF0daL CvLCahb8SePAzxaReNNmeGgteThE2/UapFp5DyrdclkwQ3v9Qg0TuQGpYBwzikcg9UVVL XYgl1Jk1urUgKjHsA2SDNBLFFJzxJi2homoeNVFMTxP+q/h0GbXMIkfa8CEOHnlA2ng== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795530240; h=DMARC-Filter:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=NrmR7f4NWvJtaGShihv5Oaav7f9YUTikEYvCAM/Zj8A=; b=KugP51xtyj47j8V5yuRr/kF4V7P+d6a3HYLq4A6L48zWCNlx75NCgbZA/8n3iDaIRM4P F+6vhcUke2SBleQjhsN67aheHrHbnQ+w4QG8BqPq6/d2kh7PRFNuie28IfO1P8WZ6XxJG tl/wGz6esIJep207tsRb+XrkQkHG8TpU7oJImYEDN66bGCifqIPw8K0j7TRYP0wn5LGn8 fVXa0k7cPvDtJ22yoWBvjudxrutEImQF0ofcgAAr2V2T0mbfTXQX6DLQ+O9jJrzPNfhju joa7Fcp60zj3iZi41FH95ITe1e7x5/YmPSdzuW4iEWwGQ0S6oOBl56hRzxrbCciwCsA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=kemnade.info; spf=pass smtp.mailfrom=kemnade.info; dkim=pass header.d=kemnade.info header.i=@kemnade.info header.a=rsa-sha256 header.s=20220719 header.b=C8M1+SN+; arc=none smtp.remote-ip=178.238.236.174 Received: from mail.andi.de1.cc (mail.andi.de1.cc [178.238.236.174]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E38F606A32A for ; Tue, 24 Nov 2026 14:24:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8E38F606A32A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kemnade.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kemnade.info Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kemnade.info header.i=@kemnade.info header.a=rsa-sha256 header.s=20220719 header.b=C8M1+SN+ DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=References:In-Reply-To:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description; bh=NrmR7f4NWvJtaGShihv5Oaav7f9YUTikEYvCAM/Zj8A=; t=1795530240; x=1796739840; b=C8M1+SN+SyxPP5AW+s6I/sBL2KqFAW3E3QJGTgSikI7+HnWSU8AznlacoOxzRLiW2AyrxIktkVo L6WpnCmoBr7GySzD70da7goNISGRiyQNBUunTLf3xnSY/wfRcKOORWLBEVJ24P8SGgPj+9OHCkidm ROe8AUj3BCFxJF1rVZBRfssGDXqrLRONs4d6WLhYerxhhCiZPatOzCjZgDYpvd5f3gFabTBBLvJVu jPUmmE5HllI+7BtGER1PavmxWkNdBtvsnmuo3CxgEhDj6LgByj9hwpNot9OI6zsf5iCnOVphcXfi6 jlHDd6yIzqeSSzNZ916USVVKcPj24VIxsCxQ==; Date: Tue, 24 Nov 2026 15:23:49 +0100 From: Andreas Kemnade To: Tomi Valkeinen Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, kernel@dh-electronics.com, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Neil Armstrong , Dmitry Baryshkov , Robert Foss , Laurent Pinchart , Jernej Skrabec , Luca Ceresoli , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Christoph Niedermaier , Marek Vasut , Maxime Coquelin , Alexandre Torgue Subject: Re: [PATCH 0/2] drm/bridge: tc358762: fix reset handling Message-ID: <20261124152349.6a1b6826@kemnade.info> In-Reply-To: <7a94fa5a-ddfc-449e-b014-387d8e868e97@ideasonboard.com> References: <20261124-tc3-reset-v1-0-a5d27fe4b5de@kemnade.info> <7a94fa5a-ddfc-449e-b014-387d8e868e97@ideasonboard.com> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.49; aarch64-unknown-linux-gnu) X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 24 Nov 2026 15:44:40 +0200 Tomi Valkeinen wrote: > Hi, > > On 24/11/2026 13:54, Andreas Kemnade wrote: > > The bridge driver desserts reset after disable and asserts that > > upon enbale. That requires users to workaround that by declaring > > the reset gpio wrongfully active high. As an interim solution, > > ignore polarity, until things have settled to fix it afterwards. > > That will break setups with an additional inverter in the signal > > patch but those should be uncommon, at least not seen in in-tree > > devicetrees. Fix polarity in the one device tree actually declaring > > a reset line. That patch has to go in after the bridge fix. > > > > The issue came to sight during experiments with reset lines on the > > Epson Moverio BT-200. > Indeed, the driver has it the wrong way... But what is the way to fix > this? Fixing it will always break the backward compatibility with dtbs. > > Is it worth it? Or is it easier to just adjust the bindings doc to > mention about it, and add a note to the driver that the gpio is set the > wrong way "on purpose". > I am a bit wondering whether to use the reset-gpio driver as aux device, and then we would need correct dts. There are two chips sharing a single reset line, so I have to deal with shared gpios. It seems not to work that well directly. But first I try to have things working with well-defined boot state. That reset-gpio stuff was invented exactly for that case, see commit cee544a40e4426040946e685988b1489f13e6600. > Or, if this is to be merged, I think the code around the > gpiod_set_raw_value_cansleep calls should have a comment to highlight > why it's calling raw funcs and what the plan is. > Yes, the comment should be there. Sashiko suggested to add an entry to of_gpio_try_fixup_polarity() to have fixups. Regards, Andreas