Re: [RFC PATCH v6 6/9] media: tegra: Add Tegra210 Video input driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 4/5/20 12:37 PM, Dmitry Osipenko wrote:
External email: Use caution opening links or attachments


04.04.2020 04:25, Sowjanya Komatineni пишет:
...
+static int tegra_csi_init(struct host1x_client *client)
+{
+     struct tegra_csi *csi = host1x_client_to_csi(client);
+     struct tegra_video_device *vid = dev_get_drvdata(client->host);
+     int ret;
+
+     vid->csi = csi;
+
+     INIT_LIST_HEAD(&csi->csi_chans);
+
+     if (pm_runtime_enabled(csi->dev)) {
+             ret = pm_runtime_get_sync(csi->dev);
+             if (ret < 0) {
+                     dev_err(csi->dev,
+                             "failed to get runtime PM: %d\n", ret);
+                     pm_runtime_put_noidle(csi->dev);
+                     return ret;
+             }
+     } else {
RPM is supposed to be always available on Tegra nowadays.

Sorry I was not sure if its all the time enabled, so added in v6.

Will remove check and explicit runtime calls...





[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux