History

Merge branch 'v3.5-samsung-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into fixes

From Kukjin Kim <kgene.kim@samsung.com>: * 'v3.5-samsung-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung: ARM: S3C24XX: Correct CAMIF interrupt definitions ARM: S3C24XX: Correct AC97 clock control bit for S3C2440 ARM: SAMSUNG: fix race in s3c_adc_start for ADC ARM: SAMSUNG: Update default rate for xusbxti clock ARM: EXYNOS: register devices in 'need_restore' state for pm_domains ARM: EXYNOS: read initial state of power domain from hw registers

Arnd Bergmann committed 14 years ago

Commit df4732a2 parents bd0a521 705c75e5 files · +18 −9Browse files

Unified · Split

5 files
  1. arch/arm/mach-exynos/pm_domains.c +9 −4
  2. arch/arm/mach-s3c24xx/clock-s3c2440.c +1 −1
  3. arch/arm/plat-samsung/adc.c +5 −3
  4. arch/arm/plat-samsung/devs.c +2 −1
  5. arch/arm/plat-samsung/s5p-clock.c +1 −0
arch/arm/mach-exynos/pm_domains.c+9−4
@@ -119,7 +119,9 @@ static __init void exynos_pm_add_dev_to_genpd(struct platform_device *pdev, · 118 unmodified lines
119119 struct exynos_pm_domain *pd)
120120 {
121121 if (pdev->dev.bus) {
122− if (pm_genpd_add_device(&pd->pd, &pdev->dev))
122+ if (!pm_genpd_add_device(&pd->pd, &pdev->dev))
123+ pm_genpd_dev_need_restore(&pdev->dev, true);
124+ else
123125 pr_info("%s: error in adding %s device to %s power"
124126 "domain\n", __func__, dev_name(&pdev->dev),
125127 pd->name);
@@ -151,9 +153,12 @@ static __init int exynos4_pm_init_power_domain(void) · 25 unmodified lines
151153 if (of_have_populated_dt())
152154 return exynos_pm_dt_parse_domains();
153155
154− for (idx = 0; idx < ARRAY_SIZE(exynos4_pm_domains); idx++)
155− pm_genpd_init(&exynos4_pm_domains[idx]->pd, NULL,
156− exynos4_pm_domains[idx]->is_off);
156+ for (idx = 0; idx < ARRAY_SIZE(exynos4_pm_domains); idx++) {
157+ struct exynos_pm_domain *pd = exynos4_pm_domains[idx];
158+ int on = __raw_readl(pd->base + 0x4) & S5P_INT_LOCAL_PWR_EN;
159+
160+ pm_genpd_init(&pd->pd, NULL, !on);
161+ }
157162
158163 #ifdef CONFIG_S5P_DEV_FIMD0
159164 exynos_pm_add_dev_to_genpd(&s5p_device_fimd0, &exynos4_pd_lcd0);
arch/arm/mach-s3c24xx/clock-s3c2440.c+1−1
@@ -106,7 +106,7 @@ static struct clk s3c2440_clk_cam_upll = { · 105 unmodified lines
106106 static struct clk s3c2440_clk_ac97 = {
107107 .name = "ac97",
108108 .enable = s3c2410_clkcon_enable,
109− .ctrlbit = S3C2440_CLKCON_CAMERA,
109+ .ctrlbit = S3C2440_CLKCON_AC97,
110110 };
111111
112112 static unsigned long s3c2440_fclk_n_getrate(struct clk *clk)
arch/arm/plat-samsung/adc.c+5−3
@@ -157,11 +157,13 @@ int s3c_adc_start(struct s3c_adc_client *client, · 156 unmodified lines
157157 return -EINVAL;
158158 }
159159
160− if (client->is_ts && adc->ts_pend)
161− return -EAGAIN;
162−
163160 spin_lock_irqsave(&adc->lock, flags);
164161
162+ if (client->is_ts && adc->ts_pend) {
163+ spin_unlock_irqrestore(&adc->lock, flags);
164+ return -EAGAIN;
165+ }
166+
165167 client->channel = channel;
166168 client->nr_samples = nr_samples;
167169
arch/arm/plat-samsung/devs.c+2−1
@@ -126,7 +126,8 @@ struct platform_device s3c_device_adc = { · 125 unmodified lines
126126 #ifdef CONFIG_CPU_S3C2440
127127 static struct resource s3c_camif_resource[] = {
128128 [0] = DEFINE_RES_MEM(S3C2440_PA_CAMIF, S3C2440_SZ_CAMIF),
129− [1] = DEFINE_RES_IRQ(IRQ_CAM),
129+ [1] = DEFINE_RES_IRQ(IRQ_S3C2440_CAM_C),
130+ [2] = DEFINE_RES_IRQ(IRQ_S3C2440_CAM_P),
130131 };
131132
132133 struct platform_device s3c_device_camif = {
arch/arm/plat-samsung/s5p-clock.c+1−0
@@ -37,6 +37,7 @@ struct clk clk_ext_xtal_mux = { · 36 unmodified lines
3737 struct clk clk_xusbxti = {
3838 .name = "xusbxti",
3939 .id = -1,
40+ .rate = 24000000,
4041 };
4142
4243 struct clk s5p_clk_27m = {