From: "Heiko Stübner" <heiko@sntech.de>
To: Sebastian Reichel <sebastian.reichel@collabora.com>
Cc: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org,
quentin.schulz@cherry.de, linux-phy@lists.infradead.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
Heiko Stuebner <heiko.stuebner@cherry.de>
Subject: Re: [PATCH v2 2/2] phy: rockchip: Add Samsung CSI/DSI Combo DCPHY driver
Date: Wed, 13 Nov 2024 13:39:30 +0100 [thread overview]
Message-ID: <2564703.Sgy9Pd6rRy@diego> (raw)
In-Reply-To: <fynyo2amqillioxwfyydvztakba5ecwa2qrtdtuoaffyvwc62c@3vizyubfqvsf>
Hi,
> > +static void samsung_mipi_dcphy_bias_block_enable(struct samsung_mipi_dcphy *samsung)
> > +{
> > + u32 bias_con2 = 0x3223;
> > +
> > + regmap_write(samsung->regmap, BIAS_CON0, 0x0010);
> > + regmap_write(samsung->regmap, BIAS_CON1, 0x0110);
> > + regmap_write(samsung->regmap, BIAS_CON2, bias_con2);
> > +
> > + /* default output voltage select:
> > + * dphy: 400mv
> > + * cphy: 530mv
> > + */
> > + regmap_update_bits(samsung->regmap, BIAS_CON4,
> > + I_MUX_SEL_MASK, I_MUX_SEL_400MV);
> > +}
> > +
> > +static void samsung_mipi_dcphy_bias_block_disable(struct samsung_mipi_dcphy *samsung)
> > +{
> > +}
>
> uhm? :)
When there was still the CSI stuff in here, that function still had
content ;-) .
But yeah, if and when that comes back, we can re-add things.
> > +static int samsung_mipi_dcphy_set_mode(struct phy *phy, enum phy_mode mode,
> > + int submode)
> > +{
> > + return 0;
> > +}
>
> You can just remove this. phy_set_mode_ext() will return 0 byself if
> the callback is NULL.
But it will not set the mode then.
See the part of
ret = phy->ops->set_mode(phy, mode, submode);
if (!ret)
phy->attrs.mode = mode;
Without the set_mode callback phy->attrs.mode will not be set.
And while we don't have anything to do for set_mode itself,
we do need the mipi_dphy mode to be set.
Heiko
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
next prev parent reply other threads:[~2024-11-13 12:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-04 11:11 [PATCH v2 0/2] MIPI DSI phy for rk3588 Heiko Stuebner
2024-11-04 11:11 ` [PATCH v2 1/2] dt-bindings: phy: Add Rockchip MIPI CSI/DSI PHY schema Heiko Stuebner
2024-11-05 8:59 ` Krzysztof Kozlowski
2024-11-06 14:17 ` Diederik de Haas
2024-11-13 18:50 ` Heiko Stübner
2024-11-04 11:11 ` [PATCH v2 2/2] phy: rockchip: Add Samsung CSI/DSI Combo DCPHY driver Heiko Stuebner
2024-11-05 14:53 ` Sebastian Reichel
2024-11-13 12:39 ` Heiko Stübner [this message]
2024-11-05 19:14 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2564703.Sgy9Pd6rRy@diego \
--to=heiko@sntech.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko.stuebner@cherry.de \
--cc=kishon@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=quentin.schulz@cherry.de \
--cc=robh@kernel.org \
--cc=sebastian.reichel@collabora.com \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).