linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: dongxuyang@eswincomputing.com, p.zabel@pengutronix.de,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: ningyu@eswincomputing.com, linmin@eswincomputing.com,
	huangyifeng@eswincomputing.com
Subject: Re: [PATCH v2 2/2] reset: eswin: Add eic7700 reset driver
Date: Wed, 4 Jun 2025 14:13:26 +0200	[thread overview]
Message-ID: <2c92d5fd-00eb-4f11-8071-1a593a1e4328@kernel.org> (raw)
In-Reply-To: <20250604085316.2211-1-dongxuyang@eswincomputing.com>

On 04/06/2025 10:53, dongxuyang@eswincomputing.com wrote:
> +	.reset = eswin_reset_reset,
> +	.assert = eswin_reset_assert,
> +	.deassert = eswin_reset_deassert,
> +};
> +
> +static int eswin_reset_of_xlate_lookup_id(int id, void *p, void *data)
> +{
> +	struct of_phandle_args *reset_spec = (struct of_phandle_args *)data;

Wrong cast. Look at the type in xlate.


> +	struct eswin_reset_control *slot_control =
> +		(struct eswin_reset_control *)p;
> +
> +	if (reset_spec->args[0] == slot_control->dev_id &&
> +	    reset_spec->args[1] == slot_control->reset_bit)
> +		return id;
> +
> +	return 0;


Best regards,
Krzysztof

      parent reply	other threads:[~2025-06-04 12:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-04  8:51 [PATCH v2 0/2] Add driver support for ESWIN eic7700 SoC reset controller dongxuyang
2025-06-04  8:52 ` [PATCH v2 1/2] dt-bindings: reset: eswin: Documentation for eic7700 SoC dongxuyang
2025-06-04  9:03   ` Krzysztof Kozlowski
2025-06-04 10:06   ` Philipp Zabel
2025-06-04  8:53 ` [PATCH v2 2/2] reset: eswin: Add eic7700 reset driver dongxuyang
2025-06-04 12:13   ` Krzysztof Kozlowski
2025-06-04 12:13   ` Krzysztof Kozlowski [this message]

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=2c92d5fd-00eb-4f11-8071-1a593a1e4328@kernel.org \
    --to=krzk@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dongxuyang@eswincomputing.com \
    --cc=huangyifeng@eswincomputing.com \
    --cc=krzk+dt@kernel.org \
    --cc=linmin@eswincomputing.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ningyu@eswincomputing.com \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).