From patchwork Sat Oct 1 08:06:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12996436 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 6D47BC433FE for ; Sat, 1 Oct 2022 08:09:03 +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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=uvnghoQTrjRkU1vE8HXNQarBgPzDJv+HEJ1tVT145BE=; b=u5OFNjc5f8z943 BA0YpN/HAlg6Yq/hpQFJx/StOgMvBFpaBsfOLQ5uJQnueXboRl2+TUFI1qHcKyY4kNFLGqj9Q85+t iBTRMyOHuQjOiLF8Ilyvgmr9GCHdjcleUu+EckywwnO8VIy2fcHgh6ayaqy5IHP+8I9jOCFbTAJHY CmbzhhlLb2JR27QGcEs1ZJOBRaAcM8VeJ9zXyLbijHEPCXQVxjSQBDvYsgURPiwdO9APRmBjNn5IU 8OmBl+g5/VhqUMMVQorl49piqtNZQfQ0CbXdNKGbYnH9AqHnVEZD3hWlD0IJ0ExVV+xIm1fkN80zk 4crxZo4qLwGCWn2PtFSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oeXXd-00Dewm-Kv; Sat, 01 Oct 2022 08:08:09 +0000 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oeXXb-00Devs-0f for linux-arm-kernel@lists.infradead.org; Sat, 01 Oct 2022 08:08:08 +0000 Received: by mail-pf1-x434.google.com with SMTP id d82so6102132pfd.10 for ; Sat, 01 Oct 2022 01:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=8w8yLdkBYp8fmjlqiLKDKImnbgR9vL2oirXeCiK2yvo=; b=BfXJd+n+S4aNfwtACs6jSgrH6FcHo9roH6nQlbBDI7+IqxVouQrHJXancNUN1b54+r YDr8ZqHphVjCkUS5RJmRPzj0hssFDXTgXtTnegN3TpqRaMnvckayZgh0D7MMP3qjdOhu OWHwL6aZBV3rcdggYzE9hjTCrETE4S/mG6wUI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=8w8yLdkBYp8fmjlqiLKDKImnbgR9vL2oirXeCiK2yvo=; b=RaJx7erf7/0TQsb117ABXwAt23AlUDmlzjzR+FHiewsJVqHqX4ZkuX0xbYIn0h+2ns YiE/jinkJ9PtHqcu7C7tfDY8FFNYDc/cd+Bnpr7hRd1otj0PV695FWHPQ0FMPH4C7pRg 5UkdGVlWVbPR0Q9JH+INaUi3TeAKKAphjKezdfeyxzIg15JontRB3Q1QBN5++1M7zTQv +X/nyoKK2pk2zlCRW729u7W+oGXk3S6vYbrZVzzRnJECwEH7yPH57eLpH6Q3RLmWF7i6 0qPmwqoE8Jtnl+3x9e3wzawDJ3q2e0/BzaCy+hn7armZQkLGmWfQBGAkzQFHLEFx1Uud 6JCA== X-Gm-Message-State: ACrzQf0njeLN5gtB0y+gEHsA+5OyFIpLgeoYeD0bIfqgc90tXk7Spgs8 qWwe+5f9+SYM+uzZkckauED9hA== X-Google-Smtp-Source: AMsMyM5PQLLtGy13dGbF1U4VNyG4/4E8lKF4ne0P7BIV9/byRtOgpVP28HPjl4VFw4GIs5LCh0HNsQ== X-Received: by 2002:a63:847:0:b0:439:22e4:8e49 with SMTP id 68-20020a630847000000b0043922e48e49mr10565092pgi.165.1664611685994; Sat, 01 Oct 2022 01:08:05 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a073:7254:4392:bc7c:c69]) by smtp.gmail.com with ESMTPSA id c194-20020a624ecb000000b005409c9d2d41sm3167041pfb.62.2022.10.01.01.07.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Oct 2022 01:08:05 -0700 (PDT) From: Jagan Teki To: Andrzej Hajda , Inki Dae , Marek Szyprowski , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , Frieder Schrempf , Fancy Fang , Tim Harvey , Michael Nazzareno Trimarchi , Adam Ford , Neil Armstrong , Robert Foss , Laurent Pinchart , Tommaso Merciai , Marek Vasut Cc: Matteo Lisi , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP Linux Team , linux-amarula , Jagan Teki Subject: [PATCH v6 03/10] drm: bridge: samsung-dsim: Mark PHY as optional Date: Sat, 1 Oct 2022 13:36:43 +0530 Message-Id: <20221001080650.1007043-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221001080650.1007043-1-jagan@amarulasolutions.com> References: <20221001080650.1007043-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221001_010807_076612_0182179A X-CRM114-Status: GOOD ( 13.91 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In i.MX8M Mini/Nano SoC the DSI Phy requires a MIPI DPHY bit to reset in order to activate the PHY and that can be done via upstream i.MX8M blk-ctrl driver. So, mark the phy get as optional. v6, v5, v4, v3, v2: * none v1: * new patch Signed-off-by: Jagan Teki --- drivers/gpu/drm/bridge/samsung-dsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/samsung-dsim.c b/drivers/gpu/drm/bridge/samsung-dsim.c index e41b6eeef622..2ba909ec5239 100644 --- a/drivers/gpu/drm/bridge/samsung-dsim.c +++ b/drivers/gpu/drm/bridge/samsung-dsim.c @@ -1584,7 +1584,7 @@ int samsung_dsim_probe(struct platform_device *pdev) if (IS_ERR(dsi->reg_base)) return PTR_ERR(dsi->reg_base); - dsi->phy = devm_phy_get(dev, "dsim"); + dsi->phy = devm_phy_optional_get(dev, "dsim"); if (IS_ERR(dsi->phy)) { dev_info(dev, "failed to get dsim phy\n"); return PTR_ERR(dsi->phy);