Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1240348
| From | Steve Capper <steve.capper@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 21/22] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs |
| Date | 2015-10-06 12:30 +0200 |
| Message-ID | <qgxFo-3nc-29@gated-at.bofh.it> (permalink) |
| References | <qghqV-5ar-3@gated-at.bofh.it> <qghqV-5ar-1@gated-at.bofh.it> <qgwzD-1QA-11@gated-at.bofh.it> <qgxvH-3bO-13@gated-at.bofh.it> <qgxFo-3nc-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 6 October 2015 at 11:25, Mark Rutland <mark.rutland@arm.com> wrote:
> On Tue, Oct 06, 2015 at 11:18:42AM +0100, Steve Capper wrote:
>> On 6 October 2015 at 10:09, Russell King - ARM Linux
>> <linux@arm.linux.org.uk> wrote:
>> > On Mon, Oct 05, 2015 at 06:02:10PM +0100, Suzuki K. Poulose wrote:
>> >> +static int __init cpuinfo_regs_init(void)
>> >> +{
>> >> + int cpu, ret;
>> >> +
>> >> + for_each_present_cpu(cpu) {
>> >> + struct device *dev = get_cpu_device(cpu);
>> >> +
>> >> + if (!dev)
>> >> + return -1;
>> >
>> > NAK. Go figure out why, I'm too lazy to tell you.
>>
>> I will correct the return code to be -ENODEV.
>> Was that the reasoning behind the NAK?
>
> I suspect the half-initialised sysfs groups also have something to do
> with it...
Okay, cheers Mark, I see what you mean.
>
> Mark.
>
>>
>> >
>> >> +
>> >> + ret = sysfs_create_group(&dev->kobj, &cpuregs_attr_group);
>> >> + if (ret)
>> >> + return ret;
>> >> + }
>> >> +
>> >> + return 0;
>> >> +}
>> >> +
>> >> +device_initcall(cpuinfo_regs_init);
>> >> --
>> >> 1.7.9.5
>>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 21/22] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs "Suzuki K. Poulose" <suzuki.poulose@arm.com> - 2015-10-05 19:10 +0200
Re: [PATCH v2 21/22] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-10-06 11:20 +0200
Re: [PATCH v2 21/22] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs Steve Capper <steve.capper@linaro.org> - 2015-10-06 12:20 +0200
Re: [PATCH v2 21/22] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs Mark Rutland <mark.rutland@arm.com> - 2015-10-06 12:30 +0200
Re: [PATCH v2 21/22] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs Steve Capper <steve.capper@linaro.org> - 2015-10-06 12:30 +0200
Re: [PATCH v2 21/22] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-10-06 21:20 +0200
csiph-web