Kernel Newbies archive on
 help / color / Atom feed
From: Martin Kaiser <>
Subject: Re: Accessing rpmsg_device in sysfs attribute functions
Date: Tue, 24 Mar 2020 10:49:46 +0100
Message-ID: <> (raw)
In-Reply-To: <>

Hi Greg,

Thus wrote Greg KH (

> That is because you have created a driver attribute, not a device
> attribute.  Create device attributes and you should be fine, they bind
> to the device your driver is passed.

could you point me to an example in the kernel tree where this is done
correctly for a platform device?

I had a look at

but I couldn't figure out how to create device attributes in a simple
platform driver that binds to a platform device.

Thanks a lot for your help,


Kernelnewbies mailing list

  reply index

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-24  5:34 Pelle Windestam
2020-03-24  6:31 ` Greg KH
2020-03-24  9:49   ` Martin Kaiser [this message]
2020-03-24 10:23     ` Greg KH
2020-03-24 12:02   ` Pelle Windestam
2020-03-24 12:31     ` Greg KH
2020-03-24 13:05       ` Pelle Windestam
2020-03-24 13:15         ` Greg KH
2020-03-24 13:35           ` Pelle Windestam

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:

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

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Kernel Newbies archive on

Archives are clonable:
	git clone --mirror kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ \
	public-inbox-index kernelnewbies

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone