public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Joshua Grisham <josh@joshuagrisham.com>
Cc: markgross@kernel.org, Hans de Goede <hdegoede@redhat.com>,
	 platform-driver-x86@vger.kernel.org,
	LKML <linux-kernel@vger.kernel.org>,
	 W_Armin@gmx.de, thomas@t-8ch.de, kuurtb@gmail.com
Subject: Re: [PATCH] platform/x86: samsung-galaxybook: Fix sysfs_attr_init of fw attrs
Date: Fri, 7 Feb 2025 14:00:17 +0200 (EET)	[thread overview]
Message-ID: <7a9b72a9-cb08-3ef4-8472-a38bb2a88608@linux.intel.com> (raw)
In-Reply-To: <20250206225707.12962-1-josh@joshuagrisham.com>

On Thu, 6 Feb 2025, Joshua Grisham wrote:

> Fixes sysfs_attr_init bug in samsung-galaxybook as reported in [1].
> 
> Should be applied after
>   commit f97634611408 ("platform/x86: samsung-galaxybook: Add samsung-galaxybook driver")
> 
> Tested with CONFIG_DEBUG_LOCK_ALLOC=y on a Samsung Galaxy Book2 Pro.
> 
> [1]: https://lore.kernel.org/linux-next/20250206133652.71bbf1d3@canb.auug.org.au/
> 
> Signed-off-by: Joshua Grisham <josh@joshuagrisham.com>
> ---
>  drivers/platform/x86/samsung-galaxybook.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/platform/x86/samsung-galaxybook.c b/drivers/platform/x86/samsung-galaxybook.c
> index 9c658a45d..de1ed2dc6 100644
> --- a/drivers/platform/x86/samsung-galaxybook.c
> +++ b/drivers/platform/x86/samsung-galaxybook.c
> @@ -1011,13 +1011,13 @@ static int galaxybook_fw_attr_init(struct samsung_galaxybook *galaxybook,
>  	attrs[2] = &fw_attr_possible_values.attr;
>  	attrs[3] = &fw_attr_display_name_language_code.attr;
>  
> -	sysfs_attr_init(&fw_attr.display_name);
> +	sysfs_attr_init(&fw_attr->display_name.attr);
>  	fw_attr->display_name.attr.name = "display_name";
>  	fw_attr->display_name.attr.mode = 0444;
>  	fw_attr->display_name.show = display_name_show;
>  	attrs[4] = &fw_attr->display_name.attr;
>  
> -	sysfs_attr_init(&fw_attr.current_value);
> +	sysfs_attr_init(&fw_attr->current_value.attr);
>  	fw_attr->current_value.attr.name = "current_value";
>  	fw_attr->current_value.attr.mode = 0644;
>  	fw_attr->current_value.show = current_value_show;
> 

Thanks, I've folded this into the commit that already was in the
review-ilpo-next branch.

-- 
 i.


      reply	other threads:[~2025-02-07 12:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-06 22:57 [PATCH] platform/x86: samsung-galaxybook: Fix sysfs_attr_init of fw attrs Joshua Grisham
2025-02-07 12:00 ` Ilpo Järvinen [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=7a9b72a9-cb08-3ef4-8472-a38bb2a88608@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=W_Armin@gmx.de \
    --cc=hdegoede@redhat.com \
    --cc=josh@joshuagrisham.com \
    --cc=kuurtb@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markgross@kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=thomas@t-8ch.de \
    /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