All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] rpmsg: syslog driver
@ 2021-11-09  8:30 Christian Gmeiner
  2021-11-09  8:30 ` [RFC PATCH 1/1] rpmsg: add " Christian Gmeiner
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Gmeiner @ 2021-11-09  8:30 UTC (permalink / raw)
  To: linux-kernel
  Cc: Christian Gmeiner, Ohad Ben-Cohen, Bjorn Andersson,
	Mathieu Poirier, linux-remoteproc

I am sending this patch as RFC I am am aware that this is
not ready for inclusion. I am however want to get some
feedback on this choosen approach. In the end I want to be
able to get log messages from the remote firmware into syslog.

Christian Gmeiner (1):
  rpmsg: add syslog driver

 drivers/rpmsg/Kconfig  | 8 ++++++++
 drivers/rpmsg/Makefile | 1 +
 2 files changed, 9 insertions(+)

-- 
2.33.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [RFC PATCH 1/1] rpmsg: add syslog driver
  2021-11-09  8:30 [RFC PATCH 0/1] rpmsg: syslog driver Christian Gmeiner
@ 2021-11-09  8:30 ` Christian Gmeiner
  2021-11-09  8:40   ` Christian Gmeiner
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Gmeiner @ 2021-11-09  8:30 UTC (permalink / raw)
  To: linux-kernel
  Cc: Christian Gmeiner, Ohad Ben-Cohen, Bjorn Andersson,
	Mathieu Poirier, linux-remoteproc

Allows the remote firmware to log into syslog.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
---
 drivers/rpmsg/Kconfig  | 8 ++++++++
 drivers/rpmsg/Makefile | 1 +
 2 files changed, 9 insertions(+)

diff --git a/drivers/rpmsg/Kconfig b/drivers/rpmsg/Kconfig
index 0b4407abdf13..801f9956ec21 100644
--- a/drivers/rpmsg/Kconfig
+++ b/drivers/rpmsg/Kconfig
@@ -73,4 +73,12 @@ config RPMSG_VIRTIO
 	select RPMSG_NS
 	select VIRTIO
 
+config RPMSG_SYSLOG
+	tristate "SYSLOG device interface"
+	depends on RPMSG
+	help
+	  Say Y here to export rpmsg endpoints as device files, usually found
+	  in /dev. They make it possible for user-space programs to send and
+	  receive rpmsg packets.
+
 endmenu
diff --git a/drivers/rpmsg/Makefile b/drivers/rpmsg/Makefile
index 8d452656f0ee..75b2ec7133a5 100644
--- a/drivers/rpmsg/Makefile
+++ b/drivers/rpmsg/Makefile
@@ -9,3 +9,4 @@ obj-$(CONFIG_RPMSG_QCOM_GLINK_RPM) += qcom_glink_rpm.o
 obj-$(CONFIG_RPMSG_QCOM_GLINK_SMEM) += qcom_glink_smem.o
 obj-$(CONFIG_RPMSG_QCOM_SMD)	+= qcom_smd.o
 obj-$(CONFIG_RPMSG_VIRTIO)	+= virtio_rpmsg_bus.o
+obj-$(CONFIG_RPMSG_SYSLOG)	+= rpmsg_syslog.o
-- 
2.33.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [RFC PATCH 1/1] rpmsg: add syslog driver
  2021-11-09  8:30 ` [RFC PATCH 1/1] rpmsg: add " Christian Gmeiner
@ 2021-11-09  8:40   ` Christian Gmeiner
  0 siblings, 0 replies; 3+ messages in thread
From: Christian Gmeiner @ 2021-11-09  8:40 UTC (permalink / raw)
  To: LKML; +Cc: Ohad Ben-Cohen, Bjorn Andersson, Mathieu Poirier, linux-remoteproc

Hi.

Am Di., 9. Nov. 2021 um 09:31 Uhr schrieb Christian Gmeiner
<christian.gmeiner@gmail.com>:
>
> Allows the remote firmware to log into syslog.
>
> Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
> ---
>  drivers/rpmsg/Kconfig  | 8 ++++++++
>  drivers/rpmsg/Makefile | 1 +
>  2 files changed, 9 insertions(+)
>
> diff --git a/drivers/rpmsg/Kconfig b/drivers/rpmsg/Kconfig
> index 0b4407abdf13..801f9956ec21 100644
> --- a/drivers/rpmsg/Kconfig
> +++ b/drivers/rpmsg/Kconfig
> @@ -73,4 +73,12 @@ config RPMSG_VIRTIO
>         select RPMSG_NS
>         select VIRTIO
>
> +config RPMSG_SYSLOG
> +       tristate "SYSLOG device interface"
> +       depends on RPMSG
> +       help
> +         Say Y here to export rpmsg endpoints as device files, usually found
> +         in /dev. They make it possible for user-space programs to send and
> +         receive rpmsg packets.
> +
>  endmenu
> diff --git a/drivers/rpmsg/Makefile b/drivers/rpmsg/Makefile
> index 8d452656f0ee..75b2ec7133a5 100644
> --- a/drivers/rpmsg/Makefile
> +++ b/drivers/rpmsg/Makefile
> @@ -9,3 +9,4 @@ obj-$(CONFIG_RPMSG_QCOM_GLINK_RPM) += qcom_glink_rpm.o
>  obj-$(CONFIG_RPMSG_QCOM_GLINK_SMEM) += qcom_glink_smem.o
>  obj-$(CONFIG_RPMSG_QCOM_SMD)   += qcom_smd.o
>  obj-$(CONFIG_RPMSG_VIRTIO)     += virtio_rpmsg_bus.o
> +obj-$(CONFIG_RPMSG_SYSLOG)     += rpmsg_syslog.o
> --
> 2.33.1
>

I just sent a v2 as I was missing the rpmsg_syslog.c - need more coffee.

-- 
greets
--
Christian Gmeiner, MSc

https://christian-gmeiner.info/privacypolicy

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-09  8:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-09  8:30 [RFC PATCH 0/1] rpmsg: syslog driver Christian Gmeiner
2021-11-09  8:30 ` [RFC PATCH 1/1] rpmsg: add " Christian Gmeiner
2021-11-09  8:40   ` Christian Gmeiner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.