# Re: \[PATCH 4/6\] ACPI: Execute platform \_OSC also with query bit clear

- From: Yehezkel Bernat \<yehezkelshb@gmail.com\>
- Date: 2021-01-26 16:26:36 
- List: linux-usb
- Page: https://ratatoskr.run/linux-usb/2021/01/8876092
- Thread: https://ratatoskr.run/linux-usb/2021/01/8876088/t.md

```text
On Tue, Jan 26, 2021 at 5:57 PM Mika Westerberg
[ref] wrote:
>
> From: Mario Limonciello <redacted>
>
> The platform _OSC can change the hardware state when query bit is not
> set. According to ACPI spec it is recommended that the OS runs _OSC with
> query bit set until the platform does not mask any of the capabilities.
> Then it should run it with query bit clear in order to actually commit
> the changes. At the moment Linux only runs the _OSC with query bit set
> and this is going to cause problems with the USB4 CM (Connection
> Manager) switch that is going to commit the switch only when the OS
> requests control over the feature.
>
> For this reason modify the _OSC support so that we first execute it with
> query bit set, then use the returned valu as base of the features we

Totally out of my depth here, but just noticed the typo (valu => value).

> want to control and run the _OSC again with query bit clear.
>
> Also rename the function to better match what it does.
>
> Cc: Rafael J. Wysocki <redacted>
> Signed-off-by: Mario Limonciello <redacted>
> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
> ---
```
