History

Merge tag 'drm/tegra/for-5.6-rc1' of git://anongit.freedesktop.org/tegra/linux into drm-next

drm/tegra: Changes for v5.6-rc1 This contains a small set of mostly fixes and some minor improvements. Signed-off-by: Dave Airlie <airlied@redhat.com>

Dave Airlie committed 6 years ago

Commit fd7226f2 parents 688486a 033ccdb17 files · +593 −352Browse files

Showing the changes to include/linux (1 of 17 files). Show all

Unified · Split

include/linux/host1x.h+13−2
@@ -24,16 +24,20 @@ struct iommu_group; · 23 unmodified lines
2424 * struct host1x_client_ops - host1x client operations
2525 * @init: host1x client initialization code
2626 * @exit: host1x client tear down code
27+ * @suspend: host1x client suspend code
28+ * @resume: host1x client resume code
2729 */
2830 struct host1x_client_ops {
2931 int (*init)(struct host1x_client *client);
3032 int (*exit)(struct host1x_client *client);
33+ int (*suspend)(struct host1x_client *client);
34+ int (*resume)(struct host1x_client *client);
3135 };
3236
3337 /**
3438 * struct host1x_client - host1x client structure
3539 * @list: list node for the host1x client
36− * @parent: pointer to struct device representing the host1x controller
40+ * @host: pointer to struct device representing the host1x controller
3741 * @dev: pointer to struct device backing this host1x client
3842 * @group: IOMMU group that this client is a member of
3943 * @ops: host1x client operations
@@ -44,7 +48,7 @@ struct host1x_client_ops { · 4 unmodified lines
4448 */
4549 struct host1x_client {
4650 struct list_head list;
47− struct device *parent;
51+ struct device *host;
4852 struct device *dev;
4953 struct iommu_group *group;
5054
@@ -55,6 +59,10 @@ struct host1x_client { · 4 unmodified lines
5559
5660 struct host1x_syncpt **syncpts;
5761 unsigned int num_syncpts;
62+
63+ struct host1x_client *parent;
64+ unsigned int usecount;
65+ struct mutex lock;
5866 };
5967
6068 /*
@@ -309,6 +317,9 @@ int host1x_device_exit(struct host1x_device *device); · 248 unmodified lines
309317 int host1x_client_register(struct host1x_client *client);
310318 int host1x_client_unregister(struct host1x_client *client);
311319
320+int host1x_client_suspend(struct host1x_client *client);
321+int host1x_client_resume(struct host1x_client *client);
322+
312323 struct tegra_mipi_device;
313324
314325 struct tegra_mipi_device *tegra_mipi_request(struct device *device);