Skip to content

Commit 885ae1c

Browse files
committed
Merge tag 'topic/core-stuff-2014-06-02' of git://anongit.freedesktop.org/drm-intel into drm-next
Just flushing out my pile of random drm patches for the merge window, nothing big. And it all hung around in drm-intel trees for a while (only just rebased now). * tag 'topic/core-stuff-2014-06-02' of git://anongit.freedesktop.org/drm-intel: imx-drm: imx-tve: remove unused variable drm: Missed clflushopt in drm_clflush_virt_range drm/plane: Fix a couple of checkpatch warnings drm/plane: Fix sparse warnings drm/exynos: Fix double locks at PM resume drm/ast: Fix double lock at PM resume drm/dp-helper: Deprecate old i2c-over-dp_aux heleprs
2 parents b33a51e + 4634064 commit 885ae1c

6 files changed

Lines changed: 10 additions & 8 deletions

File tree

‎drivers/gpu/drm/ast/ast_drv.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ static int ast_drm_thaw(struct drm_device *dev)
9494
ast_post_gpu(dev);
9595

9696
drm_mode_config_reset(dev);
97-
drm_modeset_lock_all(dev);
9897
drm_helper_resume_force_mode(dev);
99-
drm_modeset_unlock_all(dev);
10098

10199
console_lock();
102100
ast_fbdev_set_suspend(dev, 0);

‎drivers/gpu/drm/drm_cache.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ drm_clflush_virt_range(void *addr, unsigned long length)
138138
void *end = addr + length;
139139
mb();
140140
for (; addr < end; addr += boot_cpu_data.x86_clflush_size)
141-
clflush(addr);
141+
clflushopt(addr);
142142
clflushopt(end - 1);
143143
mb();
144144
return;

‎drivers/gpu/drm/drm_dp_helper.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ i2c_dp_aux_prepare_bus(struct i2c_adapter *adapter)
213213
*
214214
* RETURNS:
215215
* 0 on success, -ERRNO on failure.
216+
*
217+
* IMPORTANT:
218+
* This interface is deprecated, please switch to the new dp aux helpers and
219+
* drm_dp_aux_register_i2c_bus().
216220
*/
217221
int
218222
i2c_dp_aux_add_bus(struct i2c_adapter *adapter)

‎drivers/gpu/drm/drm_plane_helper.c‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <linux/list.h>
2727
#include <drm/drmP.h>
2828
#include <drm/drm_rect.h>
29+
#include <drm/drm_plane_helper.h>
2930

3031
#define SUBPIXEL_MASK 0xffff
3132

@@ -36,9 +37,9 @@
3637
* creating the primary plane. However drivers that still call
3738
* drm_plane_init() will use this minimal format list as the default.
3839
*/
39-
const static uint32_t safe_modeset_formats[] = {
40-
DRM_FORMAT_XRGB8888,
41-
DRM_FORMAT_ARGB8888,
40+
static const uint32_t safe_modeset_formats[] = {
41+
DRM_FORMAT_XRGB8888,
42+
DRM_FORMAT_ARGB8888,
4243
};
4344

4445
/*

‎drivers/staging/imx-drm/imx-tve.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ static int imx_tve_connector_mode_valid(struct drm_connector *connector,
249249
{
250250
struct imx_tve *tve = con_to_tve(connector);
251251
unsigned long rate;
252-
int ret;
253252

254253
/* pixel clock with 2x oversampling */
255254
rate = clk_round_rate(tve->clk, 2000UL * mode->clock) / 2000;

‎include/drm/drm_plane_helper.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ extern int drm_primary_helper_disable(struct drm_plane *plane);
4242
extern void drm_primary_helper_destroy(struct drm_plane *plane);
4343
extern const struct drm_plane_funcs drm_primary_helper_funcs;
4444
extern struct drm_plane *drm_primary_helper_create_plane(struct drm_device *dev,
45-
uint32_t *formats,
45+
const uint32_t *formats,
4646
int num_formats);
4747

4848

0 commit comments

Comments
 (0)