From: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Cc: Loc Ho <lho-qTEPVZfXA3Y@public.gmane.org>,
dougthompson-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org,
bp-Gina5bIWoIWzQB+pC5nmwQ@public.gmane.org,
mchehab-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
mark.rutland-5wv7dgnIgG8@public.gmane.org,
ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
jcm-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
patches-qTEPVZfXA3Y@public.gmane.org,
linux-edac-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v9 4/5] edac: Add APM X-Gene SoC EDAC driver
Date: Fri, 15 May 2015 12:49:09 +0200 [thread overview]
Message-ID: <4813332.ncdNtLvLzH@wuerfel> (raw)
In-Reply-To: <1431623147-4950-5-git-send-email-lho-qTEPVZfXA3Y@public.gmane.org>
On Thursday 14 May 2015 11:05:46 Loc Ho wrote:
> This patch adds support for the APM X-Gene SoC EDAC driver.
>
> Signed-off-by: Loc Ho <lho-qTEPVZfXA3Y@public.gmane.org>
Looks much better than before.
>
> +config EDAC_XGENE
> + tristate "APM X-Gene SoC"
> + depends on EDAC_MM_EDAC && ARM64
> + help
> + Support for error detection and correction on the
> + APM X-Gene family of SOCs.
> +
> endif # EDAC
Maybe 'ARM64 || COMPILE_TEST', so we get build coverage on x86 with allmodconfig?
> + rc = of_property_read_u32_array(np, "reg", addr_res, 4);
> + if (rc < 0) {
> + dev_err(edac->dev, "no MCU resource address\n");
> + goto err_group;
> + }
> + tmp_ctx.mcu_csr = devm_ioremap(edac->dev,
> + MAKEU64(addr_res[0], addr_res[1]),
> + MAKEU64(addr_res[2], addr_res[3]));
> + if (IS_ERR(tmp_ctx.mcu_csr)) {
> + dev_err(edac->dev, "unable to map MCU resource\n");
> + rc = PTR_ERR(tmp_ctx.mcu_csr);
> + goto err_group;
> + }
This is incorrect, you have to use of_get_address() or of_address_to_resource()
to compute the CPU-relative address: The address that is used within the
node may not be the same, depending on the parent's ranges properties.
See also my comment about the missing ranges in the DT example.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-05-15 10:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-14 17:05 [PATCH v9 0/4] edac: Add APM X-Gene SoC EDAC driver Loc Ho
[not found] ` <1431623147-4950-1-git-send-email-lho-qTEPVZfXA3Y@public.gmane.org>
2015-05-14 17:05 ` [PATCH v9 1/5] arm64: Enable EDAC on ARM64 Loc Ho
[not found] ` <1431623147-4950-2-git-send-email-lho-qTEPVZfXA3Y@public.gmane.org>
2015-05-14 17:05 ` [PATCH v9 2/5] MAINTAINERS: Add entry for APM X-Gene SoC EDAC driver Loc Ho
[not found] ` <1431623147-4950-3-git-send-email-lho-qTEPVZfXA3Y@public.gmane.org>
2015-05-14 17:05 ` [PATCH v9 3/5] Documentation: Add documentation for the APM X-Gene SoC EDAC DTS binding Loc Ho
[not found] ` <1431623147-4950-4-git-send-email-lho-qTEPVZfXA3Y@public.gmane.org>
2015-05-14 17:05 ` [PATCH v9 4/5] edac: Add APM X-Gene SoC EDAC driver Loc Ho
[not found] ` <1431623147-4950-5-git-send-email-lho-qTEPVZfXA3Y@public.gmane.org>
2015-05-14 17:05 ` [PATCH v9 5/5] arm64: Add APM X-Gene SoC EDAC DTS entries Loc Ho
2015-05-15 10:49 ` Arnd Bergmann [this message]
2015-05-15 10:44 ` [PATCH v9 3/5] Documentation: Add documentation for the APM X-Gene SoC EDAC DTS binding Arnd Bergmann
2015-05-16 0:17 ` Loc Ho
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=4813332.ncdNtLvLzH@wuerfel \
--to=arnd-r2ngtmty4d4@public.gmane.org \
--cc=bp-Gina5bIWoIWzQB+pC5nmwQ@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=dougthompson-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org \
--cc=ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org \
--cc=jcm-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=lho-qTEPVZfXA3Y@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-edac-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=mchehab-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org \
--cc=patches-qTEPVZfXA3Y@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.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).