Re: [PATCH v2] drivers: mmc: host: via-sdmmc: Fix data race bug

2020-08-24 Thread Ulf Hansson
On Sat, 22 Aug 2020 at 08:15, wrote: > > From: Madhuparna Bhowmik > > via_save_pcictrlreg() should be called with host->lock held > as it writes to pm_pcictrl_reg, otherwise there can be a race > condition between via_sd_suspend() and via_sdc_card_detect(). > The same pattern is used in the funct

[PATCH v2] drivers: mmc: host: via-sdmmc: Fix data race bug

2020-08-21 Thread madhuparnabhowmik10
From: Madhuparna Bhowmik via_save_pcictrlreg() should be called with host->lock held as it writes to pm_pcictrl_reg, otherwise there can be a race condition between via_sd_suspend() and via_sdc_card_detect(). The same pattern is used in the function via_reset_pcictrl() as well, where via_save_pci