Page MenuHomeFreeBSD

archimedes.gaviola_gmail.com (Archimedes Gaviola)
User

Projects

User does not belong to any projects.

User Details

User Since
Sat, May 7, 12:29 PM (1 w, 2 d)

Recent Activity

Today

archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

I wonder why there is an overcurrent event happening in the first place ....

My theory is that overcurrent occurs due to USB port power pins first contact with the USB device (PL2303) power pins. There is an abrupt outgoing current happening during this first contact of pins and after some period it slows down and normalized since the power pins are already in contact with each other.

As a background, here's the Prolific PL2303 device that I'm talking about https://filebin.net/g8rj54rzkj5q7kd0, the device showing "VFD Display PD220" which is currently connected to one of the USB ports of my RPi 3B.

Tue, May 17, 3:49 AM

Yesterday

archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

Hans, can you further explain this "overcurrent not set"? I'm reading the USB 2.0 specifications here http://sdpha2.ucsd.edu/Lab_Equip_Manuals/usb_20.pdf on the last paragraph on page 339 with continuation on page 340.

Did you find an answer?

Mon, May 16, 2:59 PM
archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

I wonder why there is an overcurrent event happening in the first place ....

Mon, May 16, 2:44 PM
archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

I see.

Can you upload the patch with context:

diff -U 999999 sys/dev/usb/usb_hub.c.orig sys/dev/usb/usb_hub.c > usb.diff

--HPS

Mon, May 16, 2:35 PM
archimedes.gaviola_gmail.com updated the diff for D35146: USB Hub Overcurrent (usb_hub.c.diff).

Changes:

  • usb_pause_mtx() function is placed after UHF_PORT_POWER.
  • diff enabled in more context output (diff -U 999999)
Mon, May 16, 2:34 PM
archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

I'll get back to you tomorrow. Not working today :-)

Mon, May 16, 12:45 AM

Fri, May 13

archimedes.gaviola_gmail.com added inline comments to D35146: USB Hub Overcurrent (usb_hub.c.diff).
Fri, May 13, 5:07 AM
archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

I suggest you add a counter which resets on overcurrent not set, and counts to 3 before giving up power on.

Fri, May 13, 3:49 AM
archimedes.gaviola_gmail.com added inline comments to D35146: USB Hub Overcurrent (usb_hub.c.diff).
Fri, May 13, 3:27 AM

Tue, May 10

archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

I suggest you add a counter which resets on overcurrent not set, and counts to 3 before giving up power on.

We don't want to cause a fire :-)

Oh my... this is noted. Let me figure-out the code again and revise.

Tue, May 10, 3:13 AM

Mon, May 9

archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

I suggest you add a counter which resets on overcurrent not set, and counts to 3 before giving up power on.

We don't want to cause a fire :-)

Mon, May 9, 11:30 AM
archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

Please update your patch! There is an "update diff" selection in the "menu".

BTW: You should use:

usb_port_powerup_delay

from

usb_debug.h

And not the XXX_spec value.

Mon, May 9, 11:10 AM
archimedes.gaviola_gmail.com updated the diff for D35146: USB Hub Overcurrent (usb_hub.c.diff).

Added sleep in the code before turning-on the power.

Mon, May 9, 11:05 AM

Sat, May 7

archimedes.gaviola_gmail.com requested review of D35146: USB Hub Overcurrent (usb_hub.c.diff).
Sat, May 7, 2:30 PM