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>
Showing the changes to include/linux (1 of 17 files). Show all
Unified · Split
| @@ -24,16 +24,20 @@ struct iommu_group; · 23 unmodified lines | ||
| 24 | 24 | * struct host1x_client_ops - host1x client operations |
| 25 | 25 | * @init: host1x client initialization code |
| 26 | 26 | * @exit: host1x client tear down code |
| 27 | + * @suspend: host1x client suspend code | |
| 28 | + * @resume: host1x client resume code | |
| 27 | 29 | */ |
| 28 | 30 | struct host1x_client_ops { |
| 29 | 31 | int (*init)(struct host1x_client *client); |
| 30 | 32 | int (*exit)(struct host1x_client *client); |
| 33 | + int (*suspend)(struct host1x_client *client); | |
| 34 | + int (*resume)(struct host1x_client *client); | |
| 31 | 35 | }; |
| 32 | 36 | |
| 33 | 37 | /** |
| 34 | 38 | * struct host1x_client - host1x client structure |
| 35 | 39 | * @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 | |
| 37 | 41 | * @dev: pointer to struct device backing this host1x client |
| 38 | 42 | * @group: IOMMU group that this client is a member of |
| 39 | 43 | * @ops: host1x client operations |
| @@ -44,7 +48,7 @@ struct host1x_client_ops { · 4 unmodified lines | ||
| 44 | 48 | */ |
| 45 | 49 | struct host1x_client { |
| 46 | 50 | struct list_head list; |
| 47 | − struct device *parent; | |
| 51 | + struct device *host; | |
| 48 | 52 | struct device *dev; |
| 49 | 53 | struct iommu_group *group; |
| 50 | 54 | |
| @@ -55,6 +59,10 @@ struct host1x_client { · 4 unmodified lines | ||
| 55 | 59 | |
| 56 | 60 | struct host1x_syncpt **syncpts; |
| 57 | 61 | unsigned int num_syncpts; |
| 62 | + | |
| 63 | + struct host1x_client *parent; | |
| 64 | + unsigned int usecount; | |
| 65 | + struct mutex lock; | |
| 58 | 66 | }; |
| 59 | 67 | |
| 60 | 68 | /* |
| @@ -309,6 +317,9 @@ int host1x_device_exit(struct host1x_device *device); · 248 unmodified lines | ||
| 309 | 317 | int host1x_client_register(struct host1x_client *client); |
| 310 | 318 | int host1x_client_unregister(struct host1x_client *client); |
| 311 | 319 | |
| 320 | +int host1x_client_suspend(struct host1x_client *client); | |
| 321 | +int host1x_client_resume(struct host1x_client *client); | |
| 322 | + | |
| 312 | 323 | struct tegra_mipi_device; |
| 313 | 324 | |
| 314 | 325 | struct tegra_mipi_device *tegra_mipi_request(struct device *device); |