Skip to content

Commit

Permalink
disk: sdhc: reinitialize SPI SDHC always
Browse files Browse the repository at this point in the history
Do not skip spi sdhc disk detect and interface
init, on subsequent calls.

Signed-off-by: Tavish Naruka <[email protected]>
  • Loading branch information
ntavish authored and MaureenHelm committed Nov 27, 2019
1 parent 6f09c90 commit 0d64e8d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions subsys/disk/disk_access_spi_sdhc.c
Original file line number Diff line number Diff line change
Expand Up @@ -862,11 +862,6 @@ static int disk_spi_sdhc_access_init(struct disk_info *disk)
struct sdhc_spi_data *data = dev->driver_data;
int err;

if (data->status == DISK_STATUS_OK) {
/* Called twice, don't re-init. */
return 0;
}

err = sdhc_spi_detect(data);
sdhc_spi_set_cs(data, 1);

Expand Down

0 comments on commit 0d64e8d

Please sign in to comment.