usb: musb: save dynfifo in musb struct
Save dynamic FIFO read only information for later uses during musb_save/restore_context functions. Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com> Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1c25fda4a0
commit
51bf0d0e6c
@@ -1341,8 +1341,10 @@ static int __init musb_core_init(u16 musb_type, struct musb *musb)
|
||||
reg = musb_read_configdata(mbase);
|
||||
|
||||
strcpy(aInfo, (reg & MUSB_CONFIGDATA_UTMIDW) ? "UTMI-16" : "UTMI-8");
|
||||
if (reg & MUSB_CONFIGDATA_DYNFIFO)
|
||||
if (reg & MUSB_CONFIGDATA_DYNFIFO) {
|
||||
strcat(aInfo, ", dyn FIFOs");
|
||||
musb->dyn_fifo = true;
|
||||
}
|
||||
if (reg & MUSB_CONFIGDATA_MPRXE) {
|
||||
strcat(aInfo, ", bulk combine");
|
||||
musb->bulk_combine = true;
|
||||
|
Reference in New Issue
Block a user