Re: [PATCH v4] usb: typec: tcpm: Migrate workqueue to RT priority for processing events

2020-07-31 Thread Badhri Jagan Sridharan
Thanks for catching that !! On Thu, Jul 30, 2020 at 9:05 AM Guenter Roeck wrote: > > On 7/30/20 5:34 AM, Heikki Krogerus wrote: > > Hi, > > > > One more nitpick below... > > > > On Thu, Jul 30, 2020 at 12:25:31AM -0700, Badhri Jagan Sridharan wrote: > >> @@ -4786,10 +4807,28 @@ static int devm_tc

Re: [PATCH v4] usb: typec: tcpm: Migrate workqueue to RT priority for processing events

2020-07-30 Thread Guenter Roeck
On 7/30/20 5:34 AM, Heikki Krogerus wrote: > Hi, > > One more nitpick below... > > On Thu, Jul 30, 2020 at 12:25:31AM -0700, Badhri Jagan Sridharan wrote: >> @@ -4786,10 +4807,28 @@ static int devm_tcpm_psy_register(struct tcpm_port >> *port) >> return PTR_ERR_OR_ZERO(port->psy); >> } >>

Re: [PATCH v4] usb: typec: tcpm: Migrate workqueue to RT priority for processing events

2020-07-30 Thread Heikki Krogerus
Hi, One more nitpick below... On Thu, Jul 30, 2020 at 12:25:31AM -0700, Badhri Jagan Sridharan wrote: > @@ -4786,10 +4807,28 @@ static int devm_tcpm_psy_register(struct tcpm_port > *port) > return PTR_ERR_OR_ZERO(port->psy); > } > > +static enum hrtimer_restart state_machine_timer_handl

[PATCH v4] usb: typec: tcpm: Migrate workqueue to RT priority for processing events

2020-07-30 Thread Badhri Jagan Sridharan
"tReceiverResponse 15 ms Section 6.6.2 The receiver of a Message requiring a response Shall respond within tReceiverResponse in order to ensure that the sender’s SenderResponseTimer does not expire." When the cpu complex is busy running other lower priority work items, TCPM's work queue sometimes