Skip to content

Commit 767598d

Browse files
Sowjanya Komatinenithierryreding
authored andcommitted
gpu: host1x: mipi: Update tegra_mipi_request() to be node based
Tegra CSI driver need a separate MIPI device for each channel as calibration of corresponding MIPI pads for each channel should happen independently. So, this patch updates tegra_mipi_request() API to add a device_node pointer argument to allow creating mipi device for specific device node rather than a device. Signed-off-by: Sowjanya Komatineni <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent fce3a51 commit 767598d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

drivers/gpu/drm/tegra/dsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1618,7 +1618,7 @@ static int tegra_dsi_probe(struct platform_device *pdev)
16181618
if (IS_ERR(dsi->regs))
16191619
return PTR_ERR(dsi->regs);
16201620

1621-
dsi->mipi = tegra_mipi_request(&pdev->dev);
1621+
dsi->mipi = tegra_mipi_request(&pdev->dev, pdev->dev.of_node);
16221622
if (IS_ERR(dsi->mipi))
16231623
return PTR_ERR(dsi->mipi);
16241624

drivers/gpu/host1x/mipi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ static int tegra_mipi_power_down(struct tegra_mipi *mipi)
206206
return 0;
207207
}
208208

209-
struct tegra_mipi_device *tegra_mipi_request(struct device *device)
209+
struct tegra_mipi_device *tegra_mipi_request(struct device *device,
210+
struct device_node *np)
210211
{
211-
struct device_node *np = device->of_node;
212212
struct tegra_mipi_device *dev;
213213
struct of_phandle_args args;
214214
int err;

include/linux/host1x.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ int host1x_client_resume(struct host1x_client *client);
328328

329329
struct tegra_mipi_device;
330330

331-
struct tegra_mipi_device *tegra_mipi_request(struct device *device);
331+
struct tegra_mipi_device *tegra_mipi_request(struct device *device,
332+
struct device_node *np);
332333
void tegra_mipi_free(struct tegra_mipi_device *device);
333334
int tegra_mipi_enable(struct tegra_mipi_device *device);
334335
int tegra_mipi_disable(struct tegra_mipi_device *device);

0 commit comments

Comments
 (0)