Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1301892

[PATCH v3 11/17] arm/samsung: Change s3c_pm_run_res() to use System RAM type

From Toshi Kani <toshi.kani@hpe.com>
Newsgroups linux.kernel
Subject [PATCH v3 11/17] arm/samsung: Change s3c_pm_run_res() to use System RAM type
Date 2016-01-05 20:00 +0100
Message-ID <qNEZS-6P2-61@gated-at.bofh.it> (permalink)
References <qNEZQ-6P2-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Change s3c_pm_run_res() to check with IORESOURCE_SYSTEM_RAM,
instead of strcmp() with "System RAM", to walk through
System RAM ranges in the iomem table.

No functional change is made to the interface.

Cc: linux-samsung-soc@vger.kernel.org
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Toshi Kani <toshi.kani@hpe.com>
---
 arch/arm/plat-samsung/pm-check.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/plat-samsung/pm-check.c b/arch/arm/plat-samsung/pm-check.c
index 04aff2c..70f2f69 100644
--- a/arch/arm/plat-samsung/pm-check.c
+++ b/arch/arm/plat-samsung/pm-check.c
@@ -53,8 +53,8 @@ static void s3c_pm_run_res(struct resource *ptr, run_fn_t fn, u32 *arg)
 		if (ptr->child != NULL)
 			s3c_pm_run_res(ptr->child, fn, arg);
 
-		if ((ptr->flags & IORESOURCE_MEM) &&
-		    strcmp(ptr->name, "System RAM") == 0) {
+		if ((ptr->flags & IORESOURCE_SYSTEM_RAM)
+				== IORESOURCE_SYSTEM_RAM) {
 			S3C_PMDBG("Found system RAM at %08lx..%08lx\n",
 				  (unsigned long)ptr->start,
 				  (unsigned long)ptr->end);
--
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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 01/17] resource: Add System RAM resource type Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
  [PATCH v3 10/17] resource: Change walk_system_ram to use System RAM type Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
  [PATCH v3 14/17] x86,nvdimm,kexec: Use walk_iomem_res_desc() for iomem search Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
    Re: [PATCH v3 14/17] x86,nvdimm,kexec: Use walk_iomem_res_desc() for  iomem search Dave Young <dyoung@redhat.com> - 2016-01-07 13:40 +0100
  [PATCH v3 12/17] memremap: Change region_intersects() to take @flags and @desc Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
  [PATCH v3 08/17] xen, mm: Set IORESOURCE_SYSTEM_RAM to System RAM Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
  [PATCH v3 16/17] resource: Kill walk_iomem_res() Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
    Re: [PATCH v3 16/17] resource: Kill walk_iomem_res() Dave Young <dyoung@redhat.com> - 2016-01-07 13:50 +0100
  [PATCH v3 06/17] arch: Set IORESOURCE_SYSTEM_RAM to System RAM Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
  [PATCH v3 13/17] resource: Add walk_iomem_res_desc() Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
  [PATCH v3 09/17] drivers: Initialize resource entry to zero Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
    Re: [PATCH v3 09/17] drivers: Initialize resource entry to zero Helge Deller <deller@gmx.de> - 2016-01-05 22:00 +0100
  [PATCH v3 11/17] arm/samsung: Change s3c_pm_run_res() to use System RAM type Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
  [PATCH v3 03/17] resource: Add I/O resource descriptor Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:10 +0100
  [PATCH v3 02/17] resource: make resource flags handled properly Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:10 +0100

csiph-web