Skip to content

Commit 0d64e8d

Browse files
ntavishMaureenHelm
authored andcommitted
disk: sdhc: reinitialize SPI SDHC always
Do not skip spi sdhc disk detect and interface init, on subsequent calls. Signed-off-by: Tavish Naruka <[email protected]>
1 parent 6f09c90 commit 0d64e8d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

subsys/disk/disk_access_spi_sdhc.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -862,11 +862,6 @@ static int disk_spi_sdhc_access_init(struct disk_info *disk)
862862
struct sdhc_spi_data *data = dev->driver_data;
863863
int err;
864864

865-
if (data->status == DISK_STATUS_OK) {
866-
/* Called twice, don't re-init. */
867-
return 0;
868-
}
869-
870865
err = sdhc_spi_detect(data);
871866
sdhc_spi_set_cs(data, 1);
872867

0 commit comments

Comments
 (0)