[Intel-gfx] [PATCH 2/3] drm/i915: Add DCS control for Panel PWM
kbuild test robot
lkp at intel.com
Tue Apr 26 14:14:15 UTC 2016
Hi,
[auto build test ERROR on drm-intel/for-linux-next]
[cannot apply to v4.6-rc5 next-20160426]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
url: https://github.com/0day-ci/linux/commits/Jani-Nikula/drm-i915-dsi-dcs-backlight-control/20160426-211653
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-s0-201617 (attached as .config)
compiler:
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c: In function 'dcs_get_backlight':
>> drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c:49:33: error: 'MIPI_DCS_GET_DISPLAY_BRIGHTNESS' undeclared (first use in this function)
mipi_dsi_dcs_read(dsi_device, MIPI_DCS_GET_DISPLAY_BRIGHTNESS,
^
drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c:49:33: note: each undeclared identifier is reported only once for each function it appears in
drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c: In function 'dcs_set_backlight':
>> drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c:68:34: error: 'MIPI_DCS_SET_DISPLAY_BRIGHTNESS' undeclared (first use in this function)
mipi_dsi_dcs_write(dsi_device, MIPI_DCS_SET_DISPLAY_BRIGHTNESS,
^
drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c: In function 'dcs_disable_backlight':
>> drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c:87:33: error: 'MIPI_DCS_GET_CONTROL_DISPLAY' undeclared (first use in this function)
mipi_dsi_dcs_read(dsi_device, MIPI_DCS_GET_CONTROL_DISPLAY,
^
>> drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c:94:34: error: 'MIPI_DCS_WRITE_CONTROL_DISPLAY' undeclared (first use in this function)
mipi_dsi_dcs_write(dsi_device, MIPI_DCS_WRITE_CONTROL_DISPLAY,
^
drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c: In function 'dcs_enable_backlight':
drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c:112:33: error: 'MIPI_DCS_GET_CONTROL_DISPLAY' undeclared (first use in this function)
mipi_dsi_dcs_read(dsi_device, MIPI_DCS_GET_CONTROL_DISPLAY,
^
drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c:119:34: error: 'MIPI_DCS_WRITE_CONTROL_DISPLAY' undeclared (first use in this function)
mipi_dsi_dcs_write(dsi_device, MIPI_DCS_WRITE_CONTROL_DISPLAY,
^
vim +/MIPI_DCS_GET_DISPLAY_BRIGHTNESS +49 drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c
43 u8 data;
44 enum port port;
45
46 /* FIXME: Need to take care of 16 bit brightness level */
47 for_each_dsi_port(port, intel_dsi->dcs_backlight_ports) {
48 dsi_device = intel_dsi->dsi_hosts[port]->device;
> 49 mipi_dsi_dcs_read(dsi_device, MIPI_DCS_GET_DISPLAY_BRIGHTNESS,
50 &data, sizeof(data));
51 break;
52 }
53
54 return data;
55 }
56
57 static void dcs_set_backlight(struct intel_connector *connector, u32 level)
58 {
59 struct intel_encoder *encoder = connector->encoder;
60 struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base);
61 struct mipi_dsi_device *dsi_device;
62 u8 data = level;
63 enum port port;
64
65 /* FIXME: Need to take care of 16 bit brightness level */
66 for_each_dsi_port(port, intel_dsi->dcs_backlight_ports) {
67 dsi_device = intel_dsi->dsi_hosts[port]->device;
> 68 mipi_dsi_dcs_write(dsi_device, MIPI_DCS_SET_DISPLAY_BRIGHTNESS,
69 &data, sizeof(data));
70 }
71 }
72
73 static void dcs_disable_backlight(struct intel_connector *connector)
74 {
75 struct intel_encoder *encoder = connector->encoder;
76 struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base);
77 struct mipi_dsi_device *dsi_device;
78 enum port port;
79
80 dcs_set_backlight(connector, 0);
81
82 for_each_dsi_port(port, intel_dsi->dcs_backlight_ports) {
83 u8 ctrl = 0;
84
85 dsi_device = intel_dsi->dsi_hosts[port]->device;
86
> 87 mipi_dsi_dcs_read(dsi_device, MIPI_DCS_GET_CONTROL_DISPLAY,
88 &ctrl, sizeof(ctrl));
89
90 ctrl &= ~CONTROL_DISPLAY_BL;
91 ctrl &= ~CONTROL_DISPLAY_DD;
92 ctrl &= ~CONTROL_DISPLAY_BCTRL;
93
> 94 mipi_dsi_dcs_write(dsi_device, MIPI_DCS_WRITE_CONTROL_DISPLAY,
95 &ctrl, sizeof(ctrl));
96 }
97 }
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 31074 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20160426/c8fec4c1/attachment-0001.obj>
More information about the Intel-gfx
mailing list