mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 10:44:14 +08:00
mt7621-mmc: Fix some coding style issues
Fix some comment-related issues reported by checkpatch.pl: - Block comments use * on subsequent lines - Block comments use a trailing */ on a separate line Signed-off-by: Jona Crasselt <jona.crasselt@fau.de> Signed-off-by: Felix Windsheimer <felix.windsheimer@fau.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1de24f362f
commit
641e96e03a
@ -299,8 +299,8 @@ static void msdc_abort_data(struct msdc_host *host)
|
|||||||
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
/*
|
/*
|
||||||
register as callback function of WIFI(combo_sdio_register_pm) .
|
* register as callback function of WIFI(combo_sdio_register_pm) .
|
||||||
can called by msdc_drv_suspend/resume too.
|
* can called by msdc_drv_suspend/resume too.
|
||||||
*/
|
*/
|
||||||
static void msdc_pm(pm_message_t state, void *data)
|
static void msdc_pm(pm_message_t state, void *data)
|
||||||
{
|
{
|
||||||
@ -692,7 +692,8 @@ static int msdc_do_request(struct mmc_host *mmc, struct mmc_request *mrq)
|
|||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
/* for read, the data coming too fast, then CRC error
|
/* for read, the data coming too fast, then CRC error
|
||||||
start DMA no business with CRC. */
|
* start DMA no business with CRC.
|
||||||
|
*/
|
||||||
//init_completion(&host->xfer_done);
|
//init_completion(&host->xfer_done);
|
||||||
msdc_dma_start(host);
|
msdc_dma_start(host);
|
||||||
|
|
||||||
@ -775,9 +776,10 @@ static int msdc_tune_cmdrsp(struct msdc_host *host, struct mmc_command *cmd)
|
|||||||
u32 skip = 1;
|
u32 skip = 1;
|
||||||
|
|
||||||
/* ==== don't support 3.0 now ====
|
/* ==== don't support 3.0 now ====
|
||||||
1: R_SMPL[1]
|
* 1: R_SMPL[1]
|
||||||
2: PAD_CMD_RESP_RXDLY[26:22]
|
* 2: PAD_CMD_RESP_RXDLY[26:22]
|
||||||
==========================*/
|
* ==========================
|
||||||
|
*/
|
||||||
|
|
||||||
// save the previous tune result
|
// save the previous tune result
|
||||||
sdr_get_field(host->base + MSDC_IOCON, MSDC_IOCON_RSPL, &orig_rsmpl);
|
sdr_get_field(host->base + MSDC_IOCON, MSDC_IOCON_RSPL, &orig_rsmpl);
|
||||||
@ -1429,8 +1431,8 @@ static void msdc_enable_cd_irq(struct msdc_host *host, int enable)
|
|||||||
if ((hw->flags & MSDC_CD_PIN_EN) == 0) {
|
if ((hw->flags & MSDC_CD_PIN_EN) == 0) {
|
||||||
/* Pull down card detection pin since it is not avaiable */
|
/* Pull down card detection pin since it is not avaiable */
|
||||||
/*
|
/*
|
||||||
if (hw->config_gpio_pin)
|
* if (hw->config_gpio_pin)
|
||||||
hw->config_gpio_pin(MSDC_CD_PIN, GPIO_PULL_DOWN);
|
* hw->config_gpio_pin(MSDC_CD_PIN, GPIO_PULL_DOWN);
|
||||||
*/
|
*/
|
||||||
sdr_clr_bits(host->base + MSDC_PS, MSDC_PS_CDEN);
|
sdr_clr_bits(host->base + MSDC_PS, MSDC_PS_CDEN);
|
||||||
sdr_clr_bits(host->base + MSDC_INTEN, MSDC_INTEN_CDSC);
|
sdr_clr_bits(host->base + MSDC_INTEN, MSDC_INTEN_CDSC);
|
||||||
@ -1519,8 +1521,9 @@ static void msdc_init_hw(struct msdc_host *host)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* for safety, should clear SDC_CFG.SDIO_INT_DET_EN & set SDC_CFG.SDIO in
|
/* for safety, should clear SDC_CFG.SDIO_INT_DET_EN & set SDC_CFG.SDIO in
|
||||||
pre-loader,uboot,kernel drivers. and SDC_CFG.SDIO_INT_DET_EN will be only
|
* pre-loader,uboot,kernel drivers. and SDC_CFG.SDIO_INT_DET_EN will be only
|
||||||
set when kernel driver wants to use SDIO bus interrupt */
|
* set when kernel driver wants to use SDIO bus interrupt
|
||||||
|
*/
|
||||||
/* Configure to enable SDIO mode. it's must otherwise sdio cmd5 failed */
|
/* Configure to enable SDIO mode. it's must otherwise sdio cmd5 failed */
|
||||||
sdr_set_bits(host->base + SDC_CFG, SDC_CFG_SDIO);
|
sdr_set_bits(host->base + SDC_CFG, SDC_CFG_SDIO);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user