usb: dwc2: Declare the core params struct statically
This makes it consistent with the hw_params struct and simplifies the memory management for future refactoring. Fix up usage in all files. Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
@@ -297,7 +297,7 @@ static void dwc2_release_channel_ddma(struct dwc2_hsotg *hsotg,
|
||||
struct dwc2_host_chan *chan = qh->channel;
|
||||
|
||||
if (dwc2_qh_is_non_per(qh)) {
|
||||
if (hsotg->core_params->uframe_sched > 0)
|
||||
if (hsotg->params.uframe_sched > 0)
|
||||
hsotg->available_host_channels++;
|
||||
else
|
||||
hsotg->non_periodic_channels--;
|
||||
@@ -404,7 +404,7 @@ void dwc2_hcd_qh_free_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh)
|
||||
|
||||
if ((qh->ep_type == USB_ENDPOINT_XFER_ISOC ||
|
||||
qh->ep_type == USB_ENDPOINT_XFER_INT) &&
|
||||
(hsotg->core_params->uframe_sched > 0 ||
|
||||
(hsotg->params.uframe_sched > 0 ||
|
||||
!hsotg->periodic_channels) && hsotg->frame_list) {
|
||||
dwc2_per_sched_disable(hsotg);
|
||||
dwc2_frame_list_free(hsotg);
|
||||
|
Reference in New Issue
Block a user