[Bug 265005] [patch][asmc] Add support for MacBookPro6,2

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 03 Jul 2022 03:06:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265005

            Bug ID: 265005
           Summary: [patch][asmc] Add support for MacBookPro6,2
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: fbsdbug@edcrowe.com

Created attachment 235042
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=235042&action=edit
asmc driver patch file

Add support for MacBookPro6,2 (Mid 2010, 15") to asmc driver.
Ignores interrupt from ambient light sensor (referred to as ALSL from what I
could find).
Adds the number of an unknown interrupt to the log output.

First patch submission. Please let me know if I should change/fix anything.

P.S.
The reason I choose to ignore the interrupt is that it triggers so often it
fills the logs/console with messages; I am not aware of how to determine if the
light levels are going up or down to make it useful; if this interrupt exists
on other models, I didn't see any code for it; and this interrupt does not
trigger on a MacBookPro9,2 that I tested the original asmc driver against. I'm
pretty sure it is specific to this model.

-- 
You are receiving this mail because:
You are the assignee for the bug.