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

misc: rtsx: init of rts522a add OCP power off when no card is present

Power down OCP for power consumption
when no SD/MMC card is present

Cc: stable@vger.kernel.org
Signed-off-by: Ricky Wu <ricky_wu@realtek.com>
Link: https://lore.kernel.org/r/20210204083115.9471-1-ricky_wu@realtek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ricky Wu and committed by
Greg Kroah-Hartman
920fd8a7 1f7c14af

+5
+5
drivers/misc/cardreader/rts5227.c
··· 398 398 { 399 399 rts5227_extra_init_hw(pcr); 400 400 401 + /* Power down OCP for power consumption */ 402 + if (!pcr->card_exist) 403 + rtsx_pci_write_register(pcr, FPDCTL, OC_POWER_DOWN, 404 + OC_POWER_DOWN); 405 + 401 406 rtsx_pci_write_register(pcr, FUNC_FORCE_CTL, FUNC_FORCE_UPME_XMT_DBG, 402 407 FUNC_FORCE_UPME_XMT_DBG); 403 408 rtsx_pci_write_register(pcr, PCLK_CTL, 0x04, 0x04);