Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1562186
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 7/9] serdev: Introduce new bus for serial attached devices |
| Date | 2017-01-18 22:30 +0100 |
| Message-ID | <t15XQ-Vm-25@gated-at.bofh.it> (permalink) |
| References | <t0opP-760-5@gated-at.bofh.it> <t0opQ-760-21@gated-at.bofh.it> <t0X4d-3E5-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Jan 18, 2017 at 5:53 AM, Frédéric Danis
<frederic.danis.oss@gmail.com> wrote:
> Hello,
>
> Le 16/01/2017 à 23:54, Rob Herring a écrit :
>>
>> ---
>> v2:
>> - Add modalias sysfs attr and uevent hook
>
> ...
>>
>> +static int serdev_uevent(struct device *dev, struct kobj_uevent_env *env)
>> +{
>> + /* TODO: ACPI and platform modalias */
>> + return of_device_uevent_modalias(dev, env);
>> +}
>
> ...
>>
>> +static ssize_t modalias_show(struct device *dev,
>> + struct device_attribute *attr, char *buf)
>> +{
>> + ssize_t len = of_device_get_modalias(dev, buf, PAGE_SIZE - 2);
>> + buf[len] = '\n';
>> + buf[len+1] = 0;
>> + return len+1;
>> +}
>
>
> This prevents from building serdev as a module with following errors:
> ERROR: "of_device_uevent_modalias" [drivers/tty/serdev/serdev.ko]
> undefined!
> ERROR: "of_device_get_modalias" [drivers/tty/serdev/serdev.ko] undefined!
Turns out, there's a fix already[1] that should be going in via Greg's tree.
Rob
[1] https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1299121.html
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2 7/9] serdev: Introduce new bus for serial attached devices Rob Herring <robh@kernel.org> - 2017-01-17 00:00 +0100
Re: [PATCH v2 7/9] serdev: Introduce new bus for serial attached devices Frédéric Danis <frederic.danis.oss@gmail.com> - 2017-01-18 13:00 +0100
Re: [PATCH v2 7/9] serdev: Introduce new bus for serial attached devices Rob Herring <robh@kernel.org> - 2017-01-18 22:30 +0100
csiph-web