Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Blackfin: bf54x: fix GPIO resume code

Back in commit c03c2a87347b849ec927d, we fixed logic in the non-bf54x
GPIO resume code to set the data levels properly before the direction
to avoid spurious line glitches. But we missed the bf54x code paths.
So add the same fix there.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

+2 -2
+2 -2
arch/blackfin/kernel/bfin_gpio.c
··· 713 713 gpio_array[bank]->port_mux = gpio_bank_saved[bank].mux; 714 714 gpio_array[bank]->port_fer = gpio_bank_saved[bank].fer; 715 715 gpio_array[bank]->inen = gpio_bank_saved[bank].inen; 716 - gpio_array[bank]->dir_set = gpio_bank_saved[bank].dir; 717 716 gpio_array[bank]->data_set = gpio_bank_saved[bank].data 718 - | gpio_bank_saved[bank].dir; 717 + & gpio_bank_saved[bank].dir; 718 + gpio_array[bank]->dir_set = gpio_bank_saved[bank].dir; 719 719 } 720 720 } 721 721 #endif