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

2020-08-21 Thread Madhuparna Bhowmik
On Fri, Aug 21, 2020 at 02:48:37PM +0200, Ulf Hansson wrote: > On Mon, 3 Aug 2020 at 09:29, 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_su

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

2020-08-21 Thread Ulf Hansson
On Mon, 3 Aug 2020 at 09:29, 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 functi

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

2020-08-03 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