{"push_id":1665448050,"size":4,"distinct_size":4,"ref":"refs/heads/master","head":"47b3c9e634472d17eab104f80e7d981983d67d5e","before":"619df8ea607d37807cb3222e73ceb2b744624c0e","commits":[{"sha":"c9c4bbab2bf60cb97b489377df6d1604ab7c2ea1","author":{"name":"Hans de Goede","email":"a4b43a7169288183ae7c1f5a0140023a97961f48@redhat.com"},"message":"ACPI: utils: Add new acpi_dev_present helper\n\nacpi_dev_found just iterates over all ACPI-ids and sees if one matches.\nThis means that it will return true for devices which are in the dsdt\nbut disabled (their _STA method returns 0).\n\nFor some drivers it is useful to be able to check if a certain HID\nis not only present in the namespace, but also actually present as in\nacpi_device_is_present() will return true for the device. For example\nbecause if a certain device is present then the driver will want to use\nan extcon or IIO adc channel provided by that device.\n\nThis commit adds a new acpi_dev_present helper which drivers can use\nto this end.\n\nLike acpi_dev_found, acpi_dev_present take a HID as argument, but\nit also has 2 extra optional arguments to only check for an ACPI\ndevice with a specific UID and/or HRV value. This makes it more\ngeneric and allows it to replace custom code doing similar checks\nin several places.\n\nArguably acpi_dev_present is what acpi_dev_found should have been, but\nthere are too many users to just change acpi_dev_found without the risk\nof breaking something.\n\nCc: Mika Westerberg <mika.westerberg@linux.intel.com>\nCc: Lukas Wunner <lukas@wunner.de>\nSigned-off-by: Hans de Goede <hdegoede@redhat.com>\n---\nChanges in v2:\n-Switch to using bus_find_device() to avoid \"Traversing the namespace\n over and over\"\n-Add optional (may be NULL / -1) uid and hrv arguments, this will\n allow this new function to replace the custom code for this in\n drivers/firmware/efi/dev-path-parser.c as well as in\n sound/soc/intel/common/sst-match-acpi.c and will allow it to be\n used to implement blacklists to avoid loading the ACPI ac / battery\n driver on systems which have a PMIC / charger acpi device with a\n native driver which offers a better (often working vs not working)\n user experience\n-Dropped Mika's reviewd by as this is almost a total rewrite","distinct":true,"url":"https://api.github.com/repos/jwrdegoede/linux-sunxi/commits/c9c4bbab2bf60cb97b489377df6d1604ab7c2ea1"},{"sha":"b164bd463c0ae60e0f03fdf0a644c74f1e9e3a36","author":{"name":"Hans de Goede","email":"a4b43a7169288183ae7c1f5a0140023a97961f48@redhat.com"},"message":"ACPI: battery: Fix acpi_battery_exit on acpi_battery_init_async errors\n\nThe acpi_lock_battery_dir() / acpi_bus_register_driver() calls in\nacpi_battery_init_async() may fail. Check that they succeeded before\nundoing them.\n\nSigned-off-by: Hans de Goede <hdegoede@redhat.com>","distinct":true,"url":"https://api.github.com/repos/jwrdegoede/linux-sunxi/commits/b164bd463c0ae60e0f03fdf0a644c74f1e9e3a36"},{"sha":"2664ed17483ee5dcaf56bc31195e4457cc9ccf66","author":{"name":"Hans de Goede","email":"a4b43a7169288183ae7c1f5a0140023a97961f48@redhat.com"},"message":"ACPI: battery: Add a blacklist with PMIC ACPI HIDs with a native battery driver\n\nOn some systems we have a native PMIC driver which provides battery\nmonitoring, while the ACPI battery driver is broken on these systems\ndue to bad DSDTs or because we do not support the proprietary and\nundocumented ACPI opregions these ACPI battery devices rely on\n(e.g. BMOP opregion).\n\nThis leads to there being 2 battery power_supply-s registed like this:\n\n~$ acpi\nBattery 0: Charging, 84%, 00:49:39 until charged\nBattery 1: Unknown, 0%, rate information unavailable\n\nEven if the ACPI battery where to function fine (which on systems\nwhere we have a native PMIC driver it often doesn't) we still do not\nwant to export the same battery to userspace twice.\n\nThis commit adds a blacklist with PMIC ACPI HIDs for which we've a\nnative battery driver and makes the ACPI battery driver not register\nitself when a PMIC on this list is present.\n\nBugLink: https://bugzilla.kernel.org/show_bug.cgi?id=194811\nSigned-off-by: Hans de Goede <hdegoede@redhat.com>\n---\nChanges in v2:\n-This is a new patch in v2 of this patch-set replacing:\n \"ACPI: battery: Add acpi_battery_unregister() function\"\n \"power: supply: axp288_fuel_gauge: Unregister duplicate ACPI battery supply\"","distinct":true,"url":"https://api.github.com/repos/jwrdegoede/linux-sunxi/commits/2664ed17483ee5dcaf56bc31195e4457cc9ccf66"},{"sha":"47b3c9e634472d17eab104f80e7d981983d67d5e","author":{"name":"Hans de Goede","email":"a4b43a7169288183ae7c1f5a0140023a97961f48@redhat.com"},"message":"ACPI: ac: Add a blacklist with PMIC ACPI HIDs with a native charger driver\n\nOn some systems we have a native PMIC driver which provides Mains\nmonitoring, while the ACPI ac driver is broken on these systems\ndue to bad DSTDs or because we do not support the proprietary and\nundocumented ACPI opregions these ACPI battery devices rely on\n(e.g. BMOP opregion).\n\nThis leads for example to a ADP1 power_supply which reports\nitself as always online even if no mains are connected.\n\nThis commit adds a blacklist with PMIC ACPI HIDs for which we've a\nnative charger or extcon driver and makes the ACPI ac driver not\nregister itself when a PMIC on this list is present.\n\nSigned-off-by: Hans de Goede <hdegoede@redhat.com>\n---\nChanges in v2:\n-This is a new patch in v2 of this patch-set replacing:\n \"ACPI: ac: Add acpi_ac_unregister() function\"\n \"power: supply: axp288_charger: Unregister duplicate ACPI ac supply\"\n And also this patch from my local patch-queue (not submitted yet):\n \"i2c-cht-wc: remove broken ACPI AC power-supply\"","distinct":true,"url":"https://api.github.com/repos/jwrdegoede/linux-sunxi/commits/47b3c9e634472d17eab104f80e7d981983d67d5e"}]}
{"actor":{"display_login":"jwrdegoede"}}