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


Groups > linux.kernel > #1620871

Re: [PATCH 1/1] pwm: pca9685: fix gpio-only operation.

From Sven Van Asbroeck <thesven73@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/1] pwm: pca9685: fix gpio-only operation.
Date 2017-04-11 05:40 +0200
Message-ID <tuUOR-1zj-1@gated-at.bofh.it> (permalink)
References <tunJg-5bL-15@gated-at.bofh.it> <tunJg-5bL-17@gated-at.bofh.it> <tuETM-7TH-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> How about implementing a real runtime PM in the driver? Then when the
> device is idle regardless of whether it is GPIO or PWM, the SLEEP bit is
> set and cleared accordingly.

You mean: increase the runtime_pm refcnt when a pwm/gpio is enabled,
and vice versa ? And don't touch the refcnt on pwm/gpio export/unexport?

Neat. I will test such a solution and try to post it within the next few days.

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH 1/1] pwm: pca9685: fix gpio-only operation. Sven Van Asbroeck <thesven73@gmail.com> - 2017-04-11 05:40 +0200
  Re: [PATCH 1/1] pwm: pca9685: fix gpio-only operation. Mika Westerberg <mika.westerberg@linux.intel.com> - 2017-04-11 11:20 +0200

csiph-web