]> git.baikalelectronics.ru Git - kernel.git/commit
drm: copy mode type in drm_mode_connector_list_update()
authorMarc-André Lureau <marcandre.lureau@gmail.com>
Fri, 18 Oct 2013 14:11:30 +0000 (16:11 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Oct 2013 13:21:12 +0000 (14:21 +0100)
commit78bdadee08f88182db1c083c73d8c64b820b83ca
tree4cf75adf7857e6c9e7591753b9a4ec63ca3a3aab
parent557ba0d9222d95e2d8e783b13d37924d14552f35
drm: copy mode type in drm_mode_connector_list_update()

In commit de286bec275c6d047e6e5e29bb07d693e8e75a61, Keith explained:
    This patch simply merges the two mode type bits together; that seems
    reasonable to me, but perhaps only a subset of the bits should be
    used? None of these can be user defined as they all come from
    looking at just the hardware.

However, merging the bits means that a flag becomes sticky. It is not
possible, for example to update the mode type to remove the
DRM_MODE_TYPE_PREFERRED bit.

After a brief discussion with Dave Airlie on irc, it was agreed to
propose that change, instead of introducing another function to remove a
bit from exisiting modes type.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_modes.c