Re: [PATCH v1 5/8] usb: chipidea: tegra: Support host mode

2020-12-16 Thread Dmitry Osipenko
16.12.2020 12:32, Peter Chen пишет: >> ... +static int tegra_usb_internal_port_reset(struct ehci_hcd *ehci, + u32 __iomem *portsc_reg, + unsigned long *flags) +{ + u32 saved_usbintr, temp; +

Re: [PATCH v1 5/8] usb: chipidea: tegra: Support host mode

2020-12-16 Thread Dmitry Osipenko
16.12.2020 12:32, Peter Chen пишет: > struct tegra_usb_soc_info { unsigned long flags; + unsigned int txfifothresh; + enum usb_dr_mode dr_mode; +}; + +static const struct tegra_usb_soc_info tegra20_ehci_soc_info = { + .flags =

RE: [PATCH v1 5/8] usb: chipidea: tegra: Support host mode

2020-12-16 Thread Peter Chen
> >> > >> struct tegra_usb_soc_info { > >>unsigned long flags; > >> + unsigned int txfifothresh; > >> + enum usb_dr_mode dr_mode; > >> +}; > >> + > >> +static const struct tegra_usb_soc_info tegra20_ehci_soc_info = { > >> + .flags = CI_HDRC_REQUIRES_ALIGNED_DMA | > >> +

Re: [PATCH v1 5/8] usb: chipidea: tegra: Support host mode

2020-12-16 Thread Dmitry Osipenko
16.12.2020 12:07, Dmitry Osipenko пишет: >>> static int ehci_ci_portpower(struct usb_hcd *hcd, int portnum, bool enable) >>> { >>> struct ehci_hcd *ehci = hcd_to_ehci(hcd); >>> @@ -160,14 +166,14 @@ static int host_start(struct ci_hdrc *ci) >>>

Re: [PATCH v1 5/8] usb: chipidea: tegra: Support host mode

2020-12-16 Thread Dmitry Osipenko
16.12.2020 09:08, Peter Chen пишет: > On 20-12-15 23:21:10, Dmitry Osipenko wrote: >> From: Peter Geis >> >> struct tegra_usb_soc_info { >> unsigned long flags; >> +unsigned int txfifothresh; >> +enum usb_dr_mode dr_mode; >> +}; >> + >> +static const struct tegra_usb_soc_info

Re: [PATCH v1 5/8] usb: chipidea: tegra: Support host mode

2020-12-15 Thread Peter Chen
On 20-12-15 23:21:10, Dmitry Osipenko wrote: > From: Peter Geis > > struct tegra_usb_soc_info { > unsigned long flags; > + unsigned int txfifothresh; > + enum usb_dr_mode dr_mode; > +}; > + > +static const struct tegra_usb_soc_info tegra20_ehci_soc_info = { > + .flags =