[PATCH v2 2/2] gpu: drm: bridge: cadence: Add a driver and platform ops for StarFive JH7110 SoC
Shengyang Chen
shengyang.chen at starfivetech.com
Tue Jan 16 08:40:40 UTC 2024
Hi, Philipp
Thanks for review and comment.
> -----Original Message-----
> From: Philipp Zabel <p.zabel at pengutronix.de>
> Sent: 2024年1月9日 17:08
> To: Shengyang Chen <shengyang.chen at starfivetech.com>;
> devicetree at vger.kernel.org; dri-devel at lists.freedesktop.org
> Cc: andrzej.hajda at intel.com; neil.armstrong at linaro.org; rfoss at kernel.org;
> Laurent.pinchart at ideasonboard.com; jonas at kwiboo.se;
> jernej.skrabec at gmail.com; maarten.lankhorst at linux.intel.com;
> mripard at kernel.org; tzimmermann at suse.de; airlied at gmail.com;
> daniel at ffwll.ch; robh+dt at kernel.org; krzysztof.kozlowski+dt at linaro.org;
> conor+dt at kernel.org; tomi.valkeinen at ideasonboard.com; r-ravikumar at ti.com;
> aford173 at gmail.com; rdunlap at infradead.org;
> u.kleine-koenig at pengutronix.de; bbrezillon at kernel.org; Changhuang Liang
> <changhuang.liang at starfivetech.com>; Keith Zhao
> <keith.zhao at starfivetech.com>; Jack Zhu <jack.zhu at starfivetech.com>;
> linux-kernel at vger.kernel.org
> Subject: Re: [PATCH v2 2/2] gpu: drm: bridge: cadence: Add a driver and
> platform ops for StarFive JH7110 SoC
>
> On Di, 2024-01-09 at 15:25 +0800, Shengyang Chen wrote:
> > +static int cdns_dsi_get_reset(struct device *dev, struct cdns_dsi
> > +*dsi) {
> > + dsi->dpi_rst = devm_reset_control_get(dev, "dpi");
> > + if (IS_ERR(dsi->dpi_rst))
> > + return PTR_ERR(dsi->dpi_rst);
>
> Please use devm_reset_control_get_exclusive() directly.
>
> Also, consider using devm_reset_control_bulk_get_exclusive() instead, to
> control "dpi"/"apb"/"txesc" resets together - if the hardware can handle
> deasserting in reversed order.
>
ok, will follow up this issue.
> > +
> > + dsi->apb_rst = devm_reset_control_get(dev, "apb");
> > + if (IS_ERR(dsi->apb_rst))
> > + return PTR_ERR(dsi->apb_rst);
> > +
> > + dsi->txesc_rst = devm_reset_control_get(dev, "txesc");
> > + if (IS_ERR(dsi->txesc_rst))
> > + return PTR_ERR(dsi->txesc_rst);
> > +
> > + dsi->txbytehs_rst = devm_reset_control_get(dev, "txbytehs");
> > + if (IS_ERR(dsi->txbytehs_rst))
> > + return PTR_ERR(dsi->txbytehs_rst);
> > +
> > + return 0;
> > +}
>
> regards
> Philipp
thanks.
Best Regards,
Shengyang
More information about the dri-devel
mailing list