Page MenuHomeFreeBSD

acpi: fix device_get_property invalid return
ClosedPublic

Authored by bag_semihalf.com on Wed, Nov 24, 8:09 AM.

Details

Summary

Previously ACPI implementation of device_get_property returned -1
when property was found, but it's type was not supported. This caused
device_has_property to return false in that scenario, which is
incorrect.

From now on, ACPI's device_get_property will return 0, when property type
is not unrecognized.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Thanks for doing this!

This revision is now accepted and ready to land.Wed, Nov 24, 3:45 PM

Tested on: CN913x CEx7 Evaluation Board.

This revision was automatically updated to reflect the committed changes.