From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 4/6] ARM: EXYNOS: Add support for Exynos secure firmware
Date: Mon, 12 Nov 2012 09:51:14 +0000 [thread overview]
Message-ID: <20121112095114.GD28327@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1351178560-19188-5-git-send-email-t.figa@samsung.com>
On Thu, Oct 25, 2012 at 05:22:38PM +0200, Tomasz Figa wrote:
> +static int exynos_do_idle(void)
> +{
> + exynos_smc(SMC_CMD_SLEEP, 0, 0, 0);
> + return 0;
> +}
This looks fine as an API - it has a defined purpose.
> +
> +static int exynos_cpu_boot(int cpu)
> +{
> + exynos_smc(SMC_CMD_CPU1BOOT, cpu, 0, 0);
> + return 0;
> +}
Same for this (though, what _exactly_ is 'cpu', is it the physical CPU
number or the logical CPU number?)
> +
> +static int exynos_cpu_boot_reg(int cpu, void __iomem **ptr)
> +{
> + *ptr = S5P_VA_SYSRAM_NS + 0x1c + 4*cpu;
> + return 0;
> +}
This is really bad. What's it trying to do? What is the significance
of the 'ptr' returned? What if a platform doesn't have a boot register?
next prev parent reply other threads:[~2012-11-12 9:51 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-25 15:22 [PATCH v3 0/6] ARM: EXYNOS: Add secure firmware support Tomasz Figa
2012-10-25 15:22 ` [PATCH v3 1/6] ARM: Add interface for registering and calling firmware-specific operations Tomasz Figa
2012-10-25 15:22 ` [PATCH v3 2/6] ARM: EXYNOS: Add support for secure monitor calls Tomasz Figa
2012-10-25 15:22 ` [PATCH v3 3/6] ARM: EXYNOS: Add IO mapping for non-secure SYSRAM Tomasz Figa
2012-10-25 15:22 ` [PATCH v3 4/6] ARM: EXYNOS: Add support for Exynos secure firmware Tomasz Figa
2012-11-12 9:51 ` Russell King - ARM Linux [this message]
2012-11-12 10:09 ` Tomasz Figa
2012-12-26 8:30 ` Barry Song
2012-10-25 15:22 ` [PATCH v3 5/6] ARM: EXYNOS: Add support for secondary CPU bring-up on Exynos4412 Tomasz Figa
2012-10-25 15:22 ` [PATCH v3 6/6] ARM: EXYNOS: Add secure firmware support to secondary CPU bring-up Tomasz Figa
2012-11-12 9:52 ` Russell King - ARM Linux
2012-11-12 10:11 ` Tomasz Figa
2012-11-12 7:39 ` [PATCH v3 0/6] ARM: EXYNOS: Add secure firmware support Kukjin Kim
2012-11-12 9:55 ` Russell King - ARM Linux
2012-11-12 10:14 ` Tomasz Figa
2012-11-22 6:52 ` Kukjin Kim
2012-11-22 9:33 ` Tomasz Figa
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=20121112095114.GD28327@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.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).