drm/edid: move DDC_SEGMENT_ADDR into drm_edid.h
Subsystems (4)
PATCH 1/1 drm/edid: move DDC_SEGMENT_ADDR into drm_edid.h
The same definition of DDC_SEGMENT_ADDR is currently defined in two places, drm_edid.c and inno_hdmi.h. Let's consolidate the definition into drm_edid.h in the same way that DDC_ADDR is defined.
--- drivers/gpu/drm/drm_edid.c | 1 - drivers/gpu/drm/rockchip/inno_hdmi.h | 2 -- include/drm/drm_edid.h | 1 + 3 files changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/drm_edid.c +0 -1
@@ -1191,7 +1191,6 @@ bool drm_edid_is_valid(struct edid *edid) }EXPORT_SYMBOL (drm_edid_is_valid); -#define DDC_SEGMENT_ADDR 0x30/** * drm_do_probe_ddc_edid() - get EDID information via I2C * @data: I2C device adapter
drivers/gpu/drm/rockchip/inno_hdmi.h +0 -2
@@ -16,8 +16,6 @@#ifndef __INNO_HDMI_H__#define __INNO_HDMI_H__ -#define DDC_SEGMENT_ADDR 0x30 -enum PWR_MODE {NORMAL , LOWER_PWR,
include/drm/drm_edid.h +1 -0
@@ -26,6 +26,7 @@#include <linux/types.h> #define EDID_LENGTH 128 +#define DDC_SEGMENT_ADDR 0x30#define DDC_ADDR 0x50#define DDC_ADDR2 0x52/* E-DDC 1.2 - where DisplayID can hide */
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 5 lines · Shawn Guo
The same definition of
DDC_SEGMENT_ADDRis currently defined in two places,drm_edid.candinno_hdmi.h. Let's consolidate the definition intodrm_edid.hin the same way thatDDC_ADDRis defined.Signed-off-by Shawn Guo <[email protected]>
What really should be done here is nuke the fake i2c adapter in inno_hdmi.c and instead just directly read the edid from the hdim IP. Using drm_get_edid for something that's not backed by a real i2c bus is bonghits.
-Daniel
Quoted 50 lines
--- drivers/gpu/drm/drm_edid.c | 1 - drivers/gpu/drm/rockchip/inno_hdmi.h | 2 -- include/drm/drm_edid.h | 1 + 3 files changed, 1 insertion(+), 3 deletions(-)drivers/gpu/drm/drm_edid.c +0
-1@@ -1191,7 +1191,6 @@ bool drm_edid_is_valid(struct edid *edid) }EXPORT_SYMBOL (drm_edid_is_valid); -#define DDC_SEGMENT_ADDR 0x30/** * drm_do_probe_ddc_edid() - get EDID information via I2C * @data: I2C device adapter drivers/gpu/drm/rockchip/inno_hdmi.h +0
-2@@ -16,8 +16,6 @@#ifndef __INNO_HDMI_H__#define __INNO_HDMI_H__ -#define DDC_SEGMENT_ADDR 0x30 -enum PWR_MODE {NORMAL , LOWER_PWR,include/drm/drm_edid.h +1
-0@@ -26,6 +26,7 @@#include <linux/types.h> #define EDID_LENGTH 128 +#define DDC_SEGMENT_ADDR 0x30#define DDC_ADDR 0x50#define DDC_ADDR2 0x52/* E-DDC 1.2 - where DisplayID can hide */ Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 11 lines · Daniel Vetter
Quoted 5 lines · Shawn Guo
The same definition of
DDC_SEGMENT_ADDRis currently defined in two places,drm_edid.candinno_hdmi.h. Let's consolidate the definition intodrm_edid.hin the same way thatDDC_ADDRis defined.Signed-off-by Shawn Guo <[email protected]>What really should be done here is nuke the fake i2c adapter in
inno_hdmi.cand instead just directly read the edid from the hdim IP. Usingdrm_get_edidfor something that's not backed by a real i2c bus is bonghits.
This patch just makes some change literally. I do not understand how the IP block works at all. I thought the HDMI IP talks to monitors using I2C protocol implemented inside the IP block. I added Rockchip folks to see if we can get any clarifications from them.
Shawn
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 13 lines · Shawn Guo
Quoted 11 lines · Daniel Vetter
Quoted 5 lines · Shawn Guo
The same definition of
DDC_SEGMENT_ADDRis currently defined in two places,drm_edid.candinno_hdmi.h. Let's consolidate the definition intodrm_edid.hin the same way thatDDC_ADDRis defined.Signed-off-by Shawn Guo <[email protected]>What really should be done here is nuke the fake i2c adapter in
inno_hdmi.cand instead just directly read the edid from the hdim IP. Usingdrm_get_edidfor something that's not backed by a real i2c bus is bonghits.
Quoted 4 lines
This patch just makes some change literally. I do not understand how the IP block works at all. I thought the HDMI IP talks to monitors using I2C protocol implemented inside the IP block. I added Rockchip folks to see if we can get any clarifications from them.
btw drm_edid.c gained a special variant for this case a while ago:drm_do_get_edid(). With that you can retain all the robustness/retrying logic, while providing your own special function to read an entire edid block. I think that's the function which should be used here. -Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 19 lines · Daniel Vetter
Quoted 13 lines · Shawn Guo
Quoted 11 lines · Daniel Vetter
Quoted 5 lines · Shawn Guo
The same definition of
DDC_SEGMENT_ADDRis currently defined in two places,drm_edid.candinno_hdmi.h. Let's consolidate the definition intodrm_edid.hin the same way thatDDC_ADDRis defined.Signed-off-by Shawn Guo <[email protected]>What really should be done here is nuke the fake i2c adapter in
inno_hdmi.cand instead just directly read the edid from the hdim IP. Usingdrm_get_edidfor something that's not backed by a real i2c bus is bonghits.Quoted 4 lines
This patch just makes some change literally. I do not understand how the IP block works at all. I thought the HDMI IP talks to monitors using I2C protocol implemented inside the IP block. I added Rockchip folks to see if we can get any clarifications from them.
Quoted 4 lines
btw
drm_edid.cgained a special variant for this case a while ago:drm_do_get_edid(). With that you can retain all the robustness/retrying logic, while providing your own special function to read an entire edid block. I think that's the function which should be used here.
Thanks much for the info, Daniel. It's now clear where I should go for my WIP HDMI driver.
Shawn
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel