Bugzilla – Attachment 728068 Details for
Bug 1043231
Kernel build failed at armv7hl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
[patch]
0010-pwm-rcar-Make-use-of-pwm_is_enabled.patch
0010-pwm-rcar-Make-use-of-pwm_is_enabled.patch (text/plain), 1.46 KB, created by
Matwey Kornilov
on 2017-06-07 19:36:24 UTC
(
hide
)
Description:
0010-pwm-rcar-Make-use-of-pwm_is_enabled.patch
Filename:
MIME Type:
Creator:
Matwey Kornilov
Created:
2017-06-07 19:36:24 UTC
Size:
1.46 KB
patch
obsolete
>From 1bd02e07b940744ee64dc455cbf96e62328250b0 Mon Sep 17 00:00:00 2001 >From: Boris BREZILLON <boris.brezillon@free-electrons.com> >Date: Wed, 30 Mar 2016 22:03:24 +0200 >Subject: [PATCH 10/19] pwm: rcar: Make use of pwm_is_enabled() > >Commit 5c31252c4a86 ("pwm: Add the pwm_is_enabled() helper") introduced >a new function to test whether a PWM device is enabled or not without >manipulating PWM internal fields. > >Hiding this is necessary if we want to smoothly move to the atomic PWM >config approach without impacting PWM drivers. Fix this driver to use >pwm_is_enabled() instead of directly accessing the ->flags field. > >Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> >Signed-off-by: Thierry Reding <thierry.reding@gmail.com> >Git-commit: 3587c260906259632df07652743269627f408d85 >Patch-mainline: v4.7-rc1 >Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com> >--- > drivers/pwm/pwm-rcar.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/drivers/pwm/pwm-rcar.c b/drivers/pwm/pwm-rcar.c >index 6e99a63ffa29..70899c9121e5 100644 >--- a/drivers/pwm/pwm-rcar.c >+++ b/drivers/pwm/pwm-rcar.c >@@ -157,7 +157,7 @@ static int rcar_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, > return div; > > /* Let the core driver set pwm->period if disabled and duty_ns == 0 */ >- if (!test_bit(PWMF_ENABLED, &pwm->flags) && !duty_ns) >+ if (!pwm_is_enabled(pwm) && !duty_ns) > return 0; > > rcar_pwm_update(rp, RCAR_PWMCR_SYNC, RCAR_PWMCR_SYNC, RCAR_PWMCR); >-- >2.12.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 1043231
:
728059
|
728060
|
728061
|
728062
|
728063
|
728064
|
728065
|
728066
|
728067
| 728068 |
728069
|
728070
|
728071
|
728072
|
728073
|
728074
|
728075
|
728076
|
728077
|
728521
|
728695
|
728770