mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 09:20:17 +00:00
staging: ft1000: Fix coding style in dsp_reload function.
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
68e79bccce
commit
3529bd4164
@ -544,29 +544,32 @@ int dsp_reload(struct ft1000_device *ft1000dev)
|
||||
|
||||
pft1000info->CardReady = 0;
|
||||
|
||||
// Program Interrupt Mask register
|
||||
status = ft1000_write_register (ft1000dev, 0xffff, FT1000_REG_SUP_IMASK);
|
||||
/* Program Interrupt Mask register */
|
||||
status = ft1000_write_register(ft1000dev, 0xffff, FT1000_REG_SUP_IMASK);
|
||||
|
||||
status = ft1000_read_register (ft1000dev, &tempword, FT1000_REG_RESET);
|
||||
status = ft1000_read_register(ft1000dev, &tempword, FT1000_REG_RESET);
|
||||
tempword |= ASIC_RESET_BIT;
|
||||
status = ft1000_write_register (ft1000dev, tempword, FT1000_REG_RESET);
|
||||
status = ft1000_write_register(ft1000dev, tempword, FT1000_REG_RESET);
|
||||
msleep(1000);
|
||||
status = ft1000_read_register (ft1000dev, &tempword, FT1000_REG_RESET);
|
||||
status = ft1000_read_register(ft1000dev, &tempword, FT1000_REG_RESET);
|
||||
DEBUG("Reset Register = 0x%x\n", tempword);
|
||||
|
||||
// Toggle DSP reset
|
||||
card_reset_dsp (ft1000dev, 1);
|
||||
/* Toggle DSP reset */
|
||||
card_reset_dsp(ft1000dev, 1);
|
||||
msleep(1000);
|
||||
card_reset_dsp (ft1000dev, 0);
|
||||
card_reset_dsp(ft1000dev, 0);
|
||||
msleep(1000);
|
||||
|
||||
status = ft1000_write_register (ft1000dev, HOST_INTF_BE, FT1000_REG_SUP_CTRL);
|
||||
status =
|
||||
ft1000_write_register(ft1000dev, HOST_INTF_BE, FT1000_REG_SUP_CTRL);
|
||||
|
||||
// Let's check for FEFE
|
||||
status = ft1000_read_dpram32 (ft1000dev, FT1000_MAG_DPRAM_FEFE_INDX, (u8 *)&templong, 4);
|
||||
/* Let's check for FEFE */
|
||||
status =
|
||||
ft1000_read_dpram32(ft1000dev, FT1000_MAG_DPRAM_FEFE_INDX,
|
||||
(u8 *) &templong, 4);
|
||||
DEBUG("templong (fefe) = 0x%8x\n", templong);
|
||||
|
||||
// call codeloader
|
||||
/* call codeloader */
|
||||
status = scram_dnldr(ft1000dev, pFileStart, FileLength);
|
||||
|
||||
if (status != STATUS_SUCCESS)
|
||||
@ -575,8 +578,8 @@ int dsp_reload(struct ft1000_device *ft1000dev)
|
||||
msleep(1000);
|
||||
|
||||
DEBUG("dsp_reload returned\n");
|
||||
return 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user