RE: [RFC PATCH 1/1] usb: phy: move usb_otg_state from struct usb_phy to struct usb_otg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
> 
> > I am a little confused by using phy->state to stand for usb_state that
> I think
> > there is no relationship between usb_state with USB PHY.
> 
> well, there's no relationship between usb_state and OTG. The state isn't
> OTG-specific, it's USB specific. This is a difficult detail to find the
> proper owner, but I don't think we should tie the state to OTG, because
> systems without OTG wouldn't be able to track their states too.
> 
I mean USB PHY. I mean these USB specific states is no relationship
with USB PHY. 

In my mind, the system without OTG but using struct usb_phy can still
track their states. 

One thing I am always puzzled of current code is the OTG should be no relationship with USB PHY.
The system without OTG but has USB device or host only function should still own USB PHY. 

> --
> balbi

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux