]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: backend: Add comment explaining why registers are cleared
authorChen-Yu Tsai <wens@csie.org>
Sat, 14 Oct 2017 04:02:49 +0000 (12:02 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 16 Oct 2017 07:54:01 +0000 (09:54 +0200)
commit76cea87d57117e897105c94314bfae1e894b34f4
tree2b318379b24c30e1e794cd45b0b494a4098be38d
parent1795a1ef7d044a64c38a88db457732bca325f843
drm/sun4i: backend: Add comment explaining why registers are cleared

Many of the backend's layer configuration registers have undefined
default values. This poses a risk as we use regmap_update_bits in
some places, and don't overwrite the whole register.

At probe/bind time we explicitly clear all the control registers
by writing 0 to them. This patch adds a more detailed explanation
on why we're doing this.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171014040252.9621-5-wens@csie.org
drivers/gpu/drm/sun4i/sun4i_backend.c