Skip to content
  • Angus Ainslie's avatar
    usb: typec: tps6589x: set the data role on tps IRQ · b322fa07
    Angus Ainslie authored and Martin Kepplinger's avatar Martin Kepplinger committed
    
    
    Don't immediately set the data role, only set it in response the
    negotiated value notification from the tps6589x. Otherwise data role
    switch fails for DRP.
    
    We only use values cached from the IRQ instead of poking I2C all
    the time.
    
    The update is moved in a function that will become more useful in later
    commits.
    
    Signed-off-by: default avatarAngus Ainslie <angus@akkea.ca>
    Fixes: 18a6c866 ("usb: typec: tps6598x: Add USB role switching logic")
    b322fa07