tty: unexport tty_ldisc_release
Subsystems (70)
PATCH 1/16 tty: unexport tty_ldisc_release
Initially, tty_ldisc_release() was exported for speakup (spk_tty) while in staging. Later, the call to this function was removed as it was bogus anyway.
Remove the export now.
--- drivers/tty/tty_ldisc.c | 1 - 1 file changed, 1 deletion(-)
drivers/tty/tty_ldisc.c +0 -1
@@ -812,7 +812,6 @@ void tty_ldisc_release(struct tty_struct *tty)tty_ldisc_debug (tty,"released\n" ); } -EXPORT_SYMBOL_GPL (tty_ldisc_release);/** * tty_ldisc_init - ldisc setup for new tty
Signature · 1 line
2.33.0
PATCH 2/16 tty: remove flags from struct tty_ldisc_ops
The last user was apparently removed by commit a352def21a64 (tty: Ldisc revamp) in 2008. So remove the field completely, the only setter (n_tty_inherit_ops) and also its only possible value (LDISC_FLAG_DEFINED).
--- drivers/tty/n_tty.c | 1 - include/linux/tty_ldisc.h | 3 --- 2 files changed, 4 deletions(-)
drivers/tty/n_tty.c +0 -1
@@ -2450,7 +2450,6 @@ void n_tty_inherit_ops(struct tty_ldisc_ops *ops) { *ops = n_tty_ops; ops->owner =NULL ; - ops->flags =0 ; }EXPORT_SYMBOL_GPL (n_tty_inherit_ops);
include/linux/tty_ldisc.h +0 -3
@@ -180,7 +180,6 @@ extern int ldsem_down_write_nested(struct ld_semaphore *sem, int subclass,struct tty_ldisc_ops {char *name;int num; -int flags;/* * The following routines are called from above.
@@ -220,8 +219,6 @@ struct tty_ldisc {struct tty_struct *tty; }; -#define LDISC_FLAG_DEFINED 0x00000001 -#define MODULE_ALIAS_LDISC (ldisc) \ MODULE_ALIAS("tty-ldisc-" __stringify(ldisc))
Signature · 1 line
2.33.0
PATCH 3/16 tty: remove extern from functions in tty headers
In reply to Jiri SlabyAfter the recent headers cleanup, some function declarations still have extern before them. It is superfluous (for function declarations), so remove extern from those which still have it.
This unifies them with the rest of the files.
--- include/linux/tty.h | 139 ++++++++++++++++++------------------- include/linux/tty_driver.h | 8 +-- include/linux/tty_flip.h | 20 +++--- include/linux/tty_ldisc.h | 22 +++--- 4 files changed, 94 insertions(+), 95 deletions(-)
include/linux/tty.h +69 -70
@@ -252,20 +252,20 @@ static inline bool tty_throttled(struct tty_struct *tty) }#ifdef CONFIG_TTY -extern void tty_kref_put (struct tty_struct *tty); -extern struct pid *tty_get_pgrp (struct tty_struct *tty); -extern void tty_vhangup_self (void ); -extern void disassociate_ctty (int priv); -extern dev_t tty_devnum (struct tty_struct *tty); -extern void proc_clear_tty (struct task_struct *p); -extern struct tty_struct *get_current_tty (void ); +void tty_kref_put (struct tty_struct *tty); +struct pid *tty_get_pgrp (struct tty_struct *tty); +void tty_vhangup_self (void ); +void disassociate_ctty (int priv); +dev_t tty_devnum (struct tty_struct *tty); +void proc_clear_tty (struct task_struct *p); +struct tty_struct *get_current_tty (void );/* tty_io.c */ -extern int __init tty_init (void ); -extern const char *tty_name (const struct tty_struct *tty); -extern struct tty_struct *tty_kopen_exclusive (dev_t device); -extern struct tty_struct *tty_kopen_shared (dev_t device); -extern void tty_kclose (struct tty_struct *tty); -extern int tty_dev_name_to_number (const char *name,dev_t *number); +int __init tty_init (void ); +const char *tty_name (const struct tty_struct *tty); +struct tty_struct *tty_kopen_exclusive (dev_t device); +struct tty_struct *tty_kopen_shared (dev_t device); +void tty_kclose (struct tty_struct *tty); +int tty_dev_name_to_number (const char *name,dev_t *number);#else static inline void tty_kref_put (struct tty_struct *tty) { }
@@ -296,7 +296,7 @@ static inline int tty_dev_name_to_number(const char *name, dev_t *number)extern struct ktermios tty_std_termios; -extern int vcs_init (void ); +int vcs_init (void );extern struct class *tty_class;
@@ -316,34 +316,34 @@ static inline struct tty_struct *tty_kref_get(struct tty_struct *tty)return tty; } -extern const char *tty_driver_name (const struct tty_struct *tty); -extern void tty_wait_until_sent (struct tty_struct *tty,long timeout); -extern void stop_tty (struct tty_struct *tty); -extern void start_tty (struct tty_struct *tty); -extern void tty_write_message (struct tty_struct *tty,char *msg); -extern int tty_send_xchar (struct tty_struct *tty,char ch); -extern int tty_put_char (struct tty_struct *tty,unsigned char c); -extern unsigned int tty_chars_in_buffer (struct tty_struct *tty); -extern unsigned int tty_write_room (struct tty_struct *tty); -extern void tty_driver_flush_buffer (struct tty_struct *tty); -extern void tty_unthrottle (struct tty_struct *tty); -extern int tty_throttle_safe (struct tty_struct *tty); -extern int tty_unthrottle_safe (struct tty_struct *tty); -extern int tty_do_resize (struct tty_struct *tty,struct winsize *ws); -extern int tty_get_icount (struct tty_struct *tty, -struct serial_icounter_struct *icount); -extern int is_current_pgrp_orphaned (void ); -extern void tty_hangup (struct tty_struct *tty); -extern void tty_vhangup (struct tty_struct *tty); -extern int tty_hung_up_p (struct file *filp); -extern void do_SAK (struct tty_struct *tty); -extern void __do_SAK (struct tty_struct *tty); -extern void no_tty (void ); -extern speed_t tty_termios_baud_rate (struct ktermios *termios); -extern void tty_termios_encode_baud_rate (struct ktermios *termios, -speed_t ibaud,speed_t obaud); -extern void tty_encode_baud_rate (struct tty_struct *tty, -speed_t ibaud,speed_t obaud); +const char *tty_driver_name (const struct tty_struct *tty); +void tty_wait_until_sent (struct tty_struct *tty,long timeout); +void stop_tty (struct tty_struct *tty); +void start_tty (struct tty_struct *tty); +void tty_write_message (struct tty_struct *tty,char *msg); +int tty_send_xchar (struct tty_struct *tty,char ch); +int tty_put_char (struct tty_struct *tty,unsigned char c); +unsigned int tty_chars_in_buffer (struct tty_struct *tty); +unsigned int tty_write_room (struct tty_struct *tty); +void tty_driver_flush_buffer (struct tty_struct *tty); +void tty_unthrottle (struct tty_struct *tty); +int tty_throttle_safe (struct tty_struct *tty); +int tty_unthrottle_safe (struct tty_struct *tty); +int tty_do_resize (struct tty_struct *tty,struct winsize *ws); +int tty_get_icount (struct tty_struct *tty, +struct serial_icounter_struct *icount); +int is_current_pgrp_orphaned (void ); +void tty_hangup (struct tty_struct *tty); +void tty_vhangup (struct tty_struct *tty); +int tty_hung_up_p (struct file *filp); +void do_SAK (struct tty_struct *tty); +void __do_SAK (struct tty_struct *tty); +void no_tty (void ); +speed_t tty_termios_baud_rate (struct ktermios *termios); +void tty_termios_encode_baud_rate (struct ktermios *termios,speed_t ibaud, +speed_t obaud); +void tty_encode_baud_rate (struct tty_struct *tty,speed_t ibaud, +speed_t obaud);/** * tty_get_baud_rate - get tty bit rates
@@ -363,37 +363,37 @@ static inline speed_t tty_get_baud_rate(struct tty_struct *tty)unsigned char tty_get_char_size (unsigned int cflag);unsigned char tty_get_frame_size (unsigned int cflag); -extern void tty_termios_copy_hw (struct ktermios *new,struct ktermios *old); -extern int tty_termios_hw_change (const struct ktermios *a,const struct ktermios *b); -extern int tty_set_termios (struct tty_struct *tty,struct ktermios *kt); +void tty_termios_copy_hw (struct ktermios *new,struct ktermios *old); +int tty_termios_hw_change (const struct ktermios *a,const struct ktermios *b); +int tty_set_termios (struct tty_struct *tty,struct ktermios *kt); -extern void tty_wakeup (struct tty_struct *tty); +void tty_wakeup (struct tty_struct *tty); -extern int tty_mode_ioctl (struct tty_struct *tty,struct file *file, +int tty_mode_ioctl (struct tty_struct *tty,struct file *file,unsigned int cmd,unsigned long arg); -extern int tty_perform_flush (struct tty_struct *tty,unsigned long arg); -extern struct tty_struct *tty_init_dev (struct tty_driver *driver,int idx); -extern void tty_release_struct (struct tty_struct *tty,int idx); -extern void tty_init_termios (struct tty_struct *tty); -extern void tty_save_termios (struct tty_struct *tty); -extern int tty_standard_install (struct tty_driver *driver, +int tty_perform_flush (struct tty_struct *tty,unsigned long arg); +struct tty_struct *tty_init_dev (struct tty_driver *driver,int idx); +void tty_release_struct (struct tty_struct *tty,int idx); +void tty_init_termios (struct tty_struct *tty); +void tty_save_termios (struct tty_struct *tty); +int tty_standard_install (struct tty_driver *driver,struct tty_struct *tty);extern struct mutex tty_mutex;/* n_tty.c */ -extern void n_tty_inherit_ops (struct tty_ldisc_ops *ops); +void n_tty_inherit_ops (struct tty_ldisc_ops *ops);#ifdef CONFIG_TTY -extern void __init n_tty_init (void ); +void __init n_tty_init (void );#else static inline void n_tty_init (void ) { }#endif /* tty_audit.c */ #ifdef CONFIG_AUDIT -extern void tty_audit_exit (void ); -extern void tty_audit_fork (struct signal_struct *sig); -extern int tty_audit_push (void ); +void tty_audit_exit (void ); +void tty_audit_fork (struct signal_struct *sig); +int tty_audit_push (void );#else static inline void tty_audit_exit (void ) {
@@ -408,24 +408,23 @@ static inline int tty_audit_push(void)#endif /* tty_ioctl.c */ -extern int n_tty_ioctl_helper (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg); +int n_tty_ioctl_helper (struct tty_struct *tty,struct file *file, +unsigned int cmd,unsigned long arg);/* vt.c */ -extern int vt_ioctl (struct tty_struct *tty, -unsigned int cmd,unsigned long arg); +int vt_ioctl (struct tty_struct *tty,unsigned int cmd,unsigned long arg); -extern long vt_compat_ioctl (struct tty_struct *tty, -unsigned int cmd,unsigned long arg); +long vt_compat_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg);/* tty_mutex.c */ /* functions for preparation of BKL removal */ -extern void tty_lock (struct tty_struct *tty); -extern int tty_lock_interruptible (struct tty_struct *tty); -extern void tty_unlock (struct tty_struct *tty); -extern void tty_lock_slave (struct tty_struct *tty); -extern void tty_unlock_slave (struct tty_struct *tty); -extern void tty_set_lock_subclass (struct tty_struct *tty); +void tty_lock (struct tty_struct *tty); +int tty_lock_interruptible (struct tty_struct *tty); +void tty_unlock (struct tty_struct *tty); +void tty_lock_slave (struct tty_struct *tty); +void tty_unlock_slave (struct tty_struct *tty); +void tty_set_lock_subclass (struct tty_struct *tty);#endif
include/linux/tty_driver.h +4 -4
@@ -327,11 +327,11 @@ struct tty_driver {extern struct list_head tty_drivers; -extern struct tty_driver *__tty_alloc_driver (unsigned int lines, -struct module *owner,unsigned long flags); -extern struct tty_driver *tty_find_polling_driver (char *name,int *line); +struct tty_driver *__tty_alloc_driver (unsigned int lines,struct module *owner, +unsigned long flags); +struct tty_driver *tty_find_polling_driver (char *name,int *line); -extern void tty_driver_kref_put (struct tty_driver *driver); +void tty_driver_kref_put (struct tty_driver *driver);/* Use TTY_DRIVER_* flags below */ #define tty_alloc_driver (lines, flags) \
include/linux/tty_flip.h +10 -10
@@ -7,16 +7,16 @@struct tty_ldisc ; -extern int tty_buffer_set_limit (struct tty_port *port,int limit); -extern unsigned int tty_buffer_space_avail (struct tty_port *port); -extern int tty_buffer_request_room (struct tty_port *port,size_t size); -extern int tty_insert_flip_string_flags (struct tty_port *port, +int tty_buffer_set_limit (struct tty_port *port,int limit); +unsigned int tty_buffer_space_avail (struct tty_port *port); +int tty_buffer_request_room (struct tty_port *port,size_t size); +int tty_insert_flip_string_flags (struct tty_port *port,const unsigned char *chars,const char *flags,size_t size); -extern int tty_insert_flip_string_fixed_flag (struct tty_port *port, +int tty_insert_flip_string_fixed_flag (struct tty_port *port,const unsigned char *chars,char flag,size_t size); -extern int tty_prepare_flip_string (struct tty_port *port, -unsigned char **chars,size_t size); -extern void tty_flip_buffer_push (struct tty_port *port); +int tty_prepare_flip_string (struct tty_port *port,unsigned char **chars, +size_t size); +void tty_flip_buffer_push (struct tty_port *port);void tty_schedule_flip (struct tty_port *port);int __tty_insert_flip_char (struct tty_port *port,unsigned char ch,char flag);
@@ -45,7 +45,7 @@ static inline int tty_insert_flip_string(struct tty_port *port,int tty_ldisc_receive_buf (struct tty_ldisc *ld,const unsigned char *p,const char *f,int count); -extern void tty_buffer_lock_exclusive (struct tty_port *port); -extern void tty_buffer_unlock_exclusive (struct tty_port *port); +void tty_buffer_lock_exclusive (struct tty_port *port); +void tty_buffer_unlock_exclusive (struct tty_port *port);#endif /* _LINUX_TTY_FLIP_H */
include/linux/tty_ldisc.h +11 -11
@@ -146,7 +146,7 @@ struct ld_semaphore {#endif }; -extern void __init_ldsem (struct ld_semaphore *sem,const char *name, +void __init_ldsem (struct ld_semaphore *sem,const char *name,struct lock_class_key *key);#define init_ldsem (sem) \
@@ -157,18 +157,18 @@ do { \ }while (0 ) -extern int ldsem_down_read(struct ld_semaphore *sem, long timeout); -extern int ldsem_down_read_trylock (struct ld_semaphore *sem); -extern int ldsem_down_write (struct ld_semaphore *sem,long timeout); -extern int ldsem_down_write_trylock (struct ld_semaphore *sem); -extern void ldsem_up_read (struct ld_semaphore *sem); -extern void ldsem_up_write (struct ld_semaphore *sem); +int ldsem_down_read(struct ld_semaphore *sem, long timeout); +int ldsem_down_read_trylock (struct ld_semaphore *sem); +int ldsem_down_write (struct ld_semaphore *sem,long timeout); +int ldsem_down_write_trylock (struct ld_semaphore *sem); +void ldsem_up_read (struct ld_semaphore *sem); +void ldsem_up_write (struct ld_semaphore *sem);#ifdef CONFIG_DEBUG_LOCK_ALLOC -extern int ldsem_down_read_nested (struct ld_semaphore *sem,int subclass, -long timeout); -extern int ldsem_down_write_nested (struct ld_semaphore *sem,int subclass, -long timeout); +int ldsem_down_read_nested (struct ld_semaphore *sem,int subclass, +long timeout); +int ldsem_down_write_nested (struct ld_semaphore *sem,int subclass, +long timeout);#else # define ldsem_down_read_nested (sem, subclass, timeout) \ ldsem_down_read(sem, timeout)
Signature · 1 line
2.33.0
PATCH 4/16 tty: make tty_ldisc_ops::hangup return void
In reply to Jiri SlabyThe documentation says that the return value of tty_ldisc_ops::hangup hook is ignored. And it really is, so there is no point for its return type to be int. Switch it to void and all the hooks too.
--- Documentation/driver-api/serial/tty.rst | 2 +- drivers/input/serio/serport.c | 3 +-- drivers/net/can/slcan.c | 3 +-- drivers/net/ppp/ppp_async.c | 3 +-- drivers/net/ppp/ppp_synctty.c | 3 +-- drivers/net/slip/slip.c | 3 +-- include/linux/tty_ldisc.h | 2 +- sound/soc/codecs/cx20442.c | 3 +-- sound/soc/ti/ams-delta.c | 3 +-- 9 files changed, 9 insertions(+), 16 deletions(-)
Documentation/driver-api/serial/tty.rst +1 -1
@@ -58,7 +58,7 @@ close() This is called on a terminal when the line hangup() Called when the tty line is hung up. The line discipline should cease I/O to the tty. No further calls into the ldisc code will occur. - The return value is ignored. Can sleep. + Can sleep. read() (optional) A process requests reading data from the line. Multiple read calls may occur in parallel
drivers/input/serio/serport.c +1 -2
@@ -244,7 +244,7 @@ static int serport_ldisc_compat_ioctl(struct tty_struct *tty, }#endif -static int serport_ldisc_hangup (struct tty_struct *tty) +static void serport_ldisc_hangup (struct tty_struct *tty) {struct serport *serport = (struct serport *) tty->disc_data;unsigned long flags;
@@ -254,7 +254,6 @@ static int serport_ldisc_hangup(struct tty_struct *tty)spin_unlock_irqrestore (&serport->lock, flags);wake_up_interruptible (&serport->wait); -return 0 ; }static void serport_ldisc_write_wakeup (struct tty_struct * tty)
drivers/net/can/slcan.c +1 -2
@@ -664,10 +664,9 @@ static void slcan_close(struct tty_struct *tty)/* This will complete via sl_free_netdev */ } -static int slcan_hangup (struct tty_struct *tty) +static void slcan_hangup (struct tty_struct *tty) {slcan_close (tty); -return 0 ; }/* Perform I/O control on an active SLCAN channel. */
drivers/net/ppp/ppp_async.c +1 -2
@@ -247,10 +247,9 @@ ppp_asynctty_close(struct tty_struct *tty)* Wait for I/O to driver to complete and unregister PPP channel. * This is already done by the close routine, so just call that. */ -static int ppp_asynctty_hangup (struct tty_struct *tty) +static void ppp_asynctty_hangup (struct tty_struct *tty) {ppp_asynctty_close (tty); -return 0 ; }/*
drivers/net/ppp/ppp_synctty.c +1 -2
@@ -245,10 +245,9 @@ ppp_sync_close(struct tty_struct *tty)* Wait for I/O to driver to complete and unregister PPP channel. * This is already done by the close routine, so just call that. */ -static int ppp_sync_hangup (struct tty_struct *tty) +static void ppp_sync_hangup (struct tty_struct *tty) {ppp_sync_close (tty); -return 0 ; }/*
drivers/net/slip/slip.c +1 -2
@@ -907,10 +907,9 @@ static void slip_close(struct tty_struct *tty)/* This will complete via sl_free_netdev */ } -static int slip_hangup (struct tty_struct *tty) +static void slip_hangup (struct tty_struct *tty) {slip_close (tty); -return 0 ; }/************************************************************************ * STANDARD SLIP ENCAPSULATION *
include/linux/tty_ldisc.h +1 -1
@@ -199,7 +199,7 @@ struct tty_ldisc_ops {void (*set_termios)(struct tty_struct *tty,struct ktermios *old);__poll_t (*poll)(struct tty_struct *,struct file *,struct poll_table_struct *); -int (*hangup)(struct tty_struct *tty); +void (*hangup)(struct tty_struct *tty);/* * The following routines are called from below.
sound/soc/codecs/cx20442.c +1 -2
@@ -252,10 +252,9 @@ static void v253_close(struct tty_struct *tty) }/* Line discipline .hangup() */ -static int v253_hangup (struct tty_struct *tty) +static void v253_hangup (struct tty_struct *tty) {v253_close (tty); -return 0 ; }/* Line discipline .receive_buf() */
sound/soc/ti/ams-delta.c +1 -2
@@ -330,10 +330,9 @@ static void cx81801_close(struct tty_struct *tty) }/* Line discipline .hangup() */ -static int cx81801_hangup (struct tty_struct *tty) +static void cx81801_hangup (struct tty_struct *tty) {cx81801_close (tty); -return 0 ; }/* Line discipline .receive_buf() */
Signature · 1 line
2.33.0
Re: [PATCH 04/16] tty: make tty_ldisc_ops::hangup return void
Quoted 16 lines · Jiri Slaby
The documentation says that the return value of
tty_ldisc_ops::hanguphook is ignored. And it really is, so there is no point for its return type to be int. Switch it to void and all the hooks too.Signed-off-by Jiri Slaby <[email protected]>Cc Dmitry Torokhov <[email protected]>Cc Wolfgang Grandegger <[email protected]>Cc Marc Kleine-Budde <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Paul Mackerras <[email protected]>Cc Liam Girdwood <[email protected]>Cc Mark Brown <[email protected]>Cc Jaroslav Kysela <[email protected]>Cc Takashi Iwai <[email protected]>Cc Peter Ujfalusi <[email protected]>
Quoted 4 lines
--- Documentation/driver-api/serial/tty.rst | 2 +- drivers/input/serio/serport.c | 3 +-- drivers/net/can/slcan.c | 3 +--
For the slcan.c:
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Re: [PATCH 04/16] tty: make tty_ldisc_ops::hangup return void
In reply to Jiri SlabyQuoted 3 lines · Jiri Slaby
The documentation says that the return value of
tty_ldisc_ops::hanguphook is ignored. And it really is, so there is no point for its return type to be int. Switch it to void and all the hooks too.
Re: [PATCH 04/16] tty: make tty_ldisc_ops::hangup return void
In reply to Jiri SlabyQuoted 16 lines · Jiri Slaby
The documentation says that the return value of
tty_ldisc_ops::hanguphook is ignored. And it really is, so there is no point for its return type to be int. Switch it to void and all the hooks too.Signed-off-by Jiri Slaby <[email protected]>Cc Dmitry Torokhov <[email protected]>Cc Wolfgang Grandegger <[email protected]>Cc Marc Kleine-Budde <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Paul Mackerras <[email protected]>Cc Liam Girdwood <[email protected]>Cc Mark Brown <[email protected]>Cc Jaroslav Kysela <[email protected]>Cc Takashi Iwai <[email protected]>Cc Peter Ujfalusi <[email protected]>
Quoted 3 lines
--- Documentation/driver-api/serial/tty.rst | 2 +- drivers/input/serio/serport.c | 3 +--
Thanks.
Signature · 1 line
Dmitry
PATCH 5/16 tty: remove file from tty_mode_ioctl
In reply to Jiri SlabyThe only user of 'file' parameter in tty_mode_ioctl is a BUG_ON check. Provided it never crashed for anyone, it's an overkill to pass the parameter to tty_mode_ioctl only for this check.
If we wanted to check 'file' there, we should handle it in more graceful way anyway. Not by a BUG == crash.
--- drivers/net/can/slcan.c | 2 +- drivers/net/hamradio/6pack.c | 2 +- drivers/net/ppp/ppp_async.c | 2 +- drivers/net/ppp/ppp_synctty.c | 2 +- drivers/net/slip/slip.c | 2 +- drivers/tty/tty_ioctl.c | 8 ++------ include/linux/tty.h | 3 +-- 7 files changed, 8 insertions(+), 13 deletions(-)
drivers/net/can/slcan.c +1 -1
@@ -691,7 +691,7 @@ static int slcan_ioctl(struct tty_struct *tty, struct file *file,return -EINVAL ;default : -return tty_mode_ioctl (tty, file, cmd, arg); +return tty_mode_ioctl (tty, cmd, arg); } }
drivers/net/hamradio/6pack.c +1 -1
@@ -732,7 +732,7 @@ static int sixpack_ioctl(struct tty_struct *tty, struct file *file,break ; }default : - err =tty_mode_ioctl (tty, file, cmd, arg); + err =tty_mode_ioctl (tty, cmd, arg); }sp_put (sp);
drivers/net/ppp/ppp_async.c +1 -1
@@ -322,7 +322,7 @@ ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file,default :/* Try the various mode ioctls */ - err =tty_mode_ioctl (tty, file, cmd, arg); + err =tty_mode_ioctl (tty, cmd, arg); }ap_put (ap);
drivers/net/ppp/ppp_synctty.c +1 -1
@@ -314,7 +314,7 @@ ppp_synctty_ioctl(struct tty_struct *tty, struct file *file,break ;default : - err =tty_mode_ioctl (tty, file, cmd, arg); + err =tty_mode_ioctl (tty, cmd, arg);break ; }
drivers/net/slip/slip.c +1 -1
@@ -1173,7 +1173,7 @@ static int slip_ioctl(struct tty_struct *tty, struct file *file,/* VSV changes end */ #endif default : -return tty_mode_ioctl (tty, file, cmd, arg); +return tty_mode_ioctl (tty, cmd, arg); } }
drivers/tty/tty_ioctl.c +2 -6
@@ -675,7 +675,6 @@ static int tty_change_softcar(struct tty_struct *tty, int arg)/** * tty_mode_ioctl - mode related ioctls * @tty: tty for the ioctl -* @file: file pointer for the tty * @cmd: command * @arg: ioctl argument *
@@ -684,16 +683,13 @@ static int tty_change_softcar(struct tty_struct *tty, int arg)* consistent mode setting. */ -int tty_mode_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +int tty_mode_ioctl (struct tty_struct *tty,unsigned int cmd,unsigned long arg) {struct tty_struct *real_tty;void __user *p = (void __user *)arg;int ret =0 ;struct ktermios kterm; -BUG_ON (file ==NULL ); -if (tty->driver->type ==TTY_DRIVER_TYPE_PTY && tty->driver->subtype ==PTY_TYPE_MASTER ) real_tty = tty->link;
@@ -904,7 +900,7 @@ int n_tty_ioctl_helper(struct tty_struct *tty, struct file *file,return __tty_perform_flush (tty, arg);default :/* Try the mode commands */ -return tty_mode_ioctl (tty, file, cmd, arg); +return tty_mode_ioctl (tty, cmd, arg); } }EXPORT_SYMBOL (n_tty_ioctl_helper);
include/linux/tty.h +1 -2
@@ -369,8 +369,7 @@ int tty_set_termios(struct tty_struct *tty, struct ktermios *kt);void tty_wakeup (struct tty_struct *tty); -int tty_mode_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg); +int tty_mode_ioctl (struct tty_struct *tty,unsigned int cmd,unsigned long arg);int tty_perform_flush (struct tty_struct *tty,unsigned long arg);struct tty_struct *tty_init_dev (struct tty_driver *driver,int idx);void tty_release_struct (struct tty_struct *tty,int idx);
Signature · 1 line
2.33.0
Re: [PATCH 05/16] tty: remove file from tty_mode_ioctl
Quoted 14 lines · Jiri Slaby
The only user of 'file' parameter in
tty_mode_ioctlis aBUG_ONcheck. Provided it never crashed for anyone, it's an overkill to pass the parameter totty_mode_ioctlonly for this check.If we wanted to check 'file' there, we should handle it in more graceful way anyway. Not by a BUG == crash.
Signed-off-by Jiri Slaby <[email protected]>Cc Wolfgang Grandegger <[email protected]>Cc Marc Kleine-Budde <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Andreas Koensgen <[email protected]>Cc Paul Mackerras <[email protected]>
Quoted 2 lines
--- drivers/net/can/slcan.c | 2 +-
For the slcan.c:
regards,
Marc
--
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
PATCH 6/16 tty: remove file from n_tty_ioctl_helper
In reply to Jiri SlabyAfter the previous patch, there are no users of 'file' in n_tty_ioctl_helper. So remove it also from there.
--- drivers/bluetooth/hci_ldisc.c | 2 +- drivers/net/ppp/ppp_async.c | 2 +- drivers/net/ppp/ppp_synctty.c | 2 +- drivers/tty/n_gsm.c | 2 +- drivers/tty/n_hdlc.c | 2 +- drivers/tty/n_tty.c | 2 +- drivers/tty/tty_ioctl.c | 4 ++-- include/linux/tty.h | 4 ++-- net/nfc/nci/uart.c | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-)
drivers/bluetooth/hci_ldisc.c +1 -1
@@ -790,7 +790,7 @@ static int hci_uart_tty_ioctl(struct tty_struct *tty, struct file *file,break ;default : - err =n_tty_ioctl_helper (tty, file, cmd, arg); + err =n_tty_ioctl_helper (tty, cmd, arg);break ; }
drivers/net/ppp/ppp_async.c +1 -1
@@ -310,7 +310,7 @@ ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file,/* flush our buffers and the serial port's buffer */ if (arg ==TCIOFLUSH || arg ==TCOFLUSH )ppp_async_flush_output (ap); - err =n_tty_ioctl_helper (tty, file, cmd, arg); + err =n_tty_ioctl_helper (tty, cmd, arg);break ;case FIONREAD :
drivers/net/ppp/ppp_synctty.c +1 -1
@@ -303,7 +303,7 @@ ppp_synctty_ioctl(struct tty_struct *tty, struct file *file,/* flush our buffers and the serial port's buffer */ if (arg ==TCIOFLUSH || arg ==TCOFLUSH )ppp_sync_flush_output (ap); - err =n_tty_ioctl_helper (tty, file, cmd, arg); + err =n_tty_ioctl_helper (tty, cmd, arg);break ;case FIONREAD :
drivers/tty/n_gsm.c +1 -1
@@ -2651,7 +2651,7 @@ static int gsmld_ioctl(struct tty_struct *tty, struct file *file, base =mux_num_to_base (gsm);return put_user (base +1 , (__u32 __user *)arg);default : -return n_tty_ioctl_helper (tty, file, cmd, arg); +return n_tty_ioctl_helper (tty, cmd, arg); } }
drivers/tty/n_hdlc.c +1 -1
@@ -630,7 +630,7 @@ static int n_hdlc_tty_ioctl(struct tty_struct *tty, struct file *file, fallthrough;/* to default */ default : - error =n_tty_ioctl_helper (tty, file, cmd, arg); + error =n_tty_ioctl_helper (tty, cmd, arg);break ; }return error;
drivers/tty/n_tty.c +1 -1
@@ -2418,7 +2418,7 @@ static int n_tty_ioctl(struct tty_struct *tty, struct file *file,up_write (&tty->termios_rwsem);return put_user (retval, (unsigned int __user *) arg);default : -return n_tty_ioctl_helper (tty, file, cmd, arg); +return n_tty_ioctl_helper (tty, cmd, arg); } }
drivers/tty/tty_ioctl.c +2 -2
@@ -854,8 +854,8 @@ int tty_perform_flush(struct tty_struct *tty, unsigned long arg) }EXPORT_SYMBOL_GPL (tty_perform_flush); -int n_tty_ioctl_helper (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +int n_tty_ioctl_helper (struct tty_struct *tty,unsigned int cmd, +unsigned long arg) {int retval;
include/linux/tty.h +2 -2
@@ -407,8 +407,8 @@ static inline int tty_audit_push(void)#endif /* tty_ioctl.c */ -int n_tty_ioctl_helper (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg); +int n_tty_ioctl_helper (struct tty_struct *tty,unsigned int cmd, +unsigned long arg);/* vt.c */
net/nfc/nci/uart.c +1 -1
@@ -349,7 +349,7 @@ static int nci_uart_tty_ioctl(struct tty_struct *tty, struct file *file,return -EBUSY ;break ;default : - err =n_tty_ioctl_helper (tty, file, cmd, arg); + err =n_tty_ioctl_helper (tty, cmd, arg);break ; }
Signature · 1 line
2.33.0
Re: [PATCH 06/16] tty: remove file from n_tty_ioctl_helper
Quoted 11 lines · Jiri Slaby
After the previous patch, there are no users of 'file' in
n_tty_ioctl_helper. So remove it also from there.Signed-off-by Jiri Slaby <[email protected]>Cc Marcel Holtmann <[email protected]>Cc Johan Hedberg <[email protected]>Cc Luiz Augusto von Dentz <[email protected]>Cc Paul Mackerras <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Krzysztof Kozlowski <[email protected]>
Quoted 12 lines
--- drivers/bluetooth/hci_ldisc.c | 2 +- drivers/net/ppp/ppp_async.c | 2 +- drivers/net/ppp/ppp_synctty.c | 2 +- drivers/tty/n_gsm.c | 2 +- drivers/tty/n_hdlc.c | 2 +- drivers/tty/n_tty.c | 2 +- drivers/tty/tty_ioctl.c | 4 ++-- include/linux/tty.h | 4 ++-- net/nfc/nci/uart.c | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-)
For NFC:
Best regards,
Krzysztof
PATCH 7/16 tty: remove file from tty_ldisc_ops::ioctl and compat_ioctl
In reply to Jiri SlabyAfter the previous patches, noone needs 'file' parameter in neither ioctl hook from tty_ldisc_ops. So remove 'file' from both of them.
--- drivers/bluetooth/hci_ldisc.c | 5 ++--- drivers/input/serio/serport.c | 5 ++--- drivers/net/can/slcan.c | 4 ++-- drivers/net/hamradio/6pack.c | 4 ++-- drivers/net/hamradio/mkiss.c | 4 ++-- drivers/net/ppp/ppp_async.c | 3 +-- drivers/net/ppp/ppp_synctty.c | 3 +-- drivers/net/slip/slip.c | 4 ++-- drivers/tty/n_gsm.c | 4 ++-- drivers/tty/n_hdlc.c | 5 ++--- drivers/tty/n_tty.c | 4 ++-- drivers/tty/tty_io.c | 8 ++++---- include/linux/tty_ldisc.h | 15 +++++++-------- net/nfc/nci/uart.c | 5 ++--- 14 files changed, 33 insertions(+), 40 deletions(-)
drivers/bluetooth/hci_ldisc.c +2 -3
@@ -736,14 +736,13 @@ static int hci_uart_set_flags(struct hci_uart *hu, unsigned long flags)* Arguments: * * tty pointer to tty instance data -* file pointer to open file object for device * cmd IOCTL command code * arg argument for IOCTL call (cmd dependent) * * Return Value: Command dependent */ -static int hci_uart_tty_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +static int hci_uart_tty_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg) {struct hci_uart *hu = tty->disc_data;int err =0 ;
drivers/input/serio/serport.c +2 -3
@@ -207,8 +207,8 @@ static void serport_set_type(struct tty_struct *tty, unsigned long type)* serport_ldisc_ioctl() allows to set the port protocol, and device ID */ -static int serport_ldisc_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +static int serport_ldisc_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg) {if (cmd ==SPIOCSTYPE ) {unsigned long type;
@@ -226,7 +226,6 @@ static int serport_ldisc_ioctl(struct tty_struct *tty, struct file *file,#ifdef CONFIG_COMPAT #define COMPAT_SPIOCSTYPE _IOW('q', 0x01, compat_ulong_t)static int serport_ldisc_compat_ioctl (struct tty_struct *tty, -struct file *file,unsigned int cmd,unsigned long arg) {if (cmd ==COMPAT_SPIOCSTYPE ) {
drivers/net/can/slcan.c +2 -2
@@ -670,8 +670,8 @@ static void slcan_hangup(struct tty_struct *tty) }/* Perform I/O control on an active SLCAN channel. */ -static int slcan_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +static int slcan_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg) {struct slcan *sl = (struct slcan *) tty->disc_data;unsigned int tmp;
drivers/net/hamradio/6pack.c +2 -2
@@ -680,8 +680,8 @@ static void sixpack_close(struct tty_struct *tty) }/* Perform I/O control on an active 6pack channel. */ -static int sixpack_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +static int sixpack_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg) {struct sixpack *sp =sp_get (tty);struct net_device *dev;
drivers/net/hamradio/mkiss.c +2 -2
@@ -803,8 +803,8 @@ static void mkiss_close(struct tty_struct *tty) }/* Perform I/O control on an active ax25 channel. */ -static int mkiss_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +static int mkiss_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg) {struct mkiss *ax =mkiss_get (tty);struct net_device *dev;
drivers/net/ppp/ppp_async.c +1 -2
@@ -281,8 +281,7 @@ ppp_asynctty_write(struct tty_struct *tty, struct file *file,*/ static int -ppp_asynctty_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +ppp_asynctty_ioctl (struct tty_struct *tty,unsigned int cmd,unsigned long arg) {struct asyncppp *ap =ap_get (tty);int err, val;
drivers/net/ppp/ppp_synctty.c +1 -2
@@ -274,8 +274,7 @@ ppp_sync_write(struct tty_struct *tty, struct file *file, }static int -ppp_synctty_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +ppp_synctty_ioctl (struct tty_struct *tty,unsigned int cmd,unsigned long arg) {struct syncppp *ap =sp_get (tty);int __user *p = (int __user *)arg;
drivers/net/slip/slip.c +2 -2
@@ -1072,8 +1072,8 @@ static void slip_unesc6(struct slip *sl, unsigned char s)#endif /* CONFIG_SLIP_MODE_SLIP6 */ /* Perform I/O control on an active SLIP channel. */ -static int slip_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +static int slip_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg) {struct slip *sl = tty->disc_data;unsigned int tmp;
drivers/tty/n_gsm.c +2 -2
@@ -2630,8 +2630,8 @@ static __poll_t gsmld_poll(struct tty_struct *tty, struct file *file,return mask; } -static int gsmld_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +static int gsmld_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg) {struct gsm_config c;struct gsm_mux *gsm = tty->disc_data;
drivers/tty/n_hdlc.c +2 -3
@@ -572,14 +572,13 @@ static ssize_t n_hdlc_tty_write(struct tty_struct *tty, struct file *file,/** * n_hdlc_tty_ioctl - process IOCTL system call for the tty device. * @tty: pointer to tty instance data -* @file: pointer to open file object for device * @cmd: IOCTL command code * @arg: argument for IOCTL call (cmd dependent) * * Returns command dependent result. */ -static int n_hdlc_tty_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +static int n_hdlc_tty_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg) {struct n_hdlc *n_hdlc = tty->disc_data;int error =0 ;
drivers/tty/n_tty.c +2 -2
@@ -2400,8 +2400,8 @@ static unsigned long inq_canon(struct n_tty_data *ldata)return nr; } -static int n_tty_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +static int n_tty_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg) {struct n_tty_data *ldata = tty->disc_data;int retval;
drivers/tty/tty_io.c +4 -4
@@ -2811,7 +2811,7 @@ long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg)return hung_up_tty_ioctl (file, cmd, arg); retval = -EINVAL ;if (ld->ops->ioctl) { - retval = ld->ops->ioctl (tty, file, cmd, arg); + retval = ld->ops->ioctl (tty, cmd, arg);if (retval == -ENOIOCTLCMD ) retval = -ENOTTY ; }
@@ -2990,10 +2990,10 @@ static long tty_compat_ioctl(struct file *file, unsigned int cmd,if (!ld)return hung_up_tty_compat_ioctl (file, cmd, arg);if (ld->ops->compat_ioctl) - retval = ld->ops->compat_ioctl (tty, file, cmd, arg); + retval = ld->ops->compat_ioctl (tty, cmd, arg);if (retval == -ENOIOCTLCMD && ld->ops->ioctl) - retval = ld->ops->ioctl (tty, file, - (unsigned long )compat_ptr (cmd), arg); + retval = ld->ops->ioctl (tty, (unsigned long )compat_ptr (cmd), + arg);tty_ldisc_deref (ld);return retval;
include/linux/tty_ldisc.h +7 -8
@@ -45,8 +45,7 @@ struct tty_struct;* some processing on the characters first. If this function is * not defined, the user will receive an EIO error. * -* int (*ioctl)(struct tty_struct * tty, struct file * file, -* unsigned int cmd, unsigned long arg); +* int (*ioctl)(struct tty_struct *tty, unsigned int cmd, unsigned long arg); * * This function is called when the user requests an ioctl which * is not handled by the tty layer or the low-level tty driver.
@@ -56,8 +55,8 @@ struct tty_struct;* low-level driver can "grab" an ioctl request before the line * discpline has a chance to see it. * -* int (*compat_ioctl)(struct tty_struct * tty, struct file * file, -* unsigned int cmd, unsigned long arg); +* int (*compat_ioctl)(struct tty_struct *tty, unsigned int cmd, +* unsigned long arg); * * Process ioctl calls from 32-bit process on 64-bit system *
@@ -192,10 +191,10 @@ struct tty_ldisc_ops { void **cookie, unsigned long offset);ssize_t (*write)(struct tty_struct *tty,struct file *file,const unsigned char *buf,size_t nr); -int (*ioctl)(struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg); -int (*compat_ioctl)(struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg); +int (*ioctl)(struct tty_struct *tty,unsigned int cmd, +unsigned long arg); +int (*compat_ioctl)(struct tty_struct *tty,unsigned int cmd, +unsigned long arg);void (*set_termios)(struct tty_struct *tty,struct ktermios *old);__poll_t (*poll)(struct tty_struct *,struct file *,struct poll_table_struct *);
net/nfc/nci/uart.c +2 -3
@@ -329,14 +329,13 @@ static void nci_uart_tty_receive(struct tty_struct *tty, const u8 *data,* Arguments: * * tty pointer to tty instance data -* file pointer to open file object for device * cmd IOCTL command code * arg argument for IOCTL call (cmd dependent) * * Return Value: Command dependent */ -static int nci_uart_tty_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +static int nci_uart_tty_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg) {struct nci_uart *nu = (void *)tty->disc_data;int err =0 ;
Signature · 1 line
2.33.0
Re: [PATCH 07/16] tty: remove file from tty_ldisc_ops::ioctl and compat_ioctl
Quoted 15 lines · Jiri Slaby
After the previous patches, noone needs 'file' parameter in neither ioctl hook from
tty_ldisc_ops. So remove 'file' from both of them.Signed-off-by Jiri Slaby <[email protected]>Cc Marcel Holtmann <[email protected]>Cc Johan Hedberg <[email protected]>Cc Luiz Augusto von Dentz <[email protected]>Cc Dmitry Torokhov <[email protected]>Cc Wolfgang Grandegger <[email protected]>Cc Marc Kleine-Budde <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Andreas Koensgen <[email protected]>Cc Paul Mackerras <[email protected]>Cc Krzysztof Kozlowski <[email protected]>
Quoted 17 lines
--- drivers/bluetooth/hci_ldisc.c | 5 ++--- drivers/input/serio/serport.c | 5 ++--- drivers/net/can/slcan.c | 4 ++-- drivers/net/hamradio/6pack.c | 4 ++-- drivers/net/hamradio/mkiss.c | 4 ++-- drivers/net/ppp/ppp_async.c | 3 +-- drivers/net/ppp/ppp_synctty.c | 3 +-- drivers/net/slip/slip.c | 4 ++-- drivers/tty/n_gsm.c | 4 ++-- drivers/tty/n_hdlc.c | 5 ++--- drivers/tty/n_tty.c | 4 ++-- drivers/tty/tty_io.c | 8 ++++---- include/linux/tty_ldisc.h | 15 +++++++-------- net/nfc/nci/uart.c | 5 ++--- 14 files changed, 33 insertions(+), 40 deletions(-)
For NFC:
Best regards,
Krzysztof
Marc Kleine-Budde
maintainerRe: [PATCH 07/16] tty: remove file from tty_ldisc_ops::ioctl and compat_ioctl
In reply to Jiri SlabyQuoted 3 lines · Jiri Slaby
After the previous patches, noone needs 'file' parameter in neither ioctl hook from
tty_ldisc_ops. So remove 'file' from both of them.
[...]
Quoted 5 lines
drivers/net/can/slcan.c +0
-0
drivers/net/can/slcan.c static void slcan_hangup(struct tty_struct *tty) · line 677
Quoted 10 lines
drivers/net/can/slcan.c +2
-2@@ -670,8 +670,8 @@ static void slcan_hangup(struct tty_struct *tty) }/* Perform I/O control on an active SLCAN channel. */ -static int slcan_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +static int slcan_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg) {struct slcan *sl = (struct slcan *) tty->disc_data;unsigned int tmp;
nitpick:
Checkpatch complains about this:
| CHECK: Alignment should match open parenthesis | #674: FILE: drivers/net/can/slcan.c:674: | +static int slcan_ioctl(struct tty_struct *tty, unsigned int cmd, | + unsigned long arg)
Same for other hunks in this file.
regards,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Re: [PATCH 07/16] tty: remove file from tty_ldisc_ops::ioctl and compat_ioctl
In reply to Jiri SlabyHi Jiri,
drivers/input/serio/serport.c static void serport_set_type(struct tty_struct *tty, unsigned long type) · line 211
Quoted 12 lines · Jiri Slaby
drivers/input/serio/serport.c +2
-2@@ -207,8 +207,8 @@ static void serport_set_type(struct tty_struct *tty, unsigned long type)* serport_ldisc_ioctl() allows to set the port protocol, and device ID */ -static int serport_ldisc_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +static int serport_ldisc_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg)
Can we please keep arguments aligned as they were? Otherwise
Thanks.
Signature · 1 line
Dmitry
Jiri Slaby
maintainerRe: [PATCH 07/16] tty: remove file from tty_ldisc_ops::ioctl and compat_ioctl
Quoted 11 lines · Dmitry Torokhov
Hi Jiri,
Quoted 8 lines · Jiri Slaby
drivers/input/serio/serport.c +0
-0@@ -207,8 +207,8 @@ static void serport_set_type(struct tty_struct *tty, unsigned long type)* serport_ldisc_ioctl() allows to set the port protocol, and device ID */
Quoted 6 lines
drivers/input/serio/serport.c static void serport_set_type(struct tty_struct *tty, unsigned long type) · line 211
Quoted 4 lines
drivers/input/serio/serport.c +2
-2-static int serport_ldisc_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +static int serport_ldisc_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg)Can we please keep arguments aligned as they were? Otherwise
Fixed, thanks. Likely, I will send a follow-up -- depending if Greg drops or keeps these in the tree.
Signature · 2 lines
js suse labs
Greg KH
maintainerRe: [PATCH 07/16] tty: remove file from tty_ldisc_ops::ioctl and compat_ioctl
Quoted 18 lines · Jiri Slaby
Quoted 16 lines · Dmitry Torokhov
Hi Jiri,
drivers/input/serio/serport.c static void serport_set_type(struct tty_struct *tty, unsigned long type) · line 210
Quoted 11 lines · Jiri Slaby
drivers/input/serio/serport.c +2
-2@@ -207,8 +207,8 @@ static void serport_set_type(struct tty_struct *tty, unsigned long type)* serport_ldisc_ioctl() allows to set the port protocol, and device ID */ -static int serport_ldisc_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +static int serport_ldisc_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg)Can we please keep arguments aligned as they were? Otherwise
Quoted 2 lines
Fixed, thanks. Likely, I will send a follow-up -- depending if Greg drops or keeps these in the tree.
Up to you. I can drop them all now if you want to resend a v2 with all of the aggregate acks, or you can send a follow-up set on top of these.
Your choice.
thanks,
greg k-h
Jiri Slaby
maintainerRe: [PATCH 07/16] tty: remove file from tty_ldisc_ops::ioctl and compat_ioctl
Quoted 19 lines · Greg KH
Quoted 18 lines · Jiri Slaby
Quoted 16 lines · Dmitry Torokhov
Hi Jiri,
drivers/input/serio/serport.c static void serport_set_type(struct tty_struct *tty, unsigned long type) · line 210
Quoted 11 lines · Jiri Slaby
drivers/input/serio/serport.c +2
-2@@ -207,8 +207,8 @@ static void serport_set_type(struct tty_struct *tty, unsigned long type)* serport_ldisc_ioctl() allows to set the port protocol, and device ID */ -static int serport_ldisc_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +static int serport_ldisc_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg)Can we please keep arguments aligned as they were? Otherwise
Quoted 5 lines
Quoted 2 lines
Fixed, thanks. Likely, I will send a follow-up -- depending if Greg drops or keeps these in the tree.
Up to you. I can drop them all now if you want to resend a v2 with all of the aggregate acks, or you can send a follow-up set on top of these.
What about if you keep everything up to (and incl.)
tty: remove file from n_tty_ioctl_helper
(i.e. the patch 06/16, the one before this one)? If that works for you, I will send v2 of the rest w/ collected acks. If it doesn't, I prefer sending a complete v2 (incl. collected acks).
thanks,
Signature · 1 line
js
Greg KH
maintainerRe: [PATCH 07/16] tty: remove file from tty_ldisc_ops::ioctl and compat_ioctl
Quoted 23 lines · Jiri Slaby
Quoted 22 lines · Greg KH
Quoted 20 lines · Jiri Slaby
Quoted 16 lines · Dmitry Torokhov
Hi Jiri,
drivers/input/serio/serport.c static void serport_set_type(struct tty_struct *tty, unsigned long type) · line 210
Quoted 11 lines · Jiri Slaby
drivers/input/serio/serport.c +2
-2@@ -207,8 +207,8 @@ static void serport_set_type(struct tty_struct *tty, unsigned long type)* serport_ldisc_ioctl() allows to set the port protocol, and device ID */ -static int serport_ldisc_ioctl (struct tty_struct *tty,struct file *file, -unsigned int cmd,unsigned long arg) +static int serport_ldisc_ioctl (struct tty_struct *tty,unsigned int cmd, +unsigned long arg)Can we please keep arguments aligned as they were? Otherwise
Fixed, thanks. Likely, I will send a follow-up -- depending if Greg drops or keeps these in the tree.
Quoted 8 lines
Quoted 2 lines
Up to you. I can drop them all now if you want to resend a v2 with all of the aggregate acks, or you can send a follow-up set on top of these.
What about if you keep everything up to (and incl.)
tty: remove file fromn_tty_ioctl_helper
(i.e. the patch 06/16, the one before this one)? If that works for you, I will send v2 of the rest w/ collected acks. If it doesn't, I prefer sending a complete v2 (incl. collected acks).
Ok, I have kept everything up to and including patch 06 of this series and pushed that out now.
Feel free to rebase on my tty-next branch and resend the remaining changes.
thanks,
greg k-h
PATCH 8/16 tty: drivers/tty/serial/, stop using tty_flip_buffer_push
In reply to Jiri SlabySince commit a9c3f68f3cd8d (tty: Fix low_latency BUG) in 2014, tty_flip_buffer_push() is only a wrapper to tty_schedule_flip(). We are going to remove the former, so call the latter directly in drivers/tty/serial/.
--- drivers/tty/serial/21285.c | 2 +- drivers/tty/serial/8250/8250_aspeed_vuart.c | 2 +- drivers/tty/serial/8250/8250_bcm7271.c | 2 +- drivers/tty/serial/8250/8250_dma.c | 2 +- drivers/tty/serial/8250/8250_mtk.c | 2 +- drivers/tty/serial/8250/8250_omap.c | 2 +- drivers/tty/serial/8250/8250_port.c | 2 +- drivers/tty/serial/altera_jtaguart.c | 2 +- drivers/tty/serial/altera_uart.c | 2 +- drivers/tty/serial/amba-pl010.c | 2 +- drivers/tty/serial/amba-pl011.c | 6 +++--- drivers/tty/serial/apbuart.c | 2 +- drivers/tty/serial/ar933x_uart.c | 2 +- drivers/tty/serial/arc_uart.c | 2 +- drivers/tty/serial/atmel_serial.c | 6 +++--- drivers/tty/serial/bcm63xx_uart.c | 2 +- drivers/tty/serial/clps711x.c | 2 +- drivers/tty/serial/cpm_uart/cpm_uart_core.c | 2 +- drivers/tty/serial/digicolor-usart.c | 2 +- drivers/tty/serial/dz.c | 2 +- drivers/tty/serial/fsl_linflexuart.c | 2 +- drivers/tty/serial/fsl_lpuart.c | 6 +++--- drivers/tty/serial/icom.c | 2 +- drivers/tty/serial/imx.c | 6 +++--- drivers/tty/serial/ip22zilog.c | 4 ++-- drivers/tty/serial/jsm/jsm_tty.c | 2 +- drivers/tty/serial/kgdb_nmi.c | 2 +- drivers/tty/serial/lantiq.c | 4 ++-- drivers/tty/serial/liteuart.c | 2 +- drivers/tty/serial/lpc32xx_hs.c | 2 +- drivers/tty/serial/max3100.c | 4 ++-- drivers/tty/serial/max310x.c | 2 +- drivers/tty/serial/mcf.c | 2 +- drivers/tty/serial/men_z135_uart.c | 2 +- drivers/tty/serial/meson_uart.c | 2 +- drivers/tty/serial/milbeaut_usio.c | 2 +- drivers/tty/serial/mpc52xx_uart.c | 2 +- drivers/tty/serial/mps2-uart.c | 4 ++-- drivers/tty/serial/msm_serial.c | 6 +++--- drivers/tty/serial/mux.c | 2 +- drivers/tty/serial/mvebu-uart.c | 2 +- drivers/tty/serial/mxs-auart.c | 4 ++-- drivers/tty/serial/omap-serial.c | 2 +- drivers/tty/serial/owl-uart.c | 2 +- drivers/tty/serial/pch_uart.c | 4 ++-- drivers/tty/serial/pic32_uart.c | 2 +- drivers/tty/serial/pmac_zilog.c | 4 ++-- drivers/tty/serial/pxa.c | 2 +- drivers/tty/serial/qcom_geni_serial.c | 4 ++-- drivers/tty/serial/rda-uart.c | 2 +- drivers/tty/serial/rp2.c | 2 +- drivers/tty/serial/sa1100.c | 2 +- drivers/tty/serial/samsung_tty.c | 6 +++--- drivers/tty/serial/sb1250-duart.c | 2 +- drivers/tty/serial/sc16is7xx.c | 2 +- drivers/tty/serial/sccnxp.c | 2 +- drivers/tty/serial/serial-tegra.c | 2 +- drivers/tty/serial/serial_core.c | 2 +- drivers/tty/serial/serial_txx9.c | 2 +- drivers/tty/serial/sh-sci.c | 12 ++++++------ drivers/tty/serial/sifive.c | 2 +- drivers/tty/serial/sprd_serial.c | 4 ++-- drivers/tty/serial/st-asc.c | 2 +- drivers/tty/serial/stm32-usart.c | 2 +- drivers/tty/serial/sunhv.c | 2 +- drivers/tty/serial/sunsab.c | 2 +- drivers/tty/serial/sunsu.c | 2 +- drivers/tty/serial/sunzilog.c | 4 ++-- drivers/tty/serial/tegra-tcu.c | 2 +- drivers/tty/serial/timbuart.c | 2 +- drivers/tty/serial/uartlite.c | 2 +- drivers/tty/serial/ucc_uart.c | 2 +- drivers/tty/serial/vr41xx_siu.c | 2 +- drivers/tty/serial/vt8500_serial.c | 2 +- drivers/tty/serial/xilinx_uartps.c | 2 +- drivers/tty/serial/zs.c | 2 +- 76 files changed, 103 insertions(+), 103 deletions(-)
drivers/tty/serial/21285.c +1 -1
@@ -146,7 +146,7 @@ static irqreturn_t serial21285_rx_chars(int irq, void *dev_id) status = *CSR_UARTFLG ; } -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port);return IRQ_HANDLED ; }
drivers/tty/serial/8250/8250_aspeed_vuart.c +1 -1
@@ -363,7 +363,7 @@ static int aspeed_vuart_handle_irq(struct uart_port *port)break ; }while (lsr & (UART_LSR_DR |UART_LSR_BI )); -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); } }
drivers/tty/serial/8250/8250_bcm7271.c +1 -1
@@ -493,7 +493,7 @@ static void brcmuart_rx_buf_done_isr(struct uart_port *up, int index)else priv->dma_rx_full_buf++; -tty_flip_buffer_push (tty_port); +tty_schedule_flip (tty_port); }static void brcmuart_rx_isr (struct uart_port *up,u32 rx_isr)
drivers/tty/serial/8250/8250_dma.c +1 -1
@@ -56,7 +56,7 @@ static void __dma_rx_complete(void *param)tty_insert_flip_string (tty_port, dma->rx_buf, count); p->port.icount.rx += count; -tty_flip_buffer_push (tty_port); +tty_schedule_flip (tty_port); }int serial8250_tx_dma (struct uart_8250_port *p)
drivers/tty/serial/8250/8250_mtk.c +1 -1
@@ -120,7 +120,7 @@ static void mtk8250_dma_rx_complete(void *param) up->port.icount.rx += copied; -tty_flip_buffer_push (tty_port); +tty_schedule_flip (tty_port);mtk8250_rx_dma (up);
drivers/tty/serial/8250/8250_omap.c +1 -1
@@ -861,7 +861,7 @@ static void __dma_rx_do_complete(struct uart_8250_port *p) p->port.icount.buf_overrun += count - ret; out: -tty_flip_buffer_push (tty_port); +tty_schedule_flip (tty_port); }static void __dma_rx_complete (void *param)
drivers/tty/serial/8250/8250_port.c +1 -1
@@ -1787,7 +1787,7 @@ unsigned char serial8250_rx_chars(struct uart_8250_port *up, unsigned char lsr) lsr =serial_in (up,UART_LSR ); }while (lsr & (UART_LSR_DR |UART_LSR_BI )); -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port);return lsr; }EXPORT_SYMBOL_GPL (serial8250_rx_chars);
drivers/tty/serial/altera_jtaguart.c +1 -1
@@ -131,7 +131,7 @@ static void altera_jtaguart_rx_chars(struct altera_jtaguart *pp)uart_insert_char (port,0 ,0 , ch, flag); } -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); }static void altera_jtaguart_tx_chars (struct altera_jtaguart *pp)
drivers/tty/serial/altera_uart.c +1 -1
@@ -243,7 +243,7 @@ static void altera_uart_rx_chars(struct altera_uart *pp) flag); } -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); }static void altera_uart_tx_chars (struct altera_uart *pp)
drivers/tty/serial/amba-pl010.c +1 -1
@@ -159,7 +159,7 @@ static void pl010_rx_chars(struct uart_amba_port *uap) ignore_char: status =readb (uap->port.membase + UART01x_FR); } -tty_flip_buffer_push (&uap->port.state->port); +tty_schedule_flip (&uap->port.state->port); }static void pl010_tx_chars (struct uart_amba_port *uap)
drivers/tty/serial/amba-pl011.c +3 -3
@@ -944,7 +944,7 @@ static void pl011_dma_rx_chars(struct uart_amba_port *uap,dev_vdbg (uap->port.dev,"Took %d chars from DMA buffer and %d chars from the FIFO\n" , dma_count, fifotaken); -tty_flip_buffer_push (port); +tty_schedule_flip (port); }static void pl011_dma_rx_irq (struct uart_amba_port *uap)
@@ -1084,7 +1084,7 @@ static void pl011_dma_rx_poll(struct timer_list *t) dmarx->last_residue = state.residue; dmarx->last_jiffies = jiffies; } -tty_flip_buffer_push (port); +tty_schedule_flip (port);/* * If no data is received in poll_timeout, the driver will fall back
@@ -1383,7 +1383,7 @@ __acquires(&uap->port.lock)pl011_fifo_to_tty (uap);spin_unlock (&uap->port.lock); -tty_flip_buffer_push (&uap->port.state->port); +tty_schedule_flip (&uap->port.state->port);/* * If we were temporarily out of DMA mode for a while, * attempt to switch back to DMA mode again.
drivers/tty/serial/apbuart.c +1 -1
@@ -117,7 +117,7 @@ static void apbuart_rx_chars(struct uart_port *port) status =UART_GET_STATUS (port); } -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); }static void apbuart_tx_chars (struct uart_port *port)
drivers/tty/serial/ar933x_uart.c +1 -1
@@ -385,7 +385,7 @@ static void ar933x_uart_rx_chars(struct ar933x_uart_port *up)tty_insert_flip_char (port, ch,TTY_NORMAL ); }while (max_count-- >0 ); -tty_flip_buffer_push (port); +tty_schedule_flip (port); }static void ar933x_uart_tx_chars (struct ar933x_uart_port *up)
drivers/tty/serial/arc_uart.c +1 -1
@@ -236,7 +236,7 @@ static void arc_serial_rx_chars(struct uart_port *port, unsigned int status)if (!(uart_handle_sysrq_char (port, ch)))uart_insert_char (port, status,RXOERR , ch, flg); -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); }while (!((status =UART_GET_STATUS (port)) &RXEMPTY )); }
drivers/tty/serial/atmel_serial.c +3 -3
@@ -1178,7 +1178,7 @@ static void atmel_rx_from_dma(struct uart_port *port)1 , DMA_FROM_DEVICE); -tty_flip_buffer_push (tport); +tty_schedule_flip (tport);atmel_uart_writel (port,ATMEL_US_IER ,ATMEL_US_TIMEOUT ); }
@@ -1570,7 +1570,7 @@ static void atmel_rx_from_ring(struct uart_port *port)uart_insert_char (port, status,ATMEL_US_OVRE , c.ch, flg); } -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); }static void atmel_release_rx_pdc (struct uart_port *port)
@@ -1655,7 +1655,7 @@ static void atmel_rx_from_pdc(struct uart_port *port) } }while (head >= pdc->dma_size); -tty_flip_buffer_push (tport); +tty_schedule_flip (tport);atmel_uart_writel (port,ATMEL_US_IER ,ATMEL_US_ENDRX |ATMEL_US_TIMEOUT );
drivers/tty/serial/bcm63xx_uart.c +1 -1
@@ -294,7 +294,7 @@ static void bcm_uart_do_rx(struct uart_port *port) }while (--max_count); -tty_flip_buffer_push (tty_port); +tty_schedule_flip (tty_port); }/*
drivers/tty/serial/clps711x.c +1 -1
@@ -136,7 +136,7 @@ static irqreturn_t uart_clps711x_int_rx(int irq, void *dev_id)uart_insert_char (port, status,UARTDR_OVERR , ch, flg); } -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port);return IRQ_HANDLED ; }
drivers/tty/serial/cpm_uart/cpm_uart_core.c +1 -1
@@ -305,7 +305,7 @@ static void cpm_uart_int_rx(struct uart_port *port) pinfo->rx_cur = bdp;/* activate BH processing */ -tty_flip_buffer_push (tport); +tty_schedule_flip (tport);return ;
drivers/tty/serial/digicolor-usart.c +1 -1
@@ -175,7 +175,7 @@ static void digicolor_uart_rx(struct uart_port *port)spin_unlock_irqrestore (&port->lock, flags); -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); }static void digicolor_uart_tx (struct uart_port *port)
drivers/tty/serial/dz.c +1 -1
@@ -239,7 +239,7 @@ static inline void dz_receive_chars(struct dz_mux *mux) }for (i =0 ; i <DZ_NB_PORT ; i++)if (lines_rx[i]) -tty_flip_buffer_push (&mux->dport[i].port.state->port); +tty_schedule_flip (&mux->dport[i].port.state->port); }/*
drivers/tty/serial/fsl_linflexuart.c +1 -1
@@ -281,7 +281,7 @@ static irqreturn_t linflex_rxint(int irq, void *dev_id)spin_unlock_irqrestore (&sport->lock, flags); -tty_flip_buffer_push (port); +tty_schedule_flip (port);return IRQ_HANDLED ; }
drivers/tty/serial/fsl_lpuart.c +3 -3
@@ -941,7 +941,7 @@ static void lpuart_rxint(struct lpuart_port *sport)uart_unlock_and_check_sysrq (&sport->port); -tty_flip_buffer_push (port); +tty_schedule_flip (port); }static void lpuart32_txint (struct lpuart_port *sport)
@@ -1023,7 +1023,7 @@ static void lpuart32_rxint(struct lpuart_port *sport) out:uart_unlock_and_check_sysrq (&sport->port); -tty_flip_buffer_push (port); +tty_schedule_flip (port); }static irqreturn_t lpuart_int (int irq,void *dev_id)
@@ -1233,7 +1233,7 @@ static void lpuart_copy_rx_to_tty(struct lpuart_port *sport)spin_unlock_irqrestore (&sport->port.lock, flags); -tty_flip_buffer_push (port); +tty_schedule_flip (port);mod_timer (&sport->lpuart_timer, jiffies + sport->dma_rx_timeout); }
drivers/tty/serial/icom.c +1 -1
@@ -829,7 +829,7 @@ static void recv_interrupt(u16 port_int_reg, struct icom_port *icom_port) } icom_port->next_rcv = rcv_buff; -tty_flip_buffer_push (port); +tty_schedule_flip (port); } static void process_interrupt(u16 port_int_reg,
drivers/tty/serial/imx.c +3 -3
@@ -844,7 +844,7 @@ static irqreturn_t __imx_uart_rxint(int irq, void *dev_id) } out: -tty_flip_buffer_push (port); +tty_schedule_flip (port);return IRQ_HANDLED ; }
@@ -1180,7 +1180,7 @@ static void imx_uart_dma_rx_callback(void *data) }if (w_bytes) { -tty_flip_buffer_push (port); +tty_schedule_flip (port);dev_dbg (sport->port.dev,"We get %d bytes.\n" , w_bytes); } }
@@ -1236,7 +1236,7 @@ static void imx_uart_clear_rx_errors(struct imx_port *sport)uart_handle_break (&sport->port);if (tty_insert_flip_char (port,0 ,TTY_BREAK ) ==0 ) sport->port.icount.buf_overrun++; -tty_flip_buffer_push (port); +tty_schedule_flip (port); }else {if (usr1 &USR1_FRAMERR ) { sport->port.icount.frame++;
drivers/tty/serial/ip22zilog.c +2 -2
@@ -452,7 +452,7 @@ static irqreturn_t ip22zilog_interrupt(int irq, void *dev_id)spin_unlock (&up->port.lock);if (push) -tty_flip_buffer_push (&up->port.state->port); +tty_schedule_flip (&up->port.state->port);/* Channel B */ up = up->next;
@@ -475,7 +475,7 @@ static irqreturn_t ip22zilog_interrupt(int irq, void *dev_id)spin_unlock (&up->port.lock);if (push) -tty_flip_buffer_push (&up->port.state->port); +tty_schedule_flip (&up->port.state->port); up = up->next; }
drivers/tty/serial/jsm/jsm_tty.c +1 -1
@@ -638,7 +638,7 @@ void jsm_input(struct jsm_channel *ch)spin_unlock_irqrestore (&ch->ch_lock, lock_flags);/* Tell the tty layer its okay to "eat" the data now */ -tty_flip_buffer_push (port); +tty_schedule_flip (port);jsm_dbg (IOCTL , &ch->ch_bd->pci_dev,"finish\n" ); }
drivers/tty/serial/kgdb_nmi.c +1 -1
@@ -202,7 +202,7 @@ static void kgdb_nmi_tty_receiver(struct timer_list *t)while (kfifo_out (&priv->fifo, &ch,1 ))tty_insert_flip_char (&priv->port, ch,TTY_NORMAL ); -tty_flip_buffer_push (&priv->port); +tty_schedule_flip (&priv->port); }static int kgdb_nmi_tty_activate (struct tty_port *port,struct tty_struct *tty)
drivers/tty/serial/lantiq.c +2 -2
@@ -172,7 +172,7 @@ lqasc_rx_chars(struct uart_port *port) ch =readb (port->membase +LTQ_ASC_RBUF ); rsr = (__raw_readl (port->membase +LTQ_ASC_STATE ) &ASCSTATE_ANY ) |UART_DUMMY_UER_RX ; -tty_flip_buffer_push (tport); +tty_schedule_flip (tport); port->icount.rx++;/*
@@ -216,7 +216,7 @@ lqasc_rx_chars(struct uart_port *port) }if (ch !=0 ) -tty_flip_buffer_push (tport); +tty_schedule_flip (tport);return 0 ; }
drivers/tty/serial/liteuart.c +1 -1
@@ -87,7 +87,7 @@ static void liteuart_timer(struct timer_list *t)if (!(uart_handle_sysrq_char (port, ch)))uart_insert_char (port, status,0 , ch, flg); -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); }mod_timer (&uart->timer, jiffies +uart_poll_timeout (port));
drivers/tty/serial/lpc32xx_hs.c +1 -1
@@ -273,7 +273,7 @@ static void __serial_lpc32xx_rx(struct uart_port *port) tmp =readl (LPC32XX_HSUART_FIFO (port->membase)); } -tty_flip_buffer_push (tport); +tty_schedule_flip (tport); }static void __serial_lpc32xx_tx (struct uart_port *port)
drivers/tty/serial/max3100.c +2 -2
@@ -305,7 +305,7 @@ static void max3100_work(struct work_struct *w) }if (rxchars >16 ) { -tty_flip_buffer_push (&s->port.state->port); +tty_schedule_flip (&s->port.state->port); rxchars =0 ; }if (uart_circ_chars_pending (xmit) <WAKEUP_CHARS )
@@ -318,7 +318,7 @@ static void max3100_work(struct work_struct *w) !uart_tx_stopped(&s->port))));if (rxchars >0 ) -tty_flip_buffer_push (&s->port.state->port); +tty_schedule_flip (&s->port.state->port); }static irqreturn_t max3100_irq (int irqno,void *dev_id)
drivers/tty/serial/max310x.c +1 -1
@@ -742,7 +742,7 @@ static void max310x_handle_rx(struct uart_port *port, unsigned int rxlen) } } -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); }static void max310x_handle_tx (struct uart_port *port)
drivers/tty/serial/mcf.c +1 -1
@@ -319,7 +319,7 @@ static void mcf_rx_chars(struct mcf_uart *pp)uart_insert_char (port, status,MCFUART_USR_RXOVERRUN , ch, flag); } -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); }/****************************************************************************/
drivers/tty/serial/men_z135_uart.c +1 -1
@@ -281,7 +281,7 @@ static void men_z135_handle_rx(struct men_z135_port *uart) port->icount.rx += copied; -tty_flip_buffer_push (tport); +tty_schedule_flip (tport); }
drivers/tty/serial/meson_uart.c +1 -1
@@ -226,7 +226,7 @@ static void meson_receive_chars(struct uart_port *port) }while (!(readl (port->membase +AML_UART_STATUS ) &AML_UART_RX_EMPTY )); -tty_flip_buffer_push (tport); +tty_schedule_flip (tport); }static irqreturn_t meson_uart_interrupt (int irq,void *dev_id)
drivers/tty/serial/milbeaut_usio.c +1 -1
@@ -202,7 +202,7 @@ static void mlb_usio_rx_chars(struct uart_port *port) port->membase + MLB_USIO_REG_FCR); } -tty_flip_buffer_push (ttyport); +tty_schedule_flip (ttyport); }static irqreturn_t mlb_usio_rx_irq (int irq,void *dev_id)
drivers/tty/serial/mpc52xx_uart.c +1 -1
@@ -1421,7 +1421,7 @@ mpc52xx_uart_int_rx_chars(struct uart_port *port) } } -tty_flip_buffer_push (tport); +tty_schedule_flip (tport);return psc_ops->raw_rx_rdy (port); }
drivers/tty/serial/mps2-uart.c +2 -2
@@ -196,7 +196,7 @@ static void mps2_uart_rx_chars(struct uart_port *port)tty_insert_flip_char (&port->state->port, rxdata,TTY_NORMAL ); } -tty_flip_buffer_push (tport); +tty_schedule_flip (tport); }static irqreturn_t mps2_uart_rxirq (int irq,void *data)
@@ -249,7 +249,7 @@ static irqreturn_t mps2_uart_oerrirq(int irq, void *data)mps2_uart_write8 (port, UARTn_INT_RX_OVERRUN, UARTn_INT); port->icount.overrun++;tty_insert_flip_char (tport,0 ,TTY_OVERRUN ); -tty_flip_buffer_push (tport); +tty_schedule_flip (tport); handled =IRQ_HANDLED ; }
drivers/tty/serial/msm_serial.c +3 -3
@@ -588,7 +588,7 @@ static void msm_complete_rx_dma(void *args)spin_unlock_irqrestore (&port->lock, flags);if (count) -tty_flip_buffer_push (tport); +tty_schedule_flip (tport); }static void msm_start_rx_dma (struct msm_port *msm_port)
@@ -757,7 +757,7 @@ static void msm_handle_rx_dm(struct uart_port *port, unsigned int misr) count -= r_count; } -tty_flip_buffer_push (tport); +tty_schedule_flip (tport);if (misr & (UART_IMR_RXSTALE ))msm_write (port,UART_CR_CMD_RESET_STALE_INT ,UART_CR );
@@ -817,7 +817,7 @@ static void msm_handle_rx(struct uart_port *port)tty_insert_flip_char (tport, c, flag); } -tty_flip_buffer_push (tport); +tty_schedule_flip (tport); }static void msm_handle_tx_pio (struct uart_port *port,unsigned int tx_count)
drivers/tty/serial/mux.c +1 -1
@@ -252,7 +252,7 @@ static void mux_read(struct uart_port *port) }if (start_count != port->icount.rx) -tty_flip_buffer_push (tport); +tty_schedule_flip (tport); }/**
drivers/tty/serial/mvebu-uart.c +1 -1
@@ -291,7 +291,7 @@ static void mvebu_uart_rx_chars(struct uart_port *port, unsigned int status) status =readl (port->membase +UART_STAT ); }while (status & (STAT_RX_RDY (port) |STAT_BRK_DET )); -tty_flip_buffer_push (tport); +tty_schedule_flip (tport); }static void mvebu_uart_tx_chars (struct uart_port *port,unsigned int status)
drivers/tty/serial/mxs-auart.c +2 -2
@@ -687,7 +687,7 @@ static void mxs_auart_rx_chars(struct mxs_auart_port *s) }mxs_write (stat, s,REG_STAT ); -tty_flip_buffer_push (&s->port.state->port); +tty_schedule_flip (&s->port.state->port); }static int mxs_auart_request_port (struct uart_port *u)
@@ -848,7 +848,7 @@ static void dma_rx_callback(void *arg)tty_insert_flip_string (port, s->rx_dma_buf, count);mxs_write (stat, s,REG_STAT ); -tty_flip_buffer_push (port); +tty_schedule_flip (port);/* start the next DMA for RX. */ mxs_auart_dma_prep_rx (s);
drivers/tty/serial/omap-serial.c +1 -1
@@ -592,7 +592,7 @@ static irqreturn_t serial_omap_irq(int irq, void *dev_id)spin_unlock (&up->port.lock); -tty_flip_buffer_push (&up->port.state->port); +tty_schedule_flip (&up->port.state->port); up->port_activity = jiffies;
drivers/tty/serial/owl-uart.c +1 -1
@@ -247,7 +247,7 @@ static void owl_uart_receive_chars(struct uart_port *port) stat =owl_uart_read (port,OWL_UART_STAT ); } -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); }static irqreturn_t owl_uart_irq (int irq,void *dev_id)
drivers/tty/serial/pch_uart.c +2 -2
@@ -619,7 +619,7 @@ static int push_rx(struct eg20t_port *priv, const unsigned char *buf,struct tty_port *tport = &port->state->port;tty_insert_flip_string (tport, buf, size); -tty_flip_buffer_push (tport); +tty_schedule_flip (tport);return 0 ; }
@@ -757,7 +757,7 @@ static void pch_dma_rx_complete(void *arg)dma_sync_sg_for_cpu (port->dev, &priv->sg_rx,1 ,DMA_FROM_DEVICE ); count =dma_push_rx (priv, priv->trigger_level);if (count) -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port);async_tx_ack (priv->desc_rx);pch_uart_hal_enable_interrupt (priv,PCH_UART_HAL_RX_INT |PCH_UART_HAL_RX_ERR_INT );
drivers/tty/serial/pic32_uart.c +1 -1
@@ -268,7 +268,7 @@ static void pic32_uart_do_rx(struct uart_port *port)spin_unlock (&port->lock); -tty_flip_buffer_push (tty); +tty_schedule_flip (tty); }/* fill tx fifo with chars to send, stop when fifo is about to be full
drivers/tty/serial/pmac_zilog.c +2 -2
@@ -469,7 +469,7 @@ static irqreturn_t pmz_interrupt(int irq, void *dev_id) skip_a:spin_unlock (&uap_a->port.lock);if (push) -tty_flip_buffer_push (&uap->port.state->port); +tty_schedule_flip (&uap->port.state->port);if (!uap_b) goto out;
@@ -494,7 +494,7 @@ static irqreturn_t pmz_interrupt(int irq, void *dev_id) skip_b:spin_unlock (&uap_b->port.lock);if (push) -tty_flip_buffer_push (&uap->port.state->port); +tty_schedule_flip (&uap->port.state->port); out:return rc;
drivers/tty/serial/pxa.c +1 -1
@@ -158,7 +158,7 @@ static inline void receive_chars(struct uart_pxa_port *up, int *status) ignore_char: *status =serial_in (up,UART_LSR ); }while ((*status &UART_LSR_DR ) && (max_count-- >0 )); -tty_flip_buffer_push (&up->port.state->port); +tty_schedule_flip (&up->port.state->port);/* work around Errata #20 according to * Intel(R) PXA27x Processor Family
drivers/tty/serial/qcom_geni_serial.c +2 -2
@@ -557,7 +557,7 @@ static int handle_rx_console(struct uart_port *uport, u32 bytes, bool drop) } }if (!drop) -tty_flip_buffer_push (tport); +tty_schedule_flip (tport);return 0 ; }#else
@@ -588,7 +588,7 @@ static int handle_rx_uart(struct uart_port *uport, u32 bytes, bool drop)WARN_ON_ONCE (1 ); } uport->icount.rx += ret; -tty_flip_buffer_push (tport); +tty_schedule_flip (tport);return ret; }
drivers/tty/serial/rda-uart.c +1 -1
@@ -398,7 +398,7 @@ static void rda_uart_receive_chars(struct uart_port *port) status =rda_uart_read (port,RDA_UART_STATUS ); } -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); }static irqreturn_t rda_interrupt (int irq,void *dev_id)
drivers/tty/serial/rp2.c +1 -1
@@ -423,7 +423,7 @@ static void rp2_rx_chars(struct rp2_uart_port *up) up->port.icount.rx++; } -tty_flip_buffer_push (port); +tty_schedule_flip (port); }static void rp2_tx_chars (struct rp2_uart_port *up)
drivers/tty/serial/sa1100.c +1 -1
@@ -223,7 +223,7 @@ sa1100_rx_chars(struct sa1100_port *sport)UTSR0_TO_SM (UART_GET_UTSR0 (sport)); } -tty_flip_buffer_push (&sport->port.state->port); +tty_schedule_flip (&sport->port.state->port); }static void sa1100_tx_chars (struct sa1100_port *sport)
drivers/tty/serial/samsung_tty.c +3 -3
@@ -627,7 +627,7 @@ static void s3c24xx_serial_rx_dma_complete(void *args)s3c24xx_uart_copy_rx_to_tty (ourport, t, received);if (tty) { -tty_flip_buffer_push (t); +tty_schedule_flip (t);tty_kref_put (tty); }
@@ -746,7 +746,7 @@ static irqreturn_t s3c24xx_serial_rx_chars_dma(void *dev_id)s3c24xx_serial_rx_drain_fifo (ourport);if (tty) { -tty_flip_buffer_push (t); +tty_schedule_flip (t);tty_kref_put (tty); }
@@ -842,7 +842,7 @@ static void s3c24xx_serial_rx_drain_fifo(struct s3c24xx_uart_port *ourport) ch, flag); } -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); }static irqreturn_t s3c24xx_serial_rx_chars_pio (void *dev_id)
drivers/tty/serial/sb1250-duart.c +1 -1
@@ -375,7 +375,7 @@ static void sbd_receive_chars(struct sbd_port *sport)uart_insert_char (uport, status,M_DUART_OVRUN_ERR , ch, flag); } -tty_flip_buffer_push (&uport->state->port); +tty_schedule_flip (&uport->state->port); }static void sbd_transmit_chars (struct sbd_port *sport)
drivers/tty/serial/sc16is7xx.c +1 -1
@@ -627,7 +627,7 @@ static void sc16is7xx_handle_rx(struct uart_port *port, unsigned int rxlen, rxlen -= bytes_read; } -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); }static void sc16is7xx_handle_tx (struct uart_port *port)
drivers/tty/serial/sccnxp.c +1 -1
@@ -434,7 +434,7 @@ static void sccnxp_handle_rx(struct uart_port *port)uart_insert_char (port, sr,SR_OVR , ch, flag); } -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); }static void sccnxp_handle_tx (struct uart_port *port)
drivers/tty/serial/serial-tegra.c +1 -1
@@ -702,7 +702,7 @@ static void do_handle_rx_pio(struct tegra_uart_port *tup)tegra_uart_handle_rx_pio (tup, port);if (tty) { -tty_flip_buffer_push (port); +tty_schedule_flip (port);tty_kref_put (tty); } }
drivers/tty/serial/serial_core.c +1 -1
@@ -3109,7 +3109,7 @@ EXPORT_SYMBOL_GPL(uart_handle_cts_change);/** * uart_insert_char - push a char to the uart layer * -* User is responsible to call tty_flip_buffer_push when they are done with +* User is responsible to call tty_schedule_flip when they are done with * insertion. * * @port: corresponding port
drivers/tty/serial/serial_txx9.c +1 -1
@@ -331,7 +331,7 @@ receive_chars(struct uart_txx9_port *up, unsigned int *status) disr =sio_in (up,TXX9_SIDISR ); }while (!(disr &TXX9_SIDISR_UVALID ) && (max_count-- >0 )); -tty_flip_buffer_push (&up->port.state->port); +tty_schedule_flip (&up->port.state->port); *status = disr; }
drivers/tty/serial/sh-sci.c +6 -6
@@ -916,7 +916,7 @@ static void sci_receive_chars(struct uart_port *port)if (copied) {/* Tell the rest of the system the news. New characters! */ -tty_flip_buffer_push (tport); +tty_schedule_flip (tport); }else {/* TTY buffers full; read from RX reg to prevent lockup */ serial_port_in (port, SCxRDR);
@@ -964,7 +964,7 @@ static int sci_handle_errors(struct uart_port *port) }if (copied) -tty_flip_buffer_push (tport); +tty_schedule_flip (tport);return copied; }
@@ -989,7 +989,7 @@ static int sci_handle_fifo_overrun(struct uart_port *port) port->icount.overrun++;tty_insert_flip_char (tport,0 ,TTY_OVERRUN ); -tty_flip_buffer_push (tport); +tty_schedule_flip (tport);dev_dbg (port->dev,"overrun error\n" ); copied++;
@@ -1018,7 +1018,7 @@ static int sci_handle_breaks(struct uart_port *port) }if (copied) -tty_flip_buffer_push (tport); +tty_schedule_flip (tport); copied +=sci_handle_fifo_overrun (port);
@@ -1307,7 +1307,7 @@ static void sci_dma_rx_complete(void *arg)start_hrtimer_us (&s->rx_timer, s->rx_timeout);if (count) -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); desc = dmaengine_prep_slave_sg(s->chan_rx, &s->sg_rx[active], 1, DMA_DEV_TO_MEM,
@@ -1517,7 +1517,7 @@ static enum hrtimer_restart sci_dma_rx_timer_fn(struct hrtimer *t)if (read) { count =sci_dma_rx_push (s, s->rx_buf[active], read);if (count) -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); }if (port->type ==PORT_SCIFA || port->type ==PORT_SCIFB )
drivers/tty/serial/sifive.c +1 -1
@@ -448,7 +448,7 @@ static void __ssp_receive_chars(struct sifive_serial_port *ssp)uart_insert_char (&ssp->port,0 ,0 , ch,TTY_NORMAL ); } -tty_flip_buffer_push (&ssp->port.state->port); +tty_schedule_flip (&ssp->port.state->port); }/**
drivers/tty/serial/sprd_serial.c +2 -2
@@ -392,7 +392,7 @@ static void sprd_uart_dma_rx(struct uart_port *port) port->icount.rx += sp->rx_dma.trans_len;tty_insert_flip_string (tty, sp->rx_buf_tail, sp->rx_dma.trans_len); -tty_flip_buffer_push (tty); +tty_schedule_flip (tty); }static void sprd_uart_dma_irq (struct uart_port *port)
@@ -621,7 +621,7 @@ static inline void sprd_rx(struct uart_port *port)uart_insert_char (port, lsr,SPRD_LSR_OE , ch, flag); } -tty_flip_buffer_push (tty); +tty_schedule_flip (tty); }static inline void sprd_tx (struct uart_port *port)
drivers/tty/serial/st-asc.c +1 -1
@@ -350,7 +350,7 @@ static void asc_receive_chars(struct uart_port *port) }/* Tell the rest of the system the news. New characters! */ -tty_flip_buffer_push (tport); +tty_schedule_flip (tport); }static irqreturn_t asc_interrupt (int irq,void *ptr)
drivers/tty/serial/stm32-usart.c +1 -1
@@ -277,7 +277,7 @@ static void stm32_usart_receive_chars(struct uart_port *port, bool threaded)uart_unlock_and_check_sysrq (port); -tty_flip_buffer_push (tport); +tty_schedule_flip (tport); }static void stm32_usart_tx_dma_complete (void *arg)
drivers/tty/serial/sunhv.c +1 -1
@@ -225,7 +225,7 @@ static irqreturn_t sunhv_interrupt(int irq, void *dev_id)spin_unlock_irqrestore (&port->lock, flags);if (tport) -tty_flip_buffer_push (tport); +tty_schedule_flip (tport);return IRQ_HANDLED ; }
drivers/tty/serial/sunsab.c +1 -1
@@ -334,7 +334,7 @@ static irqreturn_t sunsab_interrupt(int irq, void *dev_id)spin_unlock_irqrestore (&up->port.lock, flags);if (port) -tty_flip_buffer_push (port); +tty_schedule_flip (port);return IRQ_HANDLED ; }
drivers/tty/serial/sunsu.c +1 -1
@@ -466,7 +466,7 @@ static irqreturn_t sunsu_serial_interrupt(int irq, void *dev_id)if (status &UART_LSR_THRE )transmit_chars (up); -tty_flip_buffer_push (&up->port.state->port); +tty_schedule_flip (&up->port.state->port); }while (!(serial_in (up,UART_IIR ) &UART_IIR_NO_INT ));
drivers/tty/serial/sunzilog.c +2 -2
@@ -552,7 +552,7 @@ static irqreturn_t sunzilog_interrupt(int irq, void *dev_id)spin_unlock (&up->port.lock);if (port) -tty_flip_buffer_push (port); +tty_schedule_flip (port);/* Channel B */ up = up->next;
@@ -575,7 +575,7 @@ static irqreturn_t sunzilog_interrupt(int irq, void *dev_id)spin_unlock (&up->port.lock);if (port) -tty_flip_buffer_push (port); +tty_schedule_flip (port); up = up->next; }
drivers/tty/serial/tegra-tcu.c +1 -1
@@ -171,7 +171,7 @@ static void tegra_tcu_receive(struct mbox_client *cl, void *msg)tty_insert_flip_char (port,TCU_MBOX_BYTE_V (value, i),TTY_NORMAL ); -tty_flip_buffer_push (port); +tty_schedule_flip (port); }static int tegra_tcu_probe (struct platform_device *pdev)
drivers/tty/serial/timbuart.c +1 -1
@@ -87,7 +87,7 @@ static void timbuart_rx_chars(struct uart_port *port)tty_insert_flip_char (tport, ch,TTY_NORMAL ); } -tty_flip_buffer_push (tport); +tty_schedule_flip (tport);dev_dbg (port->dev,"%s - total read %d bytes\n" , __func__, port->icount.rx);
drivers/tty/serial/uartlite.c +1 -1
@@ -218,7 +218,7 @@ static irqreturn_t ulite_isr(int irq, void *dev_id)/* work done? */ if (n >1 ) { -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port);return IRQ_HANDLED ; }else {return IRQ_NONE ;
drivers/tty/serial/ucc_uart.c +1 -1
@@ -523,7 +523,7 @@ static void qe_uart_int_rx(struct uart_qe_port *qe_port) qe_port->rx_cur = bdp;/* Activate BH processing */ -tty_flip_buffer_push (tport); +tty_schedule_flip (tport);return ;
drivers/tty/serial/vr41xx_siu.c +1 -1
@@ -346,7 +346,7 @@ static inline void receive_chars(struct uart_port *port, uint8_t *status) lsr =siu_read (port,UART_LSR ); }while ((lsr &UART_LSR_DR ) && (max_count-- >0 )); -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); *status = lsr; }
drivers/tty/serial/vt8500_serial.c +1 -1
@@ -184,7 +184,7 @@ static void handle_rx(struct uart_port *port)tty_insert_flip_char (tport, c, flag); } -tty_flip_buffer_push (tport); +tty_schedule_flip (tport); }static void handle_tx (struct uart_port *port)
drivers/tty/serial/xilinx_uartps.c +1 -1
@@ -302,7 +302,7 @@ static void cdns_uart_handle_rx(void *dev_id, unsigned int isrstatus) isrstatus =0 ; } -tty_flip_buffer_push (&port->state->port); +tty_schedule_flip (&port->state->port); }/**
drivers/tty/serial/zs.c +1 -1
@@ -600,7 +600,7 @@ static void zs_receive_chars(struct zs_port *zport)uart_insert_char (uport, status, Rx_OVR, ch, flag); } -tty_flip_buffer_push (&uport->state->port); +tty_schedule_flip (&uport->state->port); }static void zs_raw_transmit_chars (struct zs_port *zport)
Signature · 1 line
2.33.0
PATCH 9/16 tty: drivers/tty/, stop using tty_flip_buffer_push
Since commit a9c3f68f3cd8d (tty: Fix low_latency BUG) in 2014, tty_flip_buffer_push() is only a wrapper to tty_schedule_flip(). We are going to remove the former, so call the latter directly in the rest of drivers/tty/.
--- drivers/tty/amiserial.c | 2 +- drivers/tty/ehv_bytechan.c | 2 +- drivers/tty/hvc/hvc_console.c | 2 +- drivers/tty/hvc/hvcs.c | 2 +- drivers/tty/hvc/hvsi.c | 6 +++--- drivers/tty/ipwireless/hardware.c | 2 +- drivers/tty/ipwireless/tty.c | 2 +- drivers/tty/mips_ejtag_fdc.c | 2 +- drivers/tty/mxser.c | 2 +- drivers/tty/n_gsm.c | 4 ++-- drivers/tty/nozomi.c | 2 +- drivers/tty/pty.c | 2 +- drivers/tty/synclink_gt.c | 2 +- drivers/tty/vcc.c | 2 +- 14 files changed, 17 insertions(+), 17 deletions(-)
drivers/tty/amiserial.c +1 -1
@@ -256,7 +256,7 @@ static void receive_chars(struct serial_state *info)tty_insert_flip_char (&info->tport, ch, flag);if (oe ==1 )tty_insert_flip_char (&info->tport,0 ,TTY_OVERRUN ); -tty_flip_buffer_push (&info->tport); +tty_schedule_flip (&info->tport); out:return ; }
drivers/tty/ehv_bytechan.c +1 -1
@@ -393,7 +393,7 @@ static irqreturn_t ehv_bc_tty_rx_isr(int irq, void *data) }/* Tell the tty layer that we're done. */ -tty_flip_buffer_push (&bc->port); +tty_schedule_flip (&bc->port);return IRQ_HANDLED ; }
drivers/tty/hvc/hvc_console.c +1 -1
@@ -752,7 +752,7 @@ static int __hvc_poll(struct hvc_struct *hp, bool may_sleep)a minimum for performance. */ timeout =MIN_TIMEOUT ; -tty_flip_buffer_push (&hp->port); +tty_schedule_flip (&hp->port); }tty_kref_put (tty);
drivers/tty/hvc/hvcs.c +1 -1
@@ -582,7 +582,7 @@ static int hvcs_io(struct hvcs_struct *hvcsd)spin_unlock_irqrestore (&hvcsd->lock, flags);/* This is synch -- FIXME :js: it is not! */ if (got) -tty_flip_buffer_push (&hvcsd->port); +tty_schedule_flip (&hvcsd->port);if (!got) {/* Do this _after_ the flip_buffer_push */
drivers/tty/hvc/hvsi.c +3 -3
@@ -454,7 +454,7 @@ static int hvsi_load_chunk(struct hvsi_struct *hp, struct tty_struct *tty,compact_inbuf (hp, packet);if (flip) -tty_flip_buffer_push (&hp->port); +tty_schedule_flip (&hp->port);return 1 ; }
@@ -500,7 +500,7 @@ static irqreturn_t hvsi_interrupt(int irq, void *arg)/* we weren't hung up and we weren't throttled, so we can * deliver the rest now */ hvsi_send_overflow (hp); -tty_flip_buffer_push (&hp->port); +tty_schedule_flip (&hp->port); }spin_unlock_irqrestore (&hp->lock, flags);
@@ -982,7 +982,7 @@ static void hvsi_unthrottle(struct tty_struct *tty)spin_lock_irqsave (&hp->lock, flags);if (hp->n_throttle) {hvsi_send_overflow (hp); -tty_flip_buffer_push (&hp->port); +tty_schedule_flip (&hp->port); }spin_unlock_irqrestore (&hp->lock, flags);
drivers/tty/ipwireless/hardware.c +1 -1
@@ -719,7 +719,7 @@ static void ipw_receive_data_work(struct work_struct *work_rx)/* * Note: ipwireless_network_packet_received must be called in a * process context (i.e. via schedule_work) because the tty -* output code can sleep in the tty_flip_buffer_push call. +* output code can sleep in the tty_schedule_flip call. */ if (packet->protocol ==TL_PROTOCOLID_COM_DATA ) {if (hw->network !=NULL ) {
drivers/tty/ipwireless/tty.c +1 -1
@@ -171,7 +171,7 @@ void ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data, length - work);if (work) -tty_flip_buffer_push (&tty->port); +tty_schedule_flip (&tty->port); } static void ipw_write_packet_sent_callback(void *callback_data,
drivers/tty/mips_ejtag_fdc.c +1 -1
@@ -613,7 +613,7 @@ static void mips_ejtag_fdc_handle(struct mips_ejtag_fdc_tty *priv) TTY_NORMAL); }if (flipped) -tty_flip_buffer_push (&dport->port); +tty_schedule_flip (&dport->port);raw_spin_unlock (&dport->rx_lock); }
drivers/tty/mxser.c +1 -1
@@ -1637,7 +1637,7 @@ static u8 mxser_receive_chars(struct tty_struct *tty,if (!mxser_receive_chars_new (tty, port, status)) status =mxser_receive_chars_old (tty, port, status); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port);return status; }
drivers/tty/n_gsm.c +2 -2
@@ -1171,7 +1171,7 @@ static void gsm_control_rls(struct gsm_mux *gsm, const u8 *data, int clen)if (bits &8 )tty_insert_flip_char (port,0 ,TTY_FRAME ); -tty_flip_buffer_push (port); +tty_schedule_flip (port);gsm_control_reply (gsm,CMD_RLS , data, clen); }
@@ -1589,7 +1589,7 @@ static void gsm_dlci_data(struct gsm_dlci *dlci, const u8 *data, int clen)case 1 :/* Line state will go via DLCI 0 controls only */ default :tty_insert_flip_string (port, data, len); -tty_flip_buffer_push (port); +tty_schedule_flip (port); } }
drivers/tty/nozomi.c +1 -1
@@ -1222,7 +1222,7 @@ static irqreturn_t interrupt_handler(int irq, void *dev_id)for (a =0 ; a <NOZOMI_MAX_PORTS ; a++)if (test_and_clear_bit (a, &dc->flip)) -tty_flip_buffer_push (&dc->port[a].port); +tty_schedule_flip (&dc->port[a].port);return IRQ_HANDLED ; none:
drivers/tty/pty.c +1 -1
@@ -123,7 +123,7 @@ static int pty_write(struct tty_struct *tty, const unsigned char *buf, int c)spin_unlock_irqrestore (&to->port->lock, flags);/* And shovel */ if (c) -tty_flip_buffer_push (to->port); +tty_schedule_flip (to->port); }return c; }
drivers/tty/synclink_gt.c +1 -1
@@ -1820,7 +1820,7 @@ static void rx_async(struct slgt_info *info) }if (chars) -tty_flip_buffer_push (&info->port); +tty_schedule_flip (&info->port); }/*
drivers/tty/vcc.c +1 -1
@@ -297,7 +297,7 @@ static int vcc_rx(struct tty_struct *tty, char *buf, int size) len =tty_insert_flip_string (tty->port, buf, size);if (len) -tty_flip_buffer_push (tty->port); +tty_schedule_flip (tty->port);return len; }
Signature · 1 line
2.33.0
Re: [PATCH 09/16] tty: drivers/tty/, stop using tty_flip_buffer_push
Quoted 9 lines · Jiri Slaby
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). We are going to remove the former, so call the latter directly in the rest ofdrivers/tty/.Signed-off-by Jiri Slaby <[email protected]>Cc Laurentiu Tudor <[email protected]>Cc Jiri Kosina <[email protected]>Cc David Sterba <[email protected]>
For drivers/tty/ipwireless/*
PATCH 10/16 tty: drivers/usb/serial/, stop using tty_flip_buffer_push
In reply to Jiri SlabySince commit a9c3f68f3cd8d (tty: Fix low_latency BUG) in 2014, tty_flip_buffer_push() is only a wrapper to tty_schedule_flip(). We are going to remove the former, so call the latter directly in drivers/usb/serial/.
--- drivers/usb/serial/aircable.c | 2 +- drivers/usb/serial/ark3116.c | 2 +- drivers/usb/serial/belkin_sa.c | 2 +- drivers/usb/serial/cp210x.c | 2 +- drivers/usb/serial/cyberjack.c | 2 +- drivers/usb/serial/cypress_m8.c | 2 +- drivers/usb/serial/digi_acceleport.c | 2 +- drivers/usb/serial/f81232.c | 4 ++-- drivers/usb/serial/f81534.c | 2 +- drivers/usb/serial/ftdi_sio.c | 2 +- drivers/usb/serial/garmin_gps.c | 2 +- drivers/usb/serial/generic.c | 2 +- drivers/usb/serial/io_edgeport.c | 2 +- drivers/usb/serial/io_ti.c | 2 +- drivers/usb/serial/ir-usb.c | 2 +- drivers/usb/serial/iuu_phoenix.c | 2 +- drivers/usb/serial/keyspan.c | 10 +++++----- drivers/usb/serial/keyspan_pda.c | 2 +- drivers/usb/serial/kl5kusb105.c | 2 +- drivers/usb/serial/kobil_sct.c | 2 +- drivers/usb/serial/mct_u232.c | 2 +- drivers/usb/serial/metro-usb.c | 2 +- drivers/usb/serial/mos7720.c | 2 +- drivers/usb/serial/mos7840.c | 2 +- drivers/usb/serial/mxuport.c | 2 +- drivers/usb/serial/navman.c | 2 +- drivers/usb/serial/omninet.c | 2 +- drivers/usb/serial/opticon.c | 2 +- drivers/usb/serial/oti6858.c | 2 +- drivers/usb/serial/pl2303.c | 2 +- drivers/usb/serial/quatech2.c | 4 ++-- drivers/usb/serial/safe_serial.c | 2 +- drivers/usb/serial/sierra.c | 2 +- drivers/usb/serial/ssu100.c | 2 +- drivers/usb/serial/symbolserial.c | 2 +- drivers/usb/serial/ti_usb_3410_5052.c | 2 +- drivers/usb/serial/usb_wwan.c | 2 +- 37 files changed, 43 insertions(+), 43 deletions(-)
drivers/usb/serial/aircable.c +1 -1
@@ -133,7 +133,7 @@ static void aircable_process_read_urb(struct urb *urb) }if (count) -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }static struct usb_serial_driver aircable_device = {
drivers/usb/serial/ark3116.c +1 -1
@@ -605,7 +605,7 @@ static void ark3116_process_read_urb(struct urb *urb) }tty_insert_flip_string_fixed_flag (&port->port, data, tty_flag, urb->actual_length); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }static struct usb_serial_driver ark3116_device = {
drivers/usb/serial/belkin_sa.c +1 -1
@@ -269,7 +269,7 @@ static void belkin_sa_process_read_urb(struct urb *urb)tty_insert_flip_string_fixed_flag (&port->port, data, tty_flag, urb->actual_length); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); } static void belkin_sa_set_termios(struct tty_struct *tty,
drivers/usb/serial/cp210x.c +1 -1
@@ -939,7 +939,7 @@ static void cp210x_process_read_urb(struct urb *urb) }else {tty_insert_flip_string (&port->port, ch, urb->actual_length); } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }/*
drivers/usb/serial/cyberjack.c +1 -1
@@ -322,7 +322,7 @@ static void cyberjack_read_bulk_callback(struct urb *urb)if (urb->actual_length) {tty_insert_flip_string (&port->port, data, urb->actual_length); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }spin_lock_irqsave (&priv->lock, flags);
drivers/usb/serial/cypress_m8.c +1 -1
@@ -1128,7 +1128,7 @@ static void cypress_read_int_callback(struct urb *urb)if (bytes > i) {tty_insert_flip_string_fixed_flag (&port->port, data + i, tty_flag, bytes - i); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }spin_lock_irqsave (&priv->lock, flags);
drivers/usb/serial/digi_acceleport.c +1 -1
@@ -1416,7 +1416,7 @@ static int digi_read_inb_callback(struct urb *urb)if (len >0 ) {tty_insert_flip_string_fixed_flag (&port->port, data, tty_flag, len); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); } }spin_unlock_irqrestore (&priv->dp_port_lock, flags);
drivers/usb/serial/f81232.c +2 -2
@@ -428,7 +428,7 @@ static void f81232_process_read_urb(struct urb *urb)tty_insert_flip_char (&port->port, data[i +1 ], tty_flag); } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }static void f81534a_process_read_urb (struct urb *urb)
@@ -469,7 +469,7 @@ static void f81534a_process_read_urb(struct urb *urb) tty_flag, len - 2); } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }static void f81232_break_ctl (struct tty_struct *tty,int break_state)
drivers/usb/serial/f81534.c +1 -1
@@ -1239,7 +1239,7 @@ static void f81534_process_per_serial_block(struct usb_serial_port *port,tty_insert_flip_char (&port->port, data[i], tty_flag); } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }static void f81534_process_read_urb (struct urb *urb)
drivers/usb/serial/ftdi_sio.c +1 -1
@@ -2603,7 +2603,7 @@ static void ftdi_process_read_urb(struct urb *urb) }if (count) -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }static void ftdi_break_ctl (struct tty_struct *tty,int break_state)
drivers/usb/serial/garmin_gps.c +1 -1
@@ -245,7 +245,7 @@ static void send_to_tty(struct usb_serial_port *port,if (actual_length) {usb_serial_debug_data (&port->dev, __func__, actual_length, data);tty_insert_flip_string (&port->port, data, actual_length); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); } }
drivers/usb/serial/generic.c +1 -1
@@ -363,7 +363,7 @@ void usb_serial_generic_process_read_urb(struct urb *urb) }else {tty_insert_flip_string (&port->port, ch, urb->actual_length); } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }EXPORT_SYMBOL_GPL (usb_serial_generic_process_read_urb);
drivers/usb/serial/io_edgeport.c +1 -1
@@ -1876,7 +1876,7 @@ static void edge_tty_recv(struct usb_serial_port *port, unsigned char *data, data += cnt; length -= cnt; -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }
drivers/usb/serial/io_ti.c +1 -1
@@ -1794,7 +1794,7 @@ static void edge_tty_recv(struct usb_serial_port *port, unsigned char *data,if (queued < length)dev_err (&port->dev,"%s - dropping data, %d bytes lost\n" , __func__, length - queued); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }static void edge_bulk_out_callback (struct urb *urb)
drivers/usb/serial/ir-usb.c +1 -1
@@ -372,7 +372,7 @@ static void ir_process_read_urb(struct urb *urb)return ;tty_insert_flip_string (&port->port, data +1 , urb->actual_length -1 ); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); } static void ir_set_termios(struct tty_struct *tty,
drivers/usb/serial/iuu_phoenix.c +1 -1
@@ -590,7 +590,7 @@ static void read_buf_callback(struct urb *urb)if (urb->actual_length) {tty_insert_flip_string (&port->port, data, urb->actual_length); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }iuu_led_activity_on (urb); }
drivers/usb/serial/keyspan.c +5 -5
@@ -810,7 +810,7 @@ static void usa26_indat_callback(struct urb *urb) flag); } } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }/* Resubmit urb so we continue receiving */
@@ -936,7 +936,7 @@ static void usa28_indat_callback(struct urb *urb)if (urb->actual_length) {tty_insert_flip_string (&port->port, data, urb->actual_length); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }/* Resubmit urb so we continue receiving */
@@ -1154,7 +1154,7 @@ static void usa49_indat_callback(struct urb *urb) flag); } } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }/* Resubmit urb so we continue receiving */
@@ -1225,7 +1225,7 @@ static void usa49wg_indat_callback(struct urb *urb) i +=2 ; } } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }/* Resubmit urb so we continue receiving */
@@ -1301,7 +1301,7 @@ static void usa90_indat_callback(struct urb *urb) } } } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }/* Resubmit urb so we continue receiving */
drivers/usb/serial/keyspan_pda.c +1 -1
@@ -190,7 +190,7 @@ static void keyspan_pda_rx_interrupt(struct urb *urb)if (len <2 )break ;tty_insert_flip_string (&port->port, data +1 , len -1 ); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port);break ;case 1 :/* status interrupt */
drivers/usb/serial/kl5kusb105.c +1 -1
@@ -388,7 +388,7 @@ static void klsi_105_process_read_urb(struct urb *urb) }tty_insert_flip_string (&port->port, data +KLSI_HDR_LEN , len); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); } static void klsi_105_set_termios(struct tty_struct *tty,
drivers/usb/serial/kobil_sct.c +1 -1
@@ -276,7 +276,7 @@ static void kobil_read_int_callback(struct urb *urb)usb_serial_debug_data (&port->dev, __func__, urb->actual_length, data);tty_insert_flip_string (&port->port, data, urb->actual_length); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); } result =usb_submit_urb (port->interrupt_in_urb,GFP_ATOMIC );
drivers/usb/serial/mct_u232.c +1 -1
@@ -538,7 +538,7 @@ static void mct_u232_read_int_callback(struct urb *urb)if (urb->actual_length) {tty_insert_flip_string (&port->port, data, urb->actual_length); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); } goto exit; }
drivers/usb/serial/metro-usb.c +1 -1
@@ -141,7 +141,7 @@ static void metrousb_read_int_callback(struct urb *urb)tty_insert_flip_string (&port->port, data, urb->actual_length);/* Force the data to the tty layer. */ -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }/* Set any port variables. */
drivers/usb/serial/mos7720.c +1 -1
@@ -782,7 +782,7 @@ static void mos7720_bulk_in_callback(struct urb *urb)if (urb->actual_length) {tty_insert_flip_string (&port->port, data, urb->actual_length); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }if (port->read_urb->status != -EINPROGRESS ) {
drivers/usb/serial/mos7840.c +1 -1
@@ -451,7 +451,7 @@ static void mos7840_bulk_in_callback(struct urb *urb)if (urb->actual_length) {struct tty_port *tport = &mos7840_port->port->port;tty_insert_flip_string (tport, data, urb->actual_length); -tty_flip_buffer_push (tport); +tty_schedule_flip (tport); port->icount.rx += urb->actual_length;dev_dbg (&port->dev,"icount.rx is %d:\n" , port->icount.rx); }
drivers/usb/serial/mxuport.c +1 -1
@@ -329,7 +329,7 @@ static void mxuport_process_read_urb_data(struct usb_serial_port *port, }else {tty_insert_flip_string (&port->port, data, size); } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }static void mxuport_msr_event (struct usb_serial_port *port,u8 buf[4 ])
drivers/usb/serial/navman.c +1 -1
@@ -52,7 +52,7 @@ static void navman_read_int_callback(struct urb *urb)if (urb->actual_length) {tty_insert_flip_string (&port->port, data, urb->actual_length); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); } exit:
drivers/usb/serial/omninet.c +1 -1
@@ -149,7 +149,7 @@ static void omninet_process_read_urb(struct urb *urb) data_len =min_t (size_t, urb->actual_length -OMNINET_HEADERLEN , hdr->oh_len);tty_insert_flip_string (&port->port, data, data_len); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); } static int omninet_prepare_write_buffer(struct usb_serial_port *port,
drivers/usb/serial/opticon.c +1 -1
@@ -51,7 +51,7 @@ static void opticon_process_data_packet(struct usb_serial_port *port, const unsigned char *buf, size_t len) { tty_insert_flip_string(&port->port, buf, len); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); } static void opticon_process_status_packet(struct usb_serial_port *port,
drivers/usb/serial/oti6858.c +1 -1
@@ -780,7 +780,7 @@ static void oti6858_read_bulk_callback(struct urb *urb)if (urb->actual_length >0 ) {tty_insert_flip_string (&port->port, data, urb->actual_length); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }/* schedule the interrupt urb */
drivers/usb/serial/pl2303.c +1 -1
@@ -1211,7 +1211,7 @@ static void pl2303_process_read_urb(struct urb *urb) urb->actual_length); } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }static struct usb_serial_driver pl2303_device = {
drivers/usb/serial/quatech2.c +2 -2
@@ -521,7 +521,7 @@ static void qt2_process_read_urb(struct urb *urb) __func__);break ; } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); newport = *(ch +3 );
@@ -560,7 +560,7 @@ static void qt2_process_read_urb(struct urb *urb)tty_insert_flip_char (&port->port, *ch,TTY_NORMAL ); } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }static void qt2_write_bulk_callback (struct urb *urb)
drivers/usb/serial/safe_serial.c +1 -1
@@ -217,7 +217,7 @@ static void safe_process_read_urb(struct urb *urb) length = actual_length; out:tty_insert_flip_string (&port->port, data, length); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); } static int safe_prepare_write_buffer(struct usb_serial_port *port,
drivers/usb/serial/sierra.c +1 -1
@@ -538,7 +538,7 @@ static void sierra_indat_callback(struct urb *urb)if (urb->actual_length) {tty_insert_flip_string (&port->port, data, urb->actual_length); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port);usb_serial_debug_data (&port->dev, __func__, urb->actual_length, data);
drivers/usb/serial/ssu100.c +1 -1
@@ -509,7 +509,7 @@ static void ssu100_process_read_urb(struct urb *urb)tty_insert_flip_string_fixed_flag (&port->port, ch, flag, len); } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }static struct usb_serial_driver ssu100_device = {
drivers/usb/serial/symbolserial.c +1 -1
@@ -68,7 +68,7 @@ static void symbol_int_callback(struct urb *urb)if (data_length > (urb->actual_length -1 )) data_length = urb->actual_length -1 ;tty_insert_flip_string (&port->port, &data[1 ], data_length); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }else {dev_dbg (&port->dev,"%s - short packet\n" , __func__); }
drivers/usb/serial/ti_usb_3410_5052.c +1 -1
@@ -1275,7 +1275,7 @@ static void ti_recv(struct usb_serial_port *port, unsigned char *data,if (cnt ==0 )break ; } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); data += cnt; length -= cnt; }while (length >0 );
drivers/usb/serial/usb_wwan.c +1 -1
@@ -233,7 +233,7 @@ static void usb_wwan_indat_callback(struct urb *urb)if (urb->actual_length) {tty_insert_flip_string (&port->port, data, urb->actual_length); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }else dev_dbg (dev,"%s: empty read urb received\n" , __func__); }
Signature · 1 line
2.33.0
PATCH 11/16 tty: drivers/usb/, stop using tty_flip_buffer_push
In reply to Jiri SlabySince commit a9c3f68f3cd8d (tty: Fix low_latency BUG) in 2014, tty_flip_buffer_push() is only a wrapper to tty_schedule_flip(). We are going to remove the former, so call the latter directly in the rest of drivers/usb/.
--- drivers/usb/class/cdc-acm.c | 2 +- drivers/usb/gadget/function/u_serial.c | 2 +- drivers/usb/host/xhci-dbgtty.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/usb/class/cdc-acm.c +1 -1
@@ -480,7 +480,7 @@ static void acm_process_read_urb(struct acm *acm, struct urb *urb)tty_insert_flip_string (&acm->port, urb->transfer_buffer, urb->actual_length); -tty_flip_buffer_push (&acm->port); +tty_schedule_flip (&acm->port); }static void acm_read_bulk_callback (struct urb *urb)
drivers/usb/gadget/function/u_serial.c +1 -1
@@ -426,7 +426,7 @@ static void gs_rx_push(struct work_struct *work)* so we won't get callbacks and can hold port_lock */ if (do_push) -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port);/* We want our data queue to become empty ASAP, keeping data
drivers/usb/host/xhci-dbgtty.c +1 -1
@@ -344,7 +344,7 @@ static void dbc_rx_push(struct tasklet_struct *t) }if (do_push) -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port);if (!list_empty (queue) && tty) {if (!tty_throttled (tty)) {
Signature · 1 line
2.33.0
PATCH 12/16 tty: arch/, stop using tty_flip_buffer_push
In reply to Jiri SlabySince commit a9c3f68f3cd8d (tty: Fix low_latency BUG) in 2014, tty_flip_buffer_push() is only a wrapper to tty_schedule_flip(). We are going to remove the former, so call the latter directly in arch/.
--- arch/parisc/kernel/pdc_cons.c | 2 +- arch/um/drivers/chan_kern.c | 2 +- arch/xtensa/platforms/iss/console.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
arch/parisc/kernel/pdc_cons.c +1 -1
@@ -128,7 +128,7 @@ static void pdc_console_poll(struct timer_list *unused) }if (count) -tty_flip_buffer_push (&tty_port); +tty_schedule_flip (&tty_port);if (pdc_cons.flags &CON_ENABLED )mod_timer (&pdc_console_timer, jiffies +PDC_CONS_POLL_DELAY );
arch/um/drivers/chan_kern.c +1 -1
@@ -566,5 +566,5 @@ void chan_interrupt(struct line *line, int irq)return ; } out: -tty_flip_buffer_push (port); +tty_schedule_flip (port); }
arch/xtensa/platforms/iss/console.c +1 -1
@@ -84,7 +84,7 @@ static void rs_poll(struct timer_list *unused) }if (i) -tty_flip_buffer_push (port); +tty_schedule_flip (port);if (rd)mod_timer (&serial_timer, jiffies +SERIAL_TIMER_VALUE );spin_unlock (&timer_lock);
Signature · 1 line
2.33.0
Re: [PATCH 12/16] tty: arch/, stop using tty_flip_buffer_push
Quoted 16 lines · Jiri Slaby
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). We are going to remove the former, so call the latter directly inarch/.Signed-off-by Jiri Slaby <[email protected]>Cc "James E.J. Bottomley" <[email protected]>Cc Helge Deller <[email protected]>Cc Jeff Dike <[email protected]>Cc Richard Weinberger <[email protected]>Cc Anton Ivanov <[email protected]>Cc Chris Zankel <[email protected]>Cc Max Filippov <[email protected]>
Quoted 3 lines
---
arch/xtensa/platforms/iss/console.c | 2 +-
Signature · 7 lines
Thanks. -- Max _______________________________________________ linux-um mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-um
PATCH 13/16 tty: drivers/s390/char/, stop using tty_flip_buffer_push
In reply to Jiri SlabySince commit a9c3f68f3cd8d (tty: Fix low_latency BUG) in 2014, tty_flip_buffer_push() is only a wrapper to tty_schedule_flip(). We are going to remove the former, so call the latter directly in drivers/s390/char/.
--- drivers/s390/char/con3215.c | 4 ++-- drivers/s390/char/sclp_tty.c | 4 ++-- drivers/s390/char/sclp_vt220.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
drivers/s390/char/con3215.c +2 -2
@@ -399,7 +399,7 @@ static void raw3215_irq(struct ccw_device *cdev, unsigned long intparm,case CTRLCHAR_CTRL :tty_insert_flip_char (&raw->port, cchar,TTY_NORMAL ); -tty_flip_buffer_push (&raw->port); +tty_schedule_flip (&raw->port);break ;case CTRLCHAR_NONE :
@@ -413,7 +413,7 @@ static void raw3215_irq(struct ccw_device *cdev, unsigned long intparm, count -=2 ;tty_insert_flip_string (&raw->port, raw->inbuf, count); -tty_flip_buffer_push (&raw->port); +tty_schedule_flip (&raw->port);break ; } }else if (req->type ==RAW3215_WRITE ) {
drivers/s390/char/sclp_tty.c +2 -2
@@ -330,7 +330,7 @@ sclp_tty_input(unsigned char* buf, unsigned int count)break ;case CTRLCHAR_CTRL :tty_insert_flip_char (&sclp_port, cchar,TTY_NORMAL ); -tty_flip_buffer_push (&sclp_port); +tty_schedule_flip (&sclp_port);break ;case CTRLCHAR_NONE :/* send (normal) input to line discipline */
@@ -342,7 +342,7 @@ sclp_tty_input(unsigned char* buf, unsigned int count)tty_insert_flip_char (&sclp_port,'\n' ,TTY_NORMAL ); }else tty_insert_flip_string (&sclp_port, buf, count -2 ); -tty_flip_buffer_push (&sclp_port); +tty_schedule_flip (&sclp_port);break ; }tty_kref_put (tty);
drivers/s390/char/sclp_vt220.c +1 -1
@@ -542,7 +542,7 @@ sclp_vt220_receiver_fn(struct evbuf_header *evbuf) buffer++; count--;sclp_vt220_handle_input (buffer, count); -tty_flip_buffer_push (&sclp_vt220_port); +tty_schedule_flip (&sclp_vt220_port);break ; } }
Signature · 1 line
2.33.0
PATCH 14/16 tty: drivers/staging/, stop using tty_flip_buffer_push
In reply to Jiri SlabySince commit a9c3f68f3cd8d (tty: Fix low_latency BUG) in 2014, tty_flip_buffer_push() is only a wrapper to tty_schedule_flip(). We are going to remove the former, so call the latter directly in drivers/staging/.
--- drivers/staging/fwserial/fwserial.c | 4 ++-- drivers/staging/gdm724x/gdm_tty.c | 2 +- drivers/staging/greybus/uart.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/fwserial/fwserial.c +2 -2
@@ -518,7 +518,7 @@ static void fwtty_emit_breaks(struct work_struct *work)if (c < t)break ; } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port);if (port->mstatus & (UART_LSR_BI <<24 ))schedule_delayed_work (&port->emit_breaks,FREQ_BREAKS );
@@ -565,7 +565,7 @@ static int fwtty_rx(struct fwtty_port *port, unsigned char *data, size_t len) c =tty_insert_flip_string_fixed_flag (&port->port, data,TTY_NORMAL , n);if (c >0 ) -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); n -= c;if (n) {
drivers/staging/gdm724x/gdm_tty.c +1 -1
@@ -129,7 +129,7 @@ static int gdm_tty_recv_complete(void *data,if (data && len) {if (tty_buffer_request_room (&gdm->port, len) == len) {tty_insert_flip_string (&gdm->port, data, len); -tty_flip_buffer_push (&gdm->port); +tty_schedule_flip (&gdm->port); }else {return TO_HOST_BUFFER_REQUEST_FAIL ; }
drivers/staging/greybus/uart.c +1 -1
@@ -122,7 +122,7 @@ static int gb_uart_receive_data_handler(struct gb_operation *op) recv_data_size, count); }if (count) -tty_flip_buffer_push (port); +tty_schedule_flip (port);return 0 ; }
Signature · 1 line
2.33.0
Re: [greybus-dev] [PATCH 14/16] tty: drivers/staging/, stop using tty_flip_buffer_push
Quoted 4 lines · Jiri Slaby
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). We are going to remove the former, so call the latter directly indrivers/staging/.
For "greybus/uart.c", looks good.
Quoted 62 lines
Signed-off-by Jiri Slaby <[email protected]>Cc David Lin <[email protected]>Cc Johan Hovold <[email protected]>Cc Alex Elder <[email protected]>--- drivers/staging/fwserial/fwserial.c | 4 ++-- drivers/staging/gdm724x/gdm_tty.c | 2 +- drivers/staging/greybus/uart.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)drivers/staging/fwserial/fwserial.c +2
-2@@ -518,7 +518,7 @@ static void fwtty_emit_breaks(struct work_struct *work)if (c < t)break ; } -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port);if (port->mstatus & (UART_LSR_BI <<24 ))schedule_delayed_work (&port->emit_breaks,FREQ_BREAKS );@@ -565,7 +565,7 @@ static int fwtty_rx(struct fwtty_port *port, unsigned char *data, size_t len) c =tty_insert_flip_string_fixed_flag (&port->port, data,TTY_NORMAL , n);if (c >0 ) -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); n -= c;if (n) {drivers/staging/gdm724x/gdm_tty.c +1
-1@@ -129,7 +129,7 @@ static int gdm_tty_recv_complete(void *data,if (data && len) {if (tty_buffer_request_room (&gdm->port, len) == len) {tty_insert_flip_string (&gdm->port, data, len); -tty_flip_buffer_push (&gdm->port); +tty_schedule_flip (&gdm->port); }else {return TO_HOST_BUFFER_REQUEST_FAIL ; }drivers/staging/greybus/uart.c +1
-1@@ -122,7 +122,7 @@ static int gb_uart_receive_data_handler(struct gb_operation *op) recv_data_size, count); }if (count) -tty_flip_buffer_push (port); +tty_schedule_flip (port);return 0 ; }
PATCH 15/16 tty: the rest, stop using tty_flip_buffer_push
In reply to Jiri SlabySince commit a9c3f68f3cd8d (tty: Fix low_latency BUG) in 2014, tty_flip_buffer_push() is only a wrapper to tty_schedule_flip(). We are going to remove the former, so call the latter directly in the couple of remaining users.
--- drivers/char/pcmcia/synclink_cs.c | 2 +- drivers/ipack/devices/ipoctal.c | 2 +- drivers/misc/bcm-vk/bcm_vk_tty.c | 2 +- drivers/mmc/core/sdio_uart.c | 2 +- drivers/net/usb/hso.c | 2 +- net/bluetooth/rfcomm/tty.c | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-)
drivers/char/pcmcia/synclink_cs.c +1 -1
@@ -952,7 +952,7 @@ static void rx_ready_async(MGSLPC_INFO *info, int tcd) }if (work) -tty_flip_buffer_push (port); +tty_schedule_flip (port); }
drivers/ipack/devices/ipoctal.c +1 -1
@@ -184,7 +184,7 @@ static void ipoctal_irq_rx(struct ipoctal_channel *channel, u8 sr) sr =ioread8 (&channel->regs->r.sr); }while (isr & channel->isr_rx_rdy_mask); -tty_flip_buffer_push (port); +tty_schedule_flip (port); }static void ipoctal_irq_tx (struct ipoctal_channel *channel)
drivers/misc/bcm-vk/bcm_vk_tty.c +1 -1
@@ -114,7 +114,7 @@ static void bcm_vk_tty_wq_handler(struct work_struct *work) }if (count) { -tty_flip_buffer_push (&vktty->port); +tty_schedule_flip (&vktty->port);/* Update read offset from shadow register to card */ vkwrite32(vk, vktty->rd, BAR_1,
drivers/mmc/core/sdio_uart.c +1 -1
@@ -418,7 +418,7 @@ static void sdio_uart_receive_chars(struct sdio_uart_port *port, *status =sdio_in (port,UART_LSR ); }while ((*status &UART_LSR_DR ) && (max_count-- >0 )); -tty_flip_buffer_push (&port->port); +tty_schedule_flip (&port->port); }static void sdio_uart_transmit_chars (struct sdio_uart_port *port)
drivers/net/usb/hso.c +1 -1
@@ -2018,7 +2018,7 @@ static int put_rxbuf_data(struct urb *urb, struct hso_serial *serial)if (count >= urb->actual_length) {tty_insert_flip_string (&serial->port, urb->transfer_buffer, urb->actual_length); -tty_flip_buffer_push (&serial->port); +tty_schedule_flip (&serial->port); }else {dev_warn (&serial->parent->usb->dev,"dropping data, %d bytes lost\n" , urb->actual_length);
net/bluetooth/rfcomm/tty.c +2 -2
@@ -618,7 +618,7 @@ static void rfcomm_dev_data_ready(struct rfcomm_dlc *dlc, struct sk_buff *skb)BT_DBG ("dlc %p len %d" , dlc, skb->len);tty_insert_flip_string (&dev->port, skb->data, skb->len); -tty_flip_buffer_push (&dev->port); +tty_schedule_flip (&dev->port);kfree_skb (skb); }
@@ -677,7 +677,7 @@ static void rfcomm_tty_copy_pending(struct rfcomm_dev *dev)rfcomm_dlc_unlock (dev->dlc);if (inserted >0 ) -tty_flip_buffer_push (&dev->port); +tty_schedule_flip (&dev->port); }/* do the reverse of install, clearing the tty fields and releasing the
Signature · 1 line
2.33.0
Re: [PATCH 15/16] tty: the rest, stop using tty_flip_buffer_push
Quoted 51 lines · Jiri Slaby
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). We are
going to remove the former, so call the latter directly in the couple of
remaining users.Signed-off-by Jiri Slaby <[email protected]>Cc Arnd Bergmann <[email protected]>Cc Samuel Iglesias Gonsalvez <[email protected]>Cc Jens Taprogge <[email protected]>Cc Scott Branden <[email protected]>Cc Ulf Hansson <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Marcel Holtmann <[email protected]>Cc Johan Hedberg <[email protected]>Cc Luiz Augusto von Dentz <[email protected]>---
drivers/char/pcmcia/synclink_cs.c | 2 +- drivers/ipack/devices/ipoctal.c | 2 +- drivers/misc/bcm-vk/bcm_vk_tty.c | 2 +- drivers/mmc/core/sdio_uart.c | 2 +- drivers/net/usb/hso.c | 2 +- net/bluetooth/rfcomm/tty.c | 4 ++--6 files changed, 7 insertions(+), 7 deletions(-)drivers/char/pcmcia/synclink_cs.c +0
-0@@ -952,7 +952,7 @@ static void rx_ready_async(MGSLPC_INFO *info, int tcd) }
if (work)
- tty_flip_buffer_push(port); + tty_schedule_flip(port);
}drivers/ipack/devices/ipoctal.c +0
-0@@ -184,7 +184,7 @@ static void ipoctal_irq_rx(struct ipoctal_channel *channel, u8 sr) sr = ioread8(&channel->regs->r.sr); } while (isr & channel->isr_rx_rdy_mask);
Quoted 5 lines
- tty_flip_buffer_push(port);
+ tty_schedule_flip(port);
}
For ipoctal changes:
Sam
Quoted 73 lines
static void
ipoctal_irq_tx(struct ipoctal_channel *channel)drivers/misc/bcm- renamed from drivers/misc/bcm-vk/bcm_vk_tty.c +0
-0
vk/bcm_vk_tty.c
index1b6076a89ca6..328109a719be100644drivers/misc/bcm-vk/bcm_vk_tty.c +0
-0@@ -114,7 +114,7 @@ static void bcm_vk_tty_wq_handler(struct work_struct *work) }
if (count) {
- tty_flip_buffer_push(&vktty->port); + tty_schedule_flip(&vktty->port);
/* Update read offset from shadow register to card */
vkwrite32(vk,vktty->rd,BAR_1,drivers/mmc/core/sdio_uart.c +0
-0@@ -418,7 +418,7 @@ static void sdio_uart_receive_chars(structsdio_uart_port *port, *status = sdio_in(port, UART_LSR); } while ((*status & UART_LSR_DR) && (max_count-- > 0));
- tty_flip_buffer_push(&port->port);
+ tty_schedule_flip(&port->port);
}
static voidsdio_uart_transmit_chars(struct sdio_uart_port *port)drivers/net/usb/hso.c +0
-0@@ -2018,7 +2018,7 @@ static int put_rxbuf_data(struct urb *urb, struct hso_serial *serial) if (count >= urb->actual_length) {tty_insert_flip_string(&serial->port, urb-
Quoted 1 line
transfer_buffer,
urb->actual_length); - tty_flip_buffer_push(&serial->port); + tty_schedule_flip(&serial->port);
} else {
dev_warn(&serial->parent->usb->dev, "dropping data, %d bytes lost\n", urb-Quoted 1 line
actual_length);net/bluetooth/rfcomm/tty.c +0
-0@@ -618,7 +618,7 @@ static void rfcomm_dev_data_ready(struct rfcomm_dlc *dlc, struct sk_buff *skb) BT_DBG("dlc %p len %d", dlc, skb->len);
tty_insert_flip_string(&dev->port,skb->data,skb->len); - tty_flip_buffer_push(&dev->port);
+ tty_schedule_flip(&dev->port);
kfree_skb(skb);
}net/bluetooth/rfcomm/tty.c +0
-0@@ -677,7 +677,7 @@ static void rfcomm_tty_copy_pending(struct rfcomm_dev *dev) rfcomm_dlc_unlock(dev->dlc);
if (inserted > 0)
- tty_flip_buffer_push(&dev->port);
+ tty_schedule_flip(&dev->port);
}
/* do the reverse of install, clearing the tty fields and releasing the
PATCH 16/16 tty: drop tty_flip_buffer_push
In reply to Jiri SlabySince commit a9c3f68f3cd8d (tty: Fix low_latency BUG) in 2014, tty_flip_buffer_push() is only a wrapper to tty_schedule_flip(). All users were converted, so remove tty_flip_buffer_push() completely.
One less exported function.
--- drivers/tty/tty_buffer.c | 17 ----------------- include/linux/tty_flip.h | 1 - 2 files changed, 18 deletions(-)
drivers/tty/tty_buffer.c +0 -17
@@ -550,23 +550,6 @@ static void flush_to_ldisc(struct work_struct *work) } -/** -* tty_flip_buffer_push - terminal -* @port: tty port to push -* -* Queue a push of the terminal flip buffers to the line discipline. -* Can be called from IRQ/atomic context. -* -* In the event of the queue being busy for flipping the work will be -* held off and retried later. -*/ - -void tty_flip_buffer_push (struct tty_port *port) -{ -tty_schedule_flip (port); -} -EXPORT_SYMBOL (tty_flip_buffer_push); -/** * tty_buffer_init - prepare a tty buffer structure * @port: tty port to initialise
include/linux/tty_flip.h +0 -1
@@ -16,7 +16,6 @@ int tty_insert_flip_string_fixed_flag(struct tty_port *port, const unsigned char *chars, char flag, size_t size);int tty_prepare_flip_string (struct tty_port *port,unsigned char **chars,size_t size); -void tty_flip_buffer_push (struct tty_port *port);void tty_schedule_flip (struct tty_port *port);int __tty_insert_flip_char (struct tty_port *port,unsigned char ch,char flag);
Signature · 1 line
2.33.0
Johan Hovold
maintainerRe: [PATCH 16/16] tty: drop tty_flip_buffer_push
Quoted 3 lines · Jiri Slaby
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). All users were converted, so removetty_flip_buffer_push()completely.
Did you consider inlining tty_flip_buffer_push() or unexporting tty_schedule_flip() instead?
The name tty_flip_buffer_push() is arguable more descriptive since the work may already be running and is also less tied to the implementation.
The ratio of drivers using tty_flip_buffer_push() over tty_schedule_flip() is also something like 186 to 15 so that would amount to a lot less churn too.
Also, can you please start adding cover letters to your series to provide an overview of what it is you're trying to accomplish?
Johan
Jiri Slaby
maintainerRe: [PATCH 16/16] tty: drop tty_flip_buffer_push
Quoted 7 lines · Johan Hovold
Quoted 3 lines · Jiri Slaby
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). All users were converted, so removetty_flip_buffer_push()completely.Did you consider inlining
tty_flip_buffer_push()or unexportingtty_schedule_flip()instead?
Yes -- I see no reason for two functions doing the very same thing. It's only confusing.
Quoted 6 lines
The name
tty_flip_buffer_push()is arguable more descriptive since the work may already be running and is also less tied to the implementation.The ratio of drivers using
tty_flip_buffer_push()overtty_schedule_flip()is also something like 186 to 15 so that would amount to a lot less churn too.
OK, I can do either way. I chose this path as tty_schedule_flip was a wrapper to tty_flip_buffer_push. In any case, I wouldn't take the number of changed drivers as a measure. But if it makes more sense for people regarding the naming, I will "flip" the two flips.
Quoted 2 lines
Also, can you please start adding cover letters to your series to provide an overview of what it is you're trying to accomplish?
I am not a fan of cover letters as they are not Cced to people who are Cced in separate patches. So what would you like to see in the letter? This series are just a random cleanup and IMO there is not much more to be said except what is in their commit logs.
thanks,
Signature · 2 lines
js suse labs
Johan Hovold
maintainerRe: [PATCH 16/16] tty: drop tty_flip_buffer_push
Quoted 9 lines · Jiri Slaby
Quoted 8 lines · Johan Hovold
Quoted 3 lines · Jiri Slaby
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). All users were converted, so removetty_flip_buffer_push()completely.The name
tty_flip_buffer_push()is arguable more descriptive since the work may already be running and is also less tied to the implementation.
Quoted 8 lines
Quoted 3 lines
The ratio of drivers using
tty_flip_buffer_push()overtty_schedule_flip()is also something like 186 to 15 so that would amount to a lot less churn too.OK, I can do either way. I chose this path as
tty_schedule_flipwas a wrapper totty_flip_buffer_push. In any case, I wouldn't take the number of changed drivers as a measure. But if it makes more sense for people regarding the naming, I will "flip" the two flips.
I'd prefer that. The name tty_flip_buffer_push() is more descriptive and we've been using it in virtually all tty drivers since 1997. No need to force people to relearn the pattern of tty insert + push.
(Also note that the kernel doc for tty_schedule_flip() says "push characters to ldisc", while the name more reflects how the tty buffering was originally implemented.)
Quoted 7 lines
Quoted 2 lines
Also, can you please start adding cover letters to your series to provide an overview of what it is you're trying to accomplish?
I am not a fan of cover letters as they are not Cced to people who are Cced in separate patches. So what would you like to see in the letter? This series are just a random cleanup and IMO there is not much more to be said except what is in their commit logs.
Even if all it said was "random cleanups" it would still be worth having as I'd know that this is just Jiri moving code about and not necessarily something that needs deeper review.
In this case the driver commit messages only said that "[w]e are going to remove [tty_flip_buffer_push()]" without any real explanation why that was chosen over the alternatives. I had to look up the series on lore to look for more details. But since there's no cover letter I end up having to skim the entire series only to come up mostly empty handed as the final patch just added "One less exported function" as some sort of motivation.
Let's not make it harder for reviewers. If you're sending random cleanup patches then say so. And if they can be grouped into a few classes as seemed to be the case here then having those outlined is also helpful.
Johan
Jiri Slaby
maintainerRe: [PATCH 16/16] tty: drop tty_flip_buffer_push
In reply to Jiri SlabyFriendly ping Johan, Greg: any opinions on the tty_schedule_flip vs tty_flip_buffer_push case -- which one should I keep?
I would like to move forward with these as I have a lot kernel-doc writings pending and depending on this patch (be it "drop tty_flip_buffer_push" or "drop tty_schedule_flip").
Thanks.
Quoted 19 lines · Jiri Slaby
Quoted 7 lines · Johan Hovold
Quoted 3 lines · Jiri Slaby
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). All users were converted, so removetty_flip_buffer_push()completely.Did you consider inlining
tty_flip_buffer_push()or unexportingtty_schedule_flip()instead?Yes -- I see no reason for two functions doing the very same thing. It's only confusing.
Quoted 6 lines
The name
tty_flip_buffer_push()is arguable more descriptive since the work may already be running and is also less tied to the implementation.The ratio of drivers using
tty_flip_buffer_push()overtty_schedule_flip()is also something like 186 to 15 so that would amount to a lot less churn too.OK, I can do either way. I chose this path as
tty_schedule_flipwas a wrapper totty_flip_buffer_push. In any case, I wouldn't take the number of changed drivers as a measure. But if it makes more sense for people regarding the naming, I will "flip" the two flips.
Signature · 2 lines
js suse labs
Johan Hovold
maintainerRe: [PATCH 16/16] tty: drop tty_flip_buffer_push
Quoted 2 lines · Jiri Slaby
Friendly ping Johan, Greg: any opinions on the
tty_schedule_flipvstty_flip_buffer_pushcase -- which one should I keep?
I still prefer keeping tty_flip_buffer_push() since it's name is much more descriptive and since it's used by almost all drivers.
There's also no good reason to force developers to relearn the insert + push pattern either (and rewriting the documentation and books that describe it).
Johan
Quoted 24 lines · Jiri Slaby
Quoted 23 lines · Johan Hovold
Quoted 7 lines · Jiri Slaby
Quoted 3 lines
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). All users were converted, so removetty_flip_buffer_push()completely.Did you consider inlining
tty_flip_buffer_push()or unexportingtty_schedule_flip()instead?Yes -- I see no reason for two functions doing the very same thing. It's only confusing.
Quoted 6 lines
The name
tty_flip_buffer_push()is arguable more descriptive since the work may already be running and is also less tied to the implementation.The ratio of drivers using
tty_flip_buffer_push()overtty_schedule_flip()is also something like 186 to 15 so that would amount to a lot less churn too.OK, I can do either way. I chose this path as
tty_schedule_flipwas a wrapper totty_flip_buffer_push. In any case, I wouldn't take the number of changed drivers as a measure. But if it makes more sense for people regarding the naming, I will "flip" the two flips.
Re: [PATCH 08/16] tty: drivers/tty/serial/, stop using tty_flip_buffer_push
In reply to Jiri SlabyQuoted 107 lines · Jiri Slaby
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). We are going to remove the former, so call the latter directly indrivers/tty/serial/.Signed-off-by Jiri Slaby <[email protected]>Cc Joel Stanley <[email protected]>Cc Andrew Jeffery <[email protected]>Cc Al Cooper <[email protected]>Cc Matthias Brugger <[email protected]>Cc Tobias Klauser <[email protected]>Cc Russell King <[email protected]>Cc Vineet Gupta <[email protected]>Cc Richard Genoud <[email protected]>Cc Nicolas Ferre <[email protected]>Cc Alexandre Belloni <[email protected]>Cc Ludovic Desroches <[email protected]>Cc Florian Fainelli <[email protected]>Cc Alexander Shiyan <[email protected]>Cc Baruch Siach <[email protected]>Cc "Maciej W. Rozycki" <[email protected]>Cc Shawn Guo <[email protected]>Cc Sascha Hauer <[email protected]>Cc Pengutronix Kernel Team <[email protected]>Cc Fabio Estevam <[email protected]>Cc NXP Linux Team <[email protected]>Cc Karol Gugala <[email protected]>Cc Mateusz Holenko <[email protected]>Cc Vladimir Zapolskiy <[email protected]>Cc Neil Armstrong <[email protected]>Cc Kevin Hilman <[email protected]>Cc Jerome Brunet <[email protected]>Cc Martin Blumenstingl <[email protected]>Cc Liviu Dudau <[email protected]>Cc Sudeep Holla <[email protected]>Cc Lorenzo Pieralisi <[email protected]>Cc Andy Gross <[email protected]>Cc Bjorn Andersson <[email protected]>Cc "Andreas Färber" <[email protected]>Cc Manivannan Sadhasivam <[email protected]>Cc Michael Ellerman <[email protected]>Cc Benjamin Herrenschmidt <[email protected]>Cc Paul Mackerras <[email protected]>Cc Kevin Cernekee <[email protected]>Cc Krzysztof Kozlowski <[email protected]>Cc Laxman Dewangan <[email protected]>Cc Thierry Reding <[email protected]>Cc Jonathan Hunter <[email protected]>Cc Palmer Dabbelt <[email protected]>Cc Paul Walmsley <[email protected]>Cc Orson Zhai <[email protected]>Cc Baolin Wang <[email protected]>Cc Chunyan Zhang <[email protected]>Cc Patrice Chotard <[email protected]>Cc Maxime Coquelin <[email protected]>Cc Alexandre Torgue <[email protected]>Cc "David S. Miller" <[email protected]>Cc Peter Korsgaard <[email protected]>Cc Timur Tabi <[email protected]>Cc Michal Simek <[email protected]>--- drivers/tty/serial/21285.c | 2 +- drivers/tty/serial/8250/8250_aspeed_vuart.c | 2 +- drivers/tty/serial/8250/8250_bcm7271.c | 2 +- drivers/tty/serial/8250/8250_dma.c | 2 +- drivers/tty/serial/8250/8250_mtk.c | 2 +- drivers/tty/serial/8250/8250_omap.c | 2 +- drivers/tty/serial/8250/8250_port.c | 2 +- drivers/tty/serial/altera_jtaguart.c | 2 +- drivers/tty/serial/altera_uart.c | 2 +- drivers/tty/serial/amba-pl010.c | 2 +- drivers/tty/serial/amba-pl011.c | 6 +++--- drivers/tty/serial/apbuart.c | 2 +- drivers/tty/serial/ar933x_uart.c | 2 +- drivers/tty/serial/arc_uart.c | 2 +- drivers/tty/serial/atmel_serial.c | 6 +++--- drivers/tty/serial/bcm63xx_uart.c | 2 +- drivers/tty/serial/clps711x.c | 2 +- drivers/tty/serial/cpm_uart/cpm_uart_core.c | 2 +- drivers/tty/serial/digicolor-usart.c | 2 +- drivers/tty/serial/dz.c | 2 +- drivers/tty/serial/fsl_linflexuart.c | 2 +- drivers/tty/serial/fsl_lpuart.c | 6 +++--- drivers/tty/serial/icom.c | 2 +- drivers/tty/serial/imx.c | 6 +++--- drivers/tty/serial/ip22zilog.c | 4 ++-- drivers/tty/serial/jsm/jsm_tty.c | 2 +- drivers/tty/serial/kgdb_nmi.c | 2 +- drivers/tty/serial/lantiq.c | 4 ++-- drivers/tty/serial/liteuart.c | 2 +- drivers/tty/serial/lpc32xx_hs.c | 2 +- drivers/tty/serial/max3100.c | 4 ++-- drivers/tty/serial/max310x.c | 2 +- drivers/tty/serial/mcf.c | 2 +- drivers/tty/serial/men_z135_uart.c | 2 +- drivers/tty/serial/meson_uart.c | 2 +- drivers/tty/serial/milbeaut_usio.c | 2 +- drivers/tty/serial/mpc52xx_uart.c | 2 +- drivers/tty/serial/mps2-uart.c | 4 ++-- drivers/tty/serial/msm_serial.c | 6 +++--- drivers/tty/serial/mux.c | 2 +- drivers/tty/serial/mvebu-uart.c | 2 +- drivers/tty/serial/mxs-auart.c | 4 ++-- drivers/tty/serial/omap-serial.c | 2 +- drivers/tty/serial/owl-uart.c | 2 +- drivers/tty/serial/pch_uart.c | 4 ++--
Quoted 8 lines
drivers/tty/serial/pic32_uart.c | 2 +- drivers/tty/serial/pmac_zilog.c | 4 ++-- drivers/tty/serial/pxa.c | 2 +- drivers/tty/serial/qcom_geni_serial.c | 4 ++-- drivers/tty/serial/rda-uart.c | 2 +- drivers/tty/serial/rp2.c | 2 +- drivers/tty/serial/sa1100.c | 2 +- drivers/tty/serial/samsung_tty.c | 6 +++---
For Samsung:
BR,
Krzysztof
Re: [PATCH 08/16] tty: drivers/tty/serial/, stop using tty_flip_buffer_push
In reply to Jiri SlabyHello Jiri,
Quoted 6 lines · Jiri Slaby
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). We are going to remove the former, so call the latter directly indrivers/tty/serial/.Signed-off-by Jiri Slaby <[email protected]>
Thanks
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |
Re: [PATCH 08/16] tty: drivers/tty/serial/, stop using tty_flip_buffer_push
In reply to Jiri SlabyLe 14/09/2021 à 11:14, Jiri Slaby a écrit :
Quoted 6 lines
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). We are going to remove the former, so call the latter directly indrivers/tty/serial/.Signed-off-by Jiri Slaby <[email protected]>
For Atmel:
Re: [PATCH 08/16] tty: drivers/tty/serial/, stop using tty_flip_buffer_push
In reply to Jiri SlabyOn 2021-09-14 at 11:14:07 +0200, Jiri Slaby <[email protected]> wrote:
[...]
Quoted 2 lines
drivers/tty/serial/altera_jtaguart.c | 2 +- drivers/tty/serial/altera_uart.c | 2 +-
for these:
Thank you
Re: [PATCH 08/16] tty: drivers/tty/serial/, stop using tty_flip_buffer_push
In reply to Jiri SlabyQuoted 61 lines · Jiri Slaby
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). We are going to remove the former, so call the latter directly indrivers/tty/serial/.Signed-off-by Jiri Slaby <[email protected]>Cc Joel Stanley <[email protected]>Cc Andrew Jeffery <[email protected]>Cc Al Cooper <[email protected]>Cc Matthias Brugger <[email protected]>Cc Tobias Klauser <[email protected]>Cc Russell King <[email protected]>Cc Vineet Gupta <[email protected]>Cc Richard Genoud <[email protected]>Cc Nicolas Ferre <[email protected]>Cc Alexandre Belloni <[email protected]>Cc Ludovic Desroches <[email protected]>Cc Florian Fainelli <[email protected]>Cc Alexander Shiyan <[email protected]>Cc Baruch Siach <[email protected]>Cc "Maciej W. Rozycki" <[email protected]>Cc Shawn Guo <[email protected]>Cc Sascha Hauer <[email protected]>Cc Pengutronix Kernel Team <[email protected]>Cc Fabio Estevam <[email protected]>Cc NXP Linux Team <[email protected]>Cc Karol Gugala <[email protected]>Cc Mateusz Holenko <[email protected]>Cc Vladimir Zapolskiy <[email protected]>Cc Neil Armstrong <[email protected]>Cc Kevin Hilman <[email protected]>Cc Jerome Brunet <[email protected]>Cc Martin Blumenstingl <[email protected]>Cc Liviu Dudau <[email protected]>Cc Sudeep Holla <[email protected]>Cc Lorenzo Pieralisi <[email protected]>Cc Andy Gross <[email protected]>Cc Bjorn Andersson <[email protected]>Cc "Andreas Färber" <[email protected]>Cc Manivannan Sadhasivam <[email protected]>Cc Michael Ellerman <[email protected]>Cc Benjamin Herrenschmidt <[email protected]>Cc Paul Mackerras <[email protected]>Cc Kevin Cernekee <[email protected]>Cc Krzysztof Kozlowski <[email protected]>Cc Laxman Dewangan <[email protected]>Cc Thierry Reding <[email protected]>Cc Jonathan Hunter <[email protected]>Cc Palmer Dabbelt <[email protected]>Cc Paul Walmsley <[email protected]>Cc Orson Zhai <[email protected]>Cc Baolin Wang <[email protected]>Cc Chunyan Zhang <[email protected]>Cc Patrice Chotard <[email protected]>Cc Maxime Coquelin <[email protected]>Cc Alexandre Torgue <[email protected]>Cc "David S. Miller" <[email protected]>Cc Peter Korsgaard <[email protected]>Cc Timur Tabi <[email protected]>Cc Michal Simek <[email protected]>
Quoted 3 lines
--- drivers/tty/serial/21285.c | 2 +- drivers/tty/serial/8250/8250_aspeed_vuart.c | 2 +-
For the Aspeed change:
Re: [PATCH 08/16] tty: drivers/tty/serial/, stop using tty_flip_buffer_push
In reply to Jiri SlabyQuoted 7 lines · Jiri Slaby
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). We are going to remove the former, so call the latter directly indrivers/tty/serial/.
Quoted 12 lines
Signed-off-by Jiri Slaby <[email protected]>Cc Joel Stanley <[email protected]>Cc Andrew Jeffery <[email protected]>Cc Al Cooper <[email protected]>Cc Matthias Brugger <[email protected]>Cc Tobias Klauser <[email protected]>Cc Russell King <[email protected]>Cc Vineet Gupta <[email protected]>Cc Richard Genoud <[email protected]>Cc Nicolas Ferre <[email protected]>Cc Alexandre Belloni <[email protected]>Cc Ludovic Desroches <[email protected]>
[..]
For:
Quoted 1 line
drivers/tty/serial/atmel_serial.c | 6 +++---
Regards,
Signature · 1 line
Nicolas Ferre
Re: [PATCH 08/16] tty: drivers/tty/serial/, stop using tty_flip_buffer_push
In reply to Jiri SlabyQuoted 62 lines · Jiri Slaby
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). We are going to remove the former, so call the latter directly indrivers/tty/serial/.Signed-off-by Jiri Slaby <[email protected]>Cc Joel Stanley <[email protected]>Cc Andrew Jeffery <[email protected]>Cc Al Cooper <[email protected]>Cc Matthias Brugger <[email protected]>Cc Tobias Klauser <[email protected]>Cc Russell King <[email protected]>Cc Vineet Gupta <[email protected]>Cc Richard Genoud <[email protected]>Cc Nicolas Ferre <[email protected]>Cc Alexandre Belloni <[email protected]>Cc Ludovic Desroches <[email protected]>Cc Florian Fainelli <[email protected]>Cc Alexander Shiyan <[email protected]>Cc Baruch Siach <[email protected]>Cc "Maciej W. Rozycki" <[email protected]>Cc Shawn Guo <[email protected]>Cc Sascha Hauer <[email protected]>Cc Pengutronix Kernel Team <[email protected]>Cc Fabio Estevam <[email protected]>Cc NXP Linux Team <[email protected]>Cc Karol Gugala <[email protected]>Cc Mateusz Holenko <[email protected]>Cc Vladimir Zapolskiy <[email protected]>Cc Neil Armstrong <[email protected]>Cc Kevin Hilman <[email protected]>Cc Jerome Brunet <[email protected]>Cc Martin Blumenstingl <[email protected]>Cc Liviu Dudau <[email protected]>Cc Sudeep Holla <[email protected]>Cc Lorenzo Pieralisi <[email protected]>Cc Andy Gross <[email protected]>Cc Bjorn Andersson <[email protected]>Cc "Andreas Färber" <[email protected]>Cc Manivannan Sadhasivam <[email protected]>Cc Michael Ellerman <[email protected]>Cc Benjamin Herrenschmidt <[email protected]>Cc Paul Mackerras <[email protected]>Cc Kevin Cernekee <[email protected]>Cc Krzysztof Kozlowski <[email protected]>Cc Laxman Dewangan <[email protected]>Cc Thierry Reding <[email protected]>Cc Jonathan Hunter <[email protected]>Cc Palmer Dabbelt <[email protected]>Cc Paul Walmsley <[email protected]>Cc Orson Zhai <[email protected]>Cc Baolin Wang <[email protected]>Cc Chunyan Zhang <[email protected]>Cc Patrice Chotard <[email protected]>Cc Maxime Coquelin <[email protected]>Cc Alexandre Torgue <[email protected]>Cc "David S. Miller" <[email protected]>Cc Peter Korsgaard <[email protected]>Cc Timur Tabi <[email protected]>Cc Michal Simek <[email protected]>
Quoted 1 line
---
[snip]
For:
Quoted 1 line
drivers/tty/serial/sprd_serial.c | 4 ++--
Thanks,
Chunyan
Re: [PATCH 08/16] tty: drivers/tty/serial/, stop using tty_flip_buffer_push
In reply to Jiri SlabyQuoted 131 lines · Jiri Slaby
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). We are going to remove the former, so call the latter directly indrivers/tty/serial/.Signed-off-by Jiri Slaby <[email protected]>Cc Joel Stanley <[email protected]>Cc Andrew Jeffery <[email protected]>Cc Al Cooper <[email protected]>Cc Matthias Brugger <[email protected]>Cc Tobias Klauser <[email protected]>Cc Russell King <[email protected]>Cc Vineet Gupta <[email protected]>Cc Richard Genoud <[email protected]>Cc Nicolas Ferre <[email protected]>Cc Alexandre Belloni <[email protected]>Cc Ludovic Desroches <[email protected]>Cc Florian Fainelli <[email protected]>Cc Alexander Shiyan <[email protected]>Cc Baruch Siach <[email protected]>Cc "Maciej W. Rozycki" <[email protected]>Cc Shawn Guo <[email protected]>Cc Sascha Hauer <[email protected]>Cc Pengutronix Kernel Team <[email protected]>Cc Fabio Estevam <[email protected]>Cc NXP Linux Team <[email protected]>Cc Karol Gugala <[email protected]>Cc Mateusz Holenko <[email protected]>Cc Vladimir Zapolskiy <[email protected]>Cc Neil Armstrong <[email protected]>Cc Kevin Hilman <[email protected]>Cc Jerome Brunet <[email protected]>Cc Martin Blumenstingl <[email protected]>Cc Liviu Dudau <[email protected]>Cc Sudeep Holla <[email protected]>Cc Lorenzo Pieralisi <[email protected]>Cc Andy Gross <[email protected]>Cc Bjorn Andersson <[email protected]>Cc "Andreas Färber" <[email protected]>Cc Manivannan Sadhasivam <[email protected]>Cc Michael Ellerman <[email protected]>Cc Benjamin Herrenschmidt <[email protected]>Cc Paul Mackerras <[email protected]>Cc Kevin Cernekee <[email protected]>Cc Krzysztof Kozlowski <[email protected]>Cc Laxman Dewangan <[email protected]>Cc Thierry Reding <[email protected]>Cc Jonathan Hunter <[email protected]>Cc Palmer Dabbelt <[email protected]>Cc Paul Walmsley <[email protected]>Cc Orson Zhai <[email protected]>Cc Baolin Wang <[email protected]>Cc Chunyan Zhang <[email protected]>Cc Patrice Chotard <[email protected]>Cc Maxime Coquelin <[email protected]>Cc Alexandre Torgue <[email protected]>Cc "David S. Miller" <[email protected]>Cc Peter Korsgaard <[email protected]>Cc Timur Tabi <[email protected]>Cc Michal Simek <[email protected]>--- drivers/tty/serial/21285.c | 2 +- drivers/tty/serial/8250/8250_aspeed_vuart.c | 2 +- drivers/tty/serial/8250/8250_bcm7271.c | 2 +- drivers/tty/serial/8250/8250_dma.c | 2 +- drivers/tty/serial/8250/8250_mtk.c | 2 +- drivers/tty/serial/8250/8250_omap.c | 2 +- drivers/tty/serial/8250/8250_port.c | 2 +- drivers/tty/serial/altera_jtaguart.c | 2 +- drivers/tty/serial/altera_uart.c | 2 +- drivers/tty/serial/amba-pl010.c | 2 +- drivers/tty/serial/amba-pl011.c | 6 +++--- drivers/tty/serial/apbuart.c | 2 +- drivers/tty/serial/ar933x_uart.c | 2 +- drivers/tty/serial/arc_uart.c | 2 +- drivers/tty/serial/atmel_serial.c | 6 +++--- drivers/tty/serial/bcm63xx_uart.c | 2 +- drivers/tty/serial/clps711x.c | 2 +- drivers/tty/serial/cpm_uart/cpm_uart_core.c | 2 +- drivers/tty/serial/digicolor-usart.c | 2 +- drivers/tty/serial/dz.c | 2 +- drivers/tty/serial/fsl_linflexuart.c | 2 +- drivers/tty/serial/fsl_lpuart.c | 6 +++--- drivers/tty/serial/icom.c | 2 +- drivers/tty/serial/imx.c | 6 +++--- drivers/tty/serial/ip22zilog.c | 4 ++-- drivers/tty/serial/jsm/jsm_tty.c | 2 +- drivers/tty/serial/kgdb_nmi.c | 2 +- drivers/tty/serial/lantiq.c | 4 ++-- drivers/tty/serial/liteuart.c | 2 +- drivers/tty/serial/lpc32xx_hs.c | 2 +- drivers/tty/serial/max3100.c | 4 ++-- drivers/tty/serial/max310x.c | 2 +- drivers/tty/serial/mcf.c | 2 +- drivers/tty/serial/men_z135_uart.c | 2 +- drivers/tty/serial/meson_uart.c | 2 +- drivers/tty/serial/milbeaut_usio.c | 2 +- drivers/tty/serial/mpc52xx_uart.c | 2 +- drivers/tty/serial/mps2-uart.c | 4 ++-- drivers/tty/serial/msm_serial.c | 6 +++--- drivers/tty/serial/mux.c | 2 +- drivers/tty/serial/mvebu-uart.c | 2 +- drivers/tty/serial/mxs-auart.c | 4 ++-- drivers/tty/serial/omap-serial.c | 2 +- drivers/tty/serial/owl-uart.c | 2 +- drivers/tty/serial/pch_uart.c | 4 ++-- drivers/tty/serial/pic32_uart.c | 2 +- drivers/tty/serial/pmac_zilog.c | 4 ++-- drivers/tty/serial/pxa.c | 2 +- drivers/tty/serial/qcom_geni_serial.c | 4 ++-- drivers/tty/serial/rda-uart.c | 2 +- drivers/tty/serial/rp2.c | 2 +- drivers/tty/serial/sa1100.c | 2 +- drivers/tty/serial/samsung_tty.c | 6 +++--- drivers/tty/serial/sb1250-duart.c | 2 +- drivers/tty/serial/sc16is7xx.c | 2 +- drivers/tty/serial/sccnxp.c | 2 +- drivers/tty/serial/serial-tegra.c | 2 +- drivers/tty/serial/serial_core.c | 2 +- drivers/tty/serial/serial_txx9.c | 2 +- drivers/tty/serial/sh-sci.c | 12 ++++++------ drivers/tty/serial/sifive.c | 2 +- drivers/tty/serial/sprd_serial.c | 4 ++-- drivers/tty/serial/st-asc.c | 2 +- drivers/tty/serial/stm32-usart.c | 2 +- drivers/tty/serial/sunhv.c | 2 +- drivers/tty/serial/sunsab.c | 2 +- drivers/tty/serial/sunsu.c | 2 +- drivers/tty/serial/sunzilog.c | 4 ++-- drivers/tty/serial/tegra-tcu.c | 2 +-
Quoted 8 lines
drivers/tty/serial/timbuart.c | 2 +- drivers/tty/serial/uartlite.c | 2 +- drivers/tty/serial/ucc_uart.c | 2 +- drivers/tty/serial/vr41xx_siu.c | 2 +- drivers/tty/serial/vt8500_serial.c | 2 +- drivers/tty/serial/xilinx_uartps.c | 2 +- drivers/tty/serial/zs.c | 2 +- 76 files changed, 103 insertions(+), 103 deletions(-)
For meson_uart:
Neil
Re: [PATCH 08/16] tty: drivers/tty/serial/, stop using tty_flip_buffer_push
In reply to Jiri SlabyQuoted 5 lines · Jiri Slaby
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). We are going to remove the former, so call the latter directly indrivers/tty/serial/.
Quoted 8 lines
Signed-off-by Jiri Slaby <[email protected]>--- drivers/tty/serial/21285.c | 2 +- drivers/tty/serial/amba-pl010.c | 2 +- drivers/tty/serial/amba-pl011.c | 6 +++--- drivers/tty/serial/clps711x.c | 2 +- drivers/tty/serial/sa1100.c | 2 +- drivers/tty/serial/serial_core.c | 2 +-
Thanks.
Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
Re: [PATCH 08/16] tty: drivers/tty/serial/, stop using tty_flip_buffer_push
In reply to Jiri SlabyQuoted 61 lines · Jiri Slaby
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). We are going to remove the former, so call the latter directly indrivers/tty/serial/.Signed-off-by Jiri Slaby <[email protected]>Cc Joel Stanley <[email protected]>Cc Andrew Jeffery <[email protected]>Cc Al Cooper <[email protected]>Cc Matthias Brugger <[email protected]>Cc Tobias Klauser <[email protected]>Cc Russell King <[email protected]>Cc Vineet Gupta <[email protected]>Cc Richard Genoud <[email protected]>Cc Nicolas Ferre <[email protected]>Cc Alexandre Belloni <[email protected]>Cc Ludovic Desroches <[email protected]>Cc Florian Fainelli <[email protected]>Cc Alexander Shiyan <[email protected]>Cc Baruch Siach <[email protected]>Cc "Maciej W. Rozycki" <[email protected]>Cc Shawn Guo <[email protected]>Cc Sascha Hauer <[email protected]>Cc Pengutronix Kernel Team <[email protected]>Cc Fabio Estevam <[email protected]>Cc NXP Linux Team <[email protected]>Cc Karol Gugala <[email protected]>Cc Mateusz Holenko <[email protected]>Cc Vladimir Zapolskiy <[email protected]>Cc Neil Armstrong <[email protected]>Cc Kevin Hilman <[email protected]>Cc Jerome Brunet <[email protected]>Cc Martin Blumenstingl <[email protected]>Cc Liviu Dudau <[email protected]>Cc Sudeep Holla <[email protected]>Cc Lorenzo Pieralisi <[email protected]>Cc Andy Gross <[email protected]>Cc Bjorn Andersson <[email protected]>Cc "Andreas Färber" <[email protected]>Cc Manivannan Sadhasivam <[email protected]>Cc Michael Ellerman <[email protected]>Cc Benjamin Herrenschmidt <[email protected]>Cc Paul Mackerras <[email protected]>Cc Kevin Cernekee <[email protected]>Cc Krzysztof Kozlowski <[email protected]>Cc Laxman Dewangan <[email protected]>Cc Thierry Reding <[email protected]>Cc Jonathan Hunter <[email protected]>Cc Palmer Dabbelt <[email protected]>Cc Paul Walmsley <[email protected]>Cc Orson Zhai <[email protected]>Cc Baolin Wang <[email protected]>Cc Chunyan Zhang <[email protected]>Cc Patrice Chotard <[email protected]>Cc Maxime Coquelin <[email protected]>Cc Alexandre Torgue <[email protected]>Cc "David S. Miller" <[email protected]>Cc Peter Korsgaard <[email protected]>Cc Timur Tabi <[email protected]>Cc Michal Simek <[email protected]>
Quoted 1 line
---
Thanks,
Andreas
Signature · 4 lines
SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)
Re: [PATCH 08/16] tty: drivers/tty/serial/, stop using tty_flip_buffer_push
In reply to Jiri SlabyHi Jiri,
Quoted 6 lines · Jiri Slaby
Since commit
a9c3f68f3cd8d(tty: Fixlow_latencyBUG) in 2014,tty_flip_buffer_push()is only a wrapper totty_schedule_flip(). We are going to remove the former, so call the latter directly indrivers/tty/serial/.Signed-off-by Jiri Slaby <[email protected]>
for LPC32xx HS UART:
Quoted 1 line
drivers/tty/serial/lpc32xx_hs.c | 2 +-
--
Best wishes,
Vladimir