linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] serial: core: updates to uapi header
@ 2023-09-22  6:36 Wolfram Sang
  2023-09-22  6:36 ` [PATCH 1/2] serial: core: remove cruft from " Wolfram Sang
  2023-09-22  6:36 ` [PATCH 2/2] serial: core: add comment about definitely used port types Wolfram Sang
  0 siblings, 2 replies; 4+ messages in thread
From: Wolfram Sang @ 2023-09-22  6:36 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: Wolfram Sang, linux-kernel, linux-serial

I tried to remove port 18 but that was rightfully a no-go. Add a comment
explaining the case. And remove boilerplate in the header while we are
here.


Wolfram Sang (2):
  serial: core: remove cruft from uapi header
  serial: core: add comment about definitely used port types

 include/uapi/linux/serial_core.h | 18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)

-- 
2.35.1


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

* [PATCH 1/2] serial: core: remove cruft from uapi header
  2023-09-22  6:36 [PATCH 0/2] serial: core: updates to uapi header Wolfram Sang
@ 2023-09-22  6:36 ` Wolfram Sang
  2023-09-25 11:51   ` Geert Uytterhoeven
  2023-09-22  6:36 ` [PATCH 2/2] serial: core: add comment about definitely used port types Wolfram Sang
  1 sibling, 1 reply; 4+ messages in thread
From: Wolfram Sang @ 2023-09-22  6:36 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: Wolfram Sang, Greg Kroah-Hartman, Jiri Slaby, linux-kernel, linux-serial

Remove the GPL boilerplate since we have a valid SPDX entry. Also,
remove the outdated filename from the comment.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 include/uapi/linux/serial_core.h | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/include/uapi/linux/serial_core.h b/include/uapi/linux/serial_core.h
index add349889d0a..92e3dd56f631 100644
--- a/include/uapi/linux/serial_core.h
+++ b/include/uapi/linux/serial_core.h
@@ -1,22 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
 /*
- *  linux/drivers/char/serial_core.h
- *
  *  Copyright (C) 2000 Deep Blue Solutions Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 #ifndef _UAPILINUX_SERIAL_CORE_H
 #define _UAPILINUX_SERIAL_CORE_H
-- 
2.35.1


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

* [PATCH 2/2] serial: core: add comment about definitely used port types
  2023-09-22  6:36 [PATCH 0/2] serial: core: updates to uapi header Wolfram Sang
  2023-09-22  6:36 ` [PATCH 1/2] serial: core: remove cruft from " Wolfram Sang
@ 2023-09-22  6:36 ` Wolfram Sang
  1 sibling, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2023-09-22  6:36 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: Wolfram Sang, Greg Kroah-Hartman, Jiri Slaby, linux-kernel, linux-serial

When port type 18 was removed, it was deduced that the code could go but
its define has to stay because it is used in userspace. Share that
knowledge by adding a comment about it.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 include/uapi/linux/serial_core.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/uapi/linux/serial_core.h b/include/uapi/linux/serial_core.h
index 92e3dd56f631..46e06c483899 100644
--- a/include/uapi/linux/serial_core.h
+++ b/include/uapi/linux/serial_core.h
@@ -11,6 +11,8 @@
  * The type definitions.  These are from Ted Ts'o's serial.h
  * By historical reasons the values from 0 to 13 are defined
  * in the include/uapi/linux/serial.h, do not define them here.
+ * Values 0 to 19 are used by setserial from busybox and must never
+ * be modified.
  */
 #define PORT_NS16550A	14
 #define PORT_XSCALE	15
-- 
2.35.1


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

* Re: [PATCH 1/2] serial: core: remove cruft from uapi header
  2023-09-22  6:36 ` [PATCH 1/2] serial: core: remove cruft from " Wolfram Sang
@ 2023-09-25 11:51   ` Geert Uytterhoeven
  0 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2023-09-25 11:51 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-renesas-soc, Greg Kroah-Hartman, Jiri Slaby, linux-kernel,
	linux-serial

On Fri, Sep 22, 2023 at 10:48 AM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> Remove the GPL boilerplate since we have a valid SPDX entry. Also,
> remove the outdated filename from the comment.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

end of thread, other threads:[~2023-09-25 11:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-22  6:36 [PATCH 0/2] serial: core: updates to uapi header Wolfram Sang
2023-09-22  6:36 ` [PATCH 1/2] serial: core: remove cruft from " Wolfram Sang
2023-09-25 11:51   ` Geert Uytterhoeven
2023-09-22  6:36 ` [PATCH 2/2] serial: core: add comment about definitely used port types Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).