[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YvsnRXLVbcI+McEo@google.com>
Date: Tue, 16 Aug 2022 05:12:37 +0000
From: Tzung-Bi Shih <tzungbi@...nel.org>
To: Prashant Malani <pmalani@...omium.org>
Cc: linux-kernel@...r.kernel.org, chrome-platform@...ts.linux.dev,
bleung@...omium.org, Daisuke Nojiri <dnojiri@...omium.org>,
"Dustin L. Howett" <dustin@...ett.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Guenter Roeck <groeck@...omium.org>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
Kees Cook <keescook@...omium.org>,
Sebastian Reichel <sebastian.reichel@...labora.com>,
Tinghan Shen <tinghan.shen@...iatek.com>,
Xiang wangx <wangxiang@...rlc.com>
Subject: Re: [PATCH v5 5/7] platform/chrome: cros_typec_switch: Register mode
switches
On Mon, Aug 15, 2022 at 06:34:26AM +0000, Prashant Malani wrote:
> Register mode switch devices for Type C connectors, when they are
> specified by firmware. These control Type C configuration for any USB
> Type-C mode switches (sometimes known as "muxes") which are controlled
> by the Chrome EC.
To be consistent to the commit message, s/Type C/Type-C/g.
To be consistent to the series, I guess you would like to use ChromeOS
instead of Chrome?
> @@ -235,6 +264,17 @@ static int cros_typec_register_switches(struct cros_typec_switch_data *sdata)
> }
>
> dev_dbg(dev, "Retimer switch registered for index %llu\n", index);
> +
> + if (!fwnode_property_read_bool(fwnode, "mode-switch"))
> + continue;
Would it be better to use device_property_present()?
Powered by blists - more mailing lists