usb-core: Add a usb_ep_find_packet_by_id() helper function
Signed-off-by: Hans de Goede <hdegoede@redhat.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb: controllers do not need to check for babble themselves
If an (emulated) usb-device tries to write more data to a packet thenits iov len, this will trigger an assert in usb_packet_copy(), and ifa driver somehow circumvents that check and writes more data to the...
usb-core: Don't set packet state to complete on a nak
This way the hcd can re-use the same packet to retry without needingto re-init it.
RTC: introduce RTC_CLOCK_RATE
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
RTC: Update interrupt state when interrupts are masked/unmasked
If an interrupt flag is already set when the interrupt becomes enabled,raise an interrupt immediately, and vice versa if interrupts becomedisabled.
Signed-off-by: Yang Zhang <yang.z.zhang@intel.com>...
RTC: Update the RTC clock only when reading it
Calculate guest RTC based on the time of the last update, instead ofusing timers. The formula is
(base_rtc + guest_time_now - guest_time_last_update + offset)
Base_rtc is the RTC value when the RTC was last updated....
RTC: Add divider reset support
The first update cycle begins one-half seconds after dividerreset is removed. This feature is useful for testing.
Signed-off-by: Yang Zhang <yang.z.zhang@intel.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
RTC: Do not fire timer periodically to catch next alarm
This patch limits further the usage of a periodic timer. It computes thetime of the next alarm, and uses it to skip all intermediate occurrencesof the timer.
Cc: Yang Zhang <yang.z.zhang@intel.com>...
RTC: Get and set time without going through s->current_tm
This patch makes rtc_set_time and rtc_set_cmos work without readings->current_tm. In the case of rtc_set_time I introduce a newfunction that retrieves the time and stores into a given struct tm...
RTC: Remove the current_tm field
This is not used anymore and only written to.
View revisions
Also available in: Atom