RE: [PATCH v4 2/2] mmc: Add mmc driver for Sunplus SP7021

From: Tony Huang 黃懷厚
Date: Mon Mar 21 2022 - 05:12:43 EST


Dear krzysztof:

> >>> + int dma_int_threshold;
> >>> + struct sg_mapping_iter sg_miter; /* for pio mode to access sglist */
> >>> + int dma_use_int; /* should raise irq when dma done */
> >>> + struct spmmc_tuning_info emmc_tuning_info;
> >>> + struct spsdc_tuning_info sd_tuning_info;
> >>> + int restore_4bit_sdio_bus;
> >>> + const struct spmmc_compatible *dev_comp; };
> >>> +
> >>> +struct spsdc_host {
> >>
> >> Where is this used?
> >>
> >
> > struct spmmc_host{} for emmc.
> > struct spsdc_host{} for SD card.
> > The register base address and offset address of emmc and sd cards are
> different.
> > eMMC and sdcard are their respective hardware settings.
>
>
> This is a weird answer. I asked where is this used (struct spsdc_host).
> There is no single reference of this type. Your answer does not cover it all. I
> know that eMMC and SD are different. That was not the question.
> The question is: point me to the code which uses this type.
>

Sorry, I will remove struct spsdc_host {}.