Page MenuHomeFreeBSD

firewire: clean up XXX comments
ClosedPublic

Authored by guest-seuros on Fri, Jun 5, 10:10 AM.
Referenced Files
Unknown Object (File)
Wed, Jun 10, 8:10 AM
Unknown Object (File)
Tue, Jun 9, 9:29 PM
Unknown Object (File)
Tue, Jun 9, 8:31 AM
Unknown Object (File)
Tue, Jun 9, 4:26 AM
Unknown Object (File)
Mon, Jun 8, 5:19 PM
Unknown Object (File)
Sat, Jun 6, 7:36 AM
Subscribers
None

Details

Summary

Remove stale and misleading XXX comments throughout firewire.c.
Most were from the original 2002 codebase and either described
correct behavior or noted aspirational improvements that never
happended.

Two actionable items retained as TODO: config ROM CRC validation
and pending xfer cleanup on detach.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

guest-seuros created this revision.
sys/dev/firewire/firewire.c
2196

why'd you remove this? does this already work for 64 bit nowdays?

guest-seuros added inline comments.
sys/dev/firewire/firewire.c
2196

Because it working. (i tried it on AMD64 only)

I want to extract the this block code to debug.c (but that could be another diff).

sys/dev/firewire/firewire.c
691

The 0x0083c0 was /* xxx */'d here. Maybe it's still relevent.

guest-seuros added inline comments.
sys/dev/firewire/firewire.c
691

This link-layer capability flags, every OS use this magic number unless the driver is lacking capabilities.

I will follow with more refactoring once this is accepted/land .

0x0083c0 will go to constant and i will reference the IEEE 1394 pdf (if someone want to dig into it).

I just avoiding to have a big diff with mutation and cleaning

i'll approve this assuming you've tested it on amd64; I'll update my g5 mac w/ firewire and test it later.

This revision is now accepted and ready to land.Sat, Jun 6, 8:11 PM
This revision was automatically updated to reflect the committed changes.