OMAP: PM: Fixed potential overflow in throughput calculation.

Helper functions add_req_tput()/remove_req_tput() operate using 64bit,
instead of 32bit. It is possible to get target_value overflowed by
having few users requesting high throughput or invalid value.
The frequency calculation result is verified on overflow, so result is
not causing switching to lower frequency.

Change-Id: I26472aa87454d1dd471fd4c69bda8d93323b8879
Signed-off-by: Oleg Matcovschi <oleg.matcovschi@ti.com>
usb: musb: omap2430: Detect incorrect USB transceiver event notifications.

Duplicate, out of order event notifications confuse musb->controller power management.

For example, duplicate USB_EVENT_VBUS event notification could produce following:
<6>[178426.552215]    PD_CORE curr=ON prev=ON logic=ON
<6>[178426.552551]    PD_L3_INIT curr=ON prev=ON logic=ON
<6>[178426.552734]       CD_L3_INIT mode=SW_WKUP activity=0x5300
<6>[178426.553375]          USBPHY mode=AUTO idlest=ON optclk=0x100
<6>[178426.554199]          DPLL_USB status=locked
<6>[178426.554504] Powerdomain (core_pwrdm) didn't enter target state 1 Vs achieved state 3. current state 3
<6>[178426.554718] Powerdomain (l3init_pwrdm) didn't enter target state 1 Vs achieved state 3. current state 3
<3>[178426.555053] Could not enter target state in pm_suspend
<6>[178426.555450] Suspended for 5.454 seconds
<6>[178426.557312] PM: early resume of devices complete after 1.556 msecs

Added code to prevent duplicate event processing and detect out of order events.

Change-Id: I08b5fdcda9259e9723c4afccdfa2c0ea5fe99fed
Signed-off-by: Oleg Matcovschi <oleg.matcovschi@ti.com>