public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Cc: Aleksandrs Vinarskis <alex@vinarskis.com>,
	 Bjorn Andersson <andersson@kernel.org>,
	 Konrad Dybcio <konradybcio@kernel.org>,
	Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Hans de Goede <hansg@kernel.org>,
	 Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
	 linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	 LKML <linux-kernel@vger.kernel.org>,
	platform-driver-x86@vger.kernel.org,  laurentiu.tudor1@dell.com,
	Abel Vesa <abel.vesa@oss.qualcomm.com>,
	 Tobias Heider <tobias.heider@canonical.com>,
	 Val Packett <val@packett.cool>
Subject: Re: [PATCH 2/4] platform: arm64: dell-xps-ec: new driver
Date: Wed, 1 Apr 2026 13:44:26 +0300 (EEST)	[thread overview]
Message-ID: <94180bf7-71a2-05c8-823a-ec25b5802650@linux.intel.com> (raw)
In-Reply-To: <328acf2d-988e-45b6-9553-240108caa91b@oss.qualcomm.com>

On Wed, 1 Apr 2026, Konrad Dybcio wrote:

> On 4/1/26 9:33 AM, Aleksandrs Vinarskis wrote:
> > Introduce EC driver for Dell XPS 13 9345 (codename 'tributo') which may
> > partially of fully compatible with Snapdragon-based Dell Latitude,
> > Inspiron ('thena'). Primary function of this driver is unblock EC's
> > thermal management, specifically to provide it with necessary
> > information to control device fans, peripherals power.
> 
> [...]
> 
> > +/*
> > + * Format:
> > + * - header/unknown (2 bytes)
> > + * - per-thermistor entries (3 bytes): thermistor_id, param1, param2
> > + */
> > +static const u8 dell_xps_ec_thermistor_profile[] = {
> > +	0xff, 0x54,
> 
> This is super wishful thinking, but 0x54 is ASCII 'T', perhaps for
> "Thermistor" or "Temp"?
> 
> > +static int dell_xps_ec_suspend_cmd(struct dell_xps_ec *ec, bool suspend)
> > +{
> > +	u8 buf[DELL_XPS_EC_SUSPEND_MSG_LEN] = {};
> > +	int ret;
> > +
> > +	buf[0] = DELL_XPS_EC_SUSPEND_CMD;
> > +	buf[1] = suspend ? 0x01 : 0x00;
> > +	/* bytes 2..63 remain zero */
> 
> buf[1] = suspend
> 
> (since it's a boolean argument)

I'd prefer boolean -> binary conversion is done explicitly.

-- 
 i.


  reply	other threads:[~2026-04-01 10:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-01  7:33 [PATCH 0/4] Introduce EC driver for Snapdragon X1E based Dell XPS 13 9345 Aleksandrs Vinarskis
2026-04-01  7:33 ` [PATCH 1/4] dt-bindings: platform: introduce EC for " Aleksandrs Vinarskis
2026-04-02  8:26   ` Krzysztof Kozlowski
2026-04-01  7:33 ` [PATCH 2/4] platform: arm64: dell-xps-ec: new driver Aleksandrs Vinarskis
2026-04-01  9:16   ` Konrad Dybcio
2026-04-01 10:44     ` Ilpo Järvinen [this message]
2026-04-01 10:41   ` Ilpo Järvinen
2026-04-01 22:57   ` Bjorn Andersson
2026-04-01  7:33 ` [PATCH 3/4] arm64: dts: qcom: hamoa-pmics: define VADC for pmk8550 Aleksandrs Vinarskis
2026-04-01  9:19   ` Konrad Dybcio
2026-04-01  7:33 ` [PATCH 4/4] arm64: dts: qcom: x1e80100-dell-xps13-9345: introduce EC Aleksandrs Vinarskis
2026-04-01  9:20   ` Konrad Dybcio
2026-04-02 12:52     ` Aleksandrs Vinarskis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=94180bf7-71a2-05c8-823a-ec25b5802650@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=abel.vesa@oss.qualcomm.com \
    --cc=alex@vinarskis.com \
    --cc=andersson@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=hansg@kernel.org \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=laurentiu.tudor1@dell.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=tobias.heider@canonical.com \
    --cc=val@packett.cool \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox