arm:configs:sunxi: enable gpio_sysfs
sunxi: Move sys_config intialization to arch level

Move sys_config fex stuff initialization to arch level to
enable it for subsys level drivers

Signed-off-by: Alexandr V. Shutko <alex@shutko.ru>
gpio:sunxi: Move driver initialization to subsys level

Move driver initialization to subsys level to be available
for device drivers at fs,device,late levels

Signed-off-by: Alexandr V. Shutko <alex@shutko.ru>
sunxi-hdmi: Fix divide by 0 on some monitors / tvs

Some monitors contain mode-info with 0 pixelclocks, triggering a div-by-0,
this patch fixes this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-leds: Add missing braces to default_state handling code

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Merge remote-tracking branch 'sunxi/stage/sunxi-3.4' into work-3.4
sunxi-leds: Add optional leds_default_# and leds_inverted_# fex parameters

leds_inverted_# is useful for active_low leds obviously :)
leds_default_# is useful for powerleds which are connected to gpio pins, to
make them light up on boot automatically (and stay on as long as they are not
re-purposed)

Note that rather then introducing yet more variables to store the key
to search the leds_para section by, this patch uses a single key string
buffer to store this, and to make this work it slightly re-arranges the order
in which things are read from the fex file.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Alexandr V. Shutko <alex@shutko.ru>
Merge remote-tracking branch 'sunxi/stage/sunxi-3.4' into work-3.4
sunxi-usb: workaround crashes with unaligned transfer buffers

Reuse workaround from terga EHCI driver to solve issue memory corruption and
freezes with non-dma-aligned URB transfer buffers and control message setup
packets.

This patch prevents upstream rtl8192cu driver from freezing my mk802.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Acked-by: Hans de Goede <hdegoede@redhat.com>
sunxi-disp: Add current mode to modelist when not using EDID

When edid is not enabled make sure the current mode is in the mode-list,
so that the user-set mode is honored.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-pm: Silence debug spew

Esp. the annoying [pm]valid messages which otherwise keep getting spewed
from time to time.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Merge remote-tracking branch 'sunxi/stage/sunxi-3.4' into work-3.4