From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1F1CFC433F5 for ; Thu, 7 Apr 2022 08:57:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fW1kar4r622NFW6SY9mWQ1SUrVq3r4Z7Trr1hOQ9kz8=; b=sc/BoqFZ7SrZT3 o5PuGkOBU0ZD/I+AfCuBS2pc6sTorJTpKnq/FhuXUbXfcRruFYK1ihRiC7z+SQAhA18ggzz3BtEE9 pXbXbLj5aZMErpj1avzNo4kJtcs6Fo9DRC7HlWvG9BaZHSm1FFbPI9ZZIixRws12Ce59b0kl2ZYT1 uvrf9EhSm9qStBIGAhKS8yPz98txy2e47H8sQNqjJxuVxHrwDIOtyqQbnNEggEYG4hW9/hvgMvs1g qzn3ajmUK/Jn9KDI4SR9UhwW8crPFxpUKZmYMIFyFLOIaeRtwc2ueEOVBHBcCAL1MBlyWWAXopQNj g0FuTIecjDUSQjKlvsPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncNw6-00AcYa-Ie; Thu, 07 Apr 2022 08:56:15 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncNXf-00AQPw-FJ for linux-arm-kernel@lists.infradead.org; Thu, 07 Apr 2022 08:31:01 +0000 Received: by mail-wr1-x42f.google.com with SMTP id k23so6697697wrd.8 for ; Thu, 07 Apr 2022 01:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=mhNafdINL/bGSsdlwXHEq3XpvjEJWoppfiwKb+g/P+c=; b=ueQuovcZvEt3n41Rr5VE/fSBy6pGmbFsDIHSEDegP7Du3XYgNWq9xzJDUuLESdpJ2K 27O5kvicyEcqww64Id2bAU3wdmT4ulnvrCP3KEnFdrlZo24ekaISTuI+oDQnsa/lYBDC mfEl5+8MsJKNxPjf8HeSWf1WFJwD+VSINxrw8s5FuMnOqQ2wdp4LLDDMD6iW30HYArl7 /iHWftqJlMj316Zw4w/T+st8ed53A1WUoC0E1d2N2VoUR5PInyHfgtC4CdX3zCLodMLW 61PHkxhRX2KF4MIKnhn2PtQXHvlDyOeVAN9HR/JUmAKVfcbfXYdpI+h1axeibEfeO28L kycQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=mhNafdINL/bGSsdlwXHEq3XpvjEJWoppfiwKb+g/P+c=; b=Dy6qa3azQp9KyGTHDOu3mFDUsX6hgflyV/Eye7zmE7U4Vt1boj/AlwVsSBxLVq9BU3 uDBjwZM1uCO0UYSRw3scmlkmR5knZxi8uXwLNkKsi9j8dAJ8FZ1lGdbbLEa8OHnFIPTG MOJ+DfZNP/12Sp3YN517HHKCoMVGhYd5j3NI8OjMJMnngNxinnE8rbU0DdWuilLvF7Z/ jdswhdBWha1n9qvVnyY80Sz0LJfaKv4ASMOV3k1DtvSR+Im4MdgJ7nHS1mYeTIE4a86W yPrWVk6Srge9nRCJ3ePFoTmrxEmZwBMywcNS9d9R9oQvCnpz0LG5YojV78NhhVoe7w6P 5cLA== X-Gm-Message-State: AOAM531g/IliHhmVkhPVJeZevjZvigkMfZRX9ZBgnpbsyUkG1hD6d8LS +mvrh+/r8y/jOvjyLBX+DhHW59uOJoMZcirg X-Google-Smtp-Source: ABdhPJyDahYyDu5X5b9pS0X7gZEs4+O0WHJD+fGEmCO9oi7r9gXJOeQ3Y1cMEpPj7dDF7hjSGxZ0UA== X-Received: by 2002:adf:f387:0:b0:206:1028:921f with SMTP id m7-20020adff387000000b002061028921fmr9785982wro.706.1649320257690; Thu, 07 Apr 2022 01:30:57 -0700 (PDT) Received: from [10.1.3.188] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id 11-20020a056000156b00b002040674fd13sm20116879wrz.38.2022.04.07.01.30.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Apr 2022 01:30:57 -0700 (PDT) Message-ID: Date: Thu, 7 Apr 2022 10:30:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v0 01/10] drm/bridge: dw-hdmi: add low-active PHY reset Content-Language: en-US To: Lucas Stach , Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Shawn Guo , NXP Linux Team Cc: Fabio Estevam , Pengutronix Kernel Team , Robert Foss , Andrzej Hajda , Vinod Koul , Kishon Vijay Abraham I , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, patchwork-lst@pengutronix.de References: <20220406160123.1272911-1-l.stach@pengutronix.de> <20220406160123.1272911-2-l.stach@pengutronix.de> From: Neil Armstrong Organization: Baylibre In-Reply-To: <20220406160123.1272911-2-l.stach@pengutronix.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220407_013059_606897_CBB7C1D5 X-CRM114-Status: GOOD ( 14.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Lucas, On 06/04/2022 18:01, Lucas Stach wrote: > Allow vendor PHY implementations to reset PHYs with different polarity > than the current Gen2 reset. > > Signed-off-by: Lucas Stach > --- > drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 7 +++++++ > include/drm/bridge/dw_hdmi.h | 1 + > 2 files changed, 8 insertions(+) > > diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > index 4befc104d220..7600f26aab27 100644 > --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > @@ -1365,6 +1365,13 @@ void dw_hdmi_phy_reset(struct dw_hdmi *hdmi) > } > EXPORT_SYMBOL_GPL(dw_hdmi_phy_reset); > > +void dw_hdmi_phy_reset_active_low(struct dw_hdmi *hdmi) > +{ > + hdmi_writeb(hdmi, 0, HDMI_MC_PHYRSTZ); > + hdmi_writeb(hdmi, HDMI_MC_PHYRSTZ_PHYRSTZ, HDMI_MC_PHYRSTZ); > +} > +EXPORT_SYMBOL_GPL(dw_hdmi_phy_reset_active_low); > + > void dw_hdmi_phy_i2c_set_addr(struct dw_hdmi *hdmi, u8 address) > { > hdmi_phy_test_clear(hdmi, 1); > diff --git a/include/drm/bridge/dw_hdmi.h b/include/drm/bridge/dw_hdmi.h > index 2a1f85f9a8a3..9b3d52a1e62a 100644 > --- a/include/drm/bridge/dw_hdmi.h > +++ b/include/drm/bridge/dw_hdmi.h > @@ -190,6 +190,7 @@ void dw_hdmi_phy_i2c_write(struct dw_hdmi *hdmi, unsigned short data, > void dw_hdmi_phy_gen2_pddq(struct dw_hdmi *hdmi, u8 enable); > void dw_hdmi_phy_gen2_txpwron(struct dw_hdmi *hdmi, u8 enable); > void dw_hdmi_phy_reset(struct dw_hdmi *hdmi); > +void dw_hdmi_phy_reset_active_low(struct dw_hdmi *hdmi); > > enum drm_connector_status dw_hdmi_phy_read_hpd(struct dw_hdmi *hdmi, > void *data); This has already been submitted at https://lore.kernel.org/r/800262112191a720639ba321be18f0926d4e1d2a.1649230434.git.Sandor.yu@nxp.com _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel