mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Julien Panis <jpanis@baylibre.com>
Cc: lee@kernel.org, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, corbet@lwn.net, arnd@arndb.de,
	gregkh@linuxfoundation.org, derek.kiernan@xilinx.com,
	dragan.cvetic@xilinx.com, yi.l.liu@intel.com, jgg@ziepe.ca,
	razor@blackwall.org, stephen@networkplumber.org,
	prabhakar.csengg@gmail.com, contact@emersion.fr,
	macro@orcam.me.uk, dsahern@kernel.org,
	alex.williamson@redhat.com, akrowiak@linux.ibm.com,
	mark.rutland@arm.com, ye.xingchen@zte.com.cn, ojeda@kernel.org,
	keescook@chromium.org, me@kloenk.de, mhiramat@kernel.org,
	milan@mdaverde.com, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
	sterzik@ti.com, u-kumar1@ti.com, eblanc@baylibre.com,
	jneanne@baylibre.com
Subject: Re: [PATCH v6 6/6] samples: Add userspace example for TI TPS6594 PFSM
Date: Fri, 16 Jun 2023 06:39:19 -0700	[thread overview]
Message-ID: <613d608c-8c11-497c-81ef-e061d7ab69ab@roeck-us.net> (raw)
In-Reply-To: <20230406075622.8990-7-jpanis@baylibre.com>

On Thu, Apr 06, 2023 at 09:56:22AM +0200, Julien Panis wrote:
> This patch adds an example showing how to use PFSM devices
> from a userspace application. The PMIC is armed to be triggered
> by a RTC alarm to execute state transition.
> 
> Signed-off-by: Julien Panis <jpanis@baylibre.com>
> ---
>  samples/Kconfig            |   6 ++
>  samples/Makefile           |   1 +
>  samples/pfsm/.gitignore    |   2 +
>  samples/pfsm/Makefile      |   4 ++
>  samples/pfsm/pfsm-wakeup.c | 125 +++++++++++++++++++++++++++++++++++++
>  5 files changed, 138 insertions(+)
>  create mode 100644 samples/pfsm/.gitignore
>  create mode 100644 samples/pfsm/Makefile
>  create mode 100644 samples/pfsm/pfsm-wakeup.c
> 
> diff --git a/samples/Kconfig b/samples/Kconfig
> index 30ef8bd48ba3..f23aa60a74cf 100644
> --- a/samples/Kconfig
> +++ b/samples/Kconfig
> @@ -253,6 +253,12 @@ config SAMPLE_INTEL_MEI
>  	help
>  	  Build a sample program to work with mei device.
>  
> +config SAMPLE_TPS6594_PFSM
> +	bool "Build example program working with TPS6594 PFSM driver"
> +	depends on HEADERS_INSTALL

This also needs to depend on CC_CAN_LINK to avoid errors such as

Building arm:allmodconfig ... failed
--------------
Error log:
samples/pfsm/pfsm-wakeup.c:12:10: fatal error: fcntl.h: No such file or directory
   12 | #include <fcntl.h>

seen when building images with kernel toolchains.

Guenter

      reply	other threads:[~2023-06-16 13:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-06  7:56 [PATCH v6 0/6] TI TPS6594 PMIC support (Core, ESM, PFSM) Julien Panis
2023-04-06  7:56 ` [PATCH v6 1/6] dt-bindings: mfd: Add TI TPS6594 PMIC Julien Panis
2023-04-06  7:56 ` [PATCH v6 2/6] mfd: tps6594: Add driver for " Julien Panis
2023-04-06  7:56 ` [PATCH v6 3/6] misc: tps6594-esm: Add driver for TI TPS6594 ESM Julien Panis
2023-04-06  7:56 ` [PATCH v6 4/6] misc: tps6594-pfsm: Add driver for TI TPS6594 PFSM Julien Panis
2023-04-06  7:56 ` [PATCH v6 5/6] Documentation: Add " Julien Panis
2023-04-06  7:56 ` [PATCH v6 6/6] samples: Add userspace example for " Julien Panis
2023-06-16 13:39   ` Guenter Roeck [this message]

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=613d608c-8c11-497c-81ef-e061d7ab69ab@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=akrowiak@linux.ibm.com \
    --cc=alex.williamson@redhat.com \
    --cc=arnd@arndb.de \
    --cc=contact@emersion.fr \
    --cc=corbet@lwn.net \
    --cc=derek.kiernan@xilinx.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dragan.cvetic@xilinx.com \
    --cc=dsahern@kernel.org \
    --cc=eblanc@baylibre.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jgg@ziepe.ca \
    --cc=jneanne@baylibre.com \
    --cc=jpanis@baylibre.com \
    --cc=keescook@chromium.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=lee@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=macro@orcam.me.uk \
    --cc=mark.rutland@arm.com \
    --cc=me@kloenk.de \
    --cc=mhiramat@kernel.org \
    --cc=milan@mdaverde.com \
    --cc=ojeda@kernel.org \
    --cc=prabhakar.csengg@gmail.com \
    --cc=razor@blackwall.org \
    --cc=robh+dt@kernel.org \
    --cc=stephen@networkplumber.org \
    --cc=sterzik@ti.com \
    --cc=u-kumar1@ti.com \
    --cc=ye.xingchen@zte.com.cn \
    --cc=yi.l.liu@intel.com \
    /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

all inboxes | Powered by JetHome®