net: mctp: start tx queue on netdev openWe stop queues in ndo_stop, so they need to be restarted in ndo_open.This allows us to resume tx after a link down/up cycle.Suggested-by: Nitin Singh <nit
net: mctp: start tx queue on netdev openWe stop queues in ndo_stop, so they need to be restarted in ndo_open.This allows us to resume tx after a link down/up cycle.Suggested-by: Nitin Singh <nitsingh@nvidia.com>Fixes: 0791c0327a6e ("net: mctp: Add MCTP USB transport driver")Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>Link: https://patch.msgid.link/20250526-dev-mctp-usb-v1-1-c7bd6cb75aa0@codeconstruct.com.auSigned-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netMerge in late fixes to prepare for the 6.15 net-next PR.No conflicts, adjacent changes:drivers/net/ethernet/broadcom/bnxt/bnxt.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netMerge in late fixes to prepare for the 6.15 net-next PR.No conflicts, adjacent changes:drivers/net/ethernet/broadcom/bnxt/bnxt.c 919f9f497dbc ("eth: bnxt: fix out-of-range access of vnic_info array") fe96d717d38e ("bnxt_en: Extend queue stop/start for TX rings")Signed-off-by: Jakub Kicinski <kuba@kernel.org>
mctp: Fix incorrect tx flow invalidation condition in mctp-i2cPreviously, the condition for invalidating the tx flow inmctp_i2c_invalidate_tx_flow() checked if `rc` was nonzero.However, this coul
mctp: Fix incorrect tx flow invalidation condition in mctp-i2cPreviously, the condition for invalidating the tx flow inmctp_i2c_invalidate_tx_flow() checked if `rc` was nonzero.However, this could incorrectly trigger the invalidationeven when `rc > 0` was returned as a success status.This patch updates the condition to explicitly check for `rc < 0`,ensuring that only error cases trigger the invalidation.Signed-off-by: Daniel Hsu <Daniel-Hsu@quantatw.com>Reviewed-by: Jeremy Kerr <jk@codeconstruct.com.au>Signed-off-by: David S. Miller <davem@davemloft.net>
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netCross-merge networking fixes after downstream PR (net-6.14-rc6).Conflicts:tools/testing/selftests/drivers/net/ping.py 75cc19c8ff8
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netCross-merge networking fixes after downstream PR (net-6.14-rc6).Conflicts:tools/testing/selftests/drivers/net/ping.py 75cc19c8ff89 ("selftests: drv-net: add xdp cases for ping.py") de94e8697405 ("selftests: drv-net: store addresses in dict indexed by ipver")https://lore.kernel.org/netdev/20250311115758.17a1d414@canb.auug.org.au/net/core/devmem.c a70f891e0fa0 ("net: devmem: do not WARN conditionally after netdev_rx_queue_restart()") 1d22d3060b9b ("net: drop rtnl_lock for queue_mgmt operations")https://lore.kernel.org/netdev/20250313114929.43744df1@canb.auug.org.au/Adjacent changes:tools/testing/selftests/net/Makefile 6f50175ccad4 ("selftests: Add IPv6 link-local address generation tests for GRE devices.") 2e5584e0f913 ("selftests/net: expand cmsg_ipv6.sh with ipv4")drivers/net/ethernet/broadcom/bnxt/bnxt.c 661958552eda ("eth: bnxt: do not use BNXT_VNIC_NTUPLE unconditionally in queue restart logic") fe96d717d38e ("bnxt_en: Extend queue stop/start for TX rings")Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net: mctp i2c: Copy headers if clonedUse skb_cow_head() prior to modifying the TX SKB. This is necessarywhen the SKB has been cloned, to avoid modifying other shared clones.Signed-off-by: Matt J
net: mctp i2c: Copy headers if clonedUse skb_cow_head() prior to modifying the TX SKB. This is necessarywhen the SKB has been cloned, to avoid modifying other shared clones.Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>Fixes: f5b8abf9fc3d ("mctp i2c: MCTP I2C binding driver")Link: https://patch.msgid.link/20250306-matt-mctp-i2c-cow-v1-1-293827212681@codeconstruct.com.auSigned-off-by: Jakub Kicinski <kuba@kernel.org>
net: mctp i3c: Copy headers if clonedUse skb_cow_head() prior to modifying the tx skb. This is necessarywhen the skb has been cloned, to avoid modifying other shared clones.Signed-off-by: Matt J
net: mctp i3c: Copy headers if clonedUse skb_cow_head() prior to modifying the tx skb. This is necessarywhen the skb has been cloned, to avoid modifying other shared clones.Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>Fixes: c8755b29b58e ("mctp i3c: MCTP I3C driver")Link: https://patch.msgid.link/20250306-matt-i3c-cow-head-v1-1-d5e6a5495227@codeconstruct.com.auSigned-off-by: Jakub Kicinski <kuba@kernel.org>
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netCross-merge networking fixes after downstream PR (net-6.14-rc6).Conflicts:net/ethtool/cabletest.c 2bcf4772e45a ("net: ethtool: tr
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netCross-merge networking fixes after downstream PR (net-6.14-rc6).Conflicts:net/ethtool/cabletest.c 2bcf4772e45a ("net: ethtool: try to protect all callback with netdev instance lock") 637399bf7e77 ("net: ethtool: netlink: Allow NULL nlattrs when getting a phy_device")No Adjacent changes.Signed-off-by: Jakub Kicinski <kuba@kernel.org>
mctp i3c: handle NULL header addressdaddr can be NULL if there is no neighbour table entry present,in that case the tx packet should be dropped.saddr will usually be set by MCTP core, but check
mctp i3c: handle NULL header addressdaddr can be NULL if there is no neighbour table entry present,in that case the tx packet should be dropped.saddr will usually be set by MCTP core, but check for NULL in case apacket is transmitted by a different protocol.Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>Fixes: c8755b29b58e ("mctp i3c: MCTP I3C driver")Link: https://patch.msgid.link/20250304-mctp-i3c-null-v1-1-4416bbd56540@codeconstruct.com.auSigned-off-by: Paolo Abeni <pabeni@redhat.com>
net: mctp: Add MCTP USB transport driverAdd an implementation for DMTF DSP0283, which defines a MCTP-over-USBtransport. As per that spec, we're restricted to full speed mode,requiring 512-byte tr
net: mctp: Add MCTP USB transport driverAdd an implementation for DMTF DSP0283, which defines a MCTP-over-USBtransport. As per that spec, we're restricted to full speed mode,requiring 512-byte transfers.Each MCTP-over-USB interface is a peer-to-peer link to a single MCTPendpoint, so no physical addressing is required (of course, that MCTPendpoint may then bridge to further MCTP endpoints). Consequently,interfaces will report with no lladdr data: # mctp link dev lo index 1 address 00:00:00:00:00:00 net 1 mtu 65536 up dev mctpusb0 index 6 address none net 1 mtu 68 upThis is a simple initial implementation, with single rx & tx urbs, andno multi-packet tx transfers - although we do accept multi-packet rxfrom the device.Includes suggested fixes from Santosh Puranik <spuranik@nvidia.com>.Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>Cc: Santosh Puranik <spuranik@nvidia.com>Link: https://patch.msgid.link/20250221-dev-mctp-usb-v3-2-3353030fe9cc@codeconstruct.com.auSigned-off-by: Jakub Kicinski <kuba@kernel.org>
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netCross-merge networking fixes after downstream PR (net-6.13-rc7).Conflicts: a42d71e322a8 ("net_sched: sch_cake: Add drop reasons")
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netCross-merge networking fixes after downstream PR (net-6.13-rc7).Conflicts: a42d71e322a8 ("net_sched: sch_cake: Add drop reasons") 737d4d91d35b ("sched: sch_cake: add bounds checks to host bulk flow fairness counts")Adjacent changes:drivers/net/ethernet/meta/fbnic/fbnic.h 3a856ab34726 ("eth: fbnic: add IRQ reuse support") 95978931d55f ("eth: fbnic: Revert "eth: fbnic: Add hardware monitoring support via HWMON interface"")Signed-off-by: Jakub Kicinski <kuba@kernel.org>
mctp i3c: fix MCTP I3C driver multi-thread issueWe found a timeout problem with the pldm command on our system. Thereason is that the MCTP-I3C driver has a race condition when receivingmultiple-
mctp i3c: fix MCTP I3C driver multi-thread issueWe found a timeout problem with the pldm command on our system. Thereason is that the MCTP-I3C driver has a race condition when receivingmultiple-packet messages in multi-thread, resulting in a wrong packetorder problem.We identified this problem by adding a debug message to themctp_i3c_read function.According to the MCTP spec, a multiple-packet message must be composedin sequence, and if there is a wrong sequence, the whole message will bediscarded and wait for the next SOM.For example, SOM → Pkt Seq #2 → Pkt Seq #1 → Pkt Seq #3 → EOM.Therefore, we try to solve this problem by adding a mutex to themctp_i3c_read function. Before the modification, when a commandrequesting a multiple-packet message response is sent consecutively, anerror usually occurs within 100 loops. After the mutex, it can gothrough 40000 loops without any error, and it seems to run well.Fixes: c8755b29b58e ("mctp i3c: MCTP I3C driver")Signed-off-by: Leo Yang <Leo-Yang@quantatw.com>Link: https://patch.msgid.link/20250107031529.3296094-1-Leo-Yang@quantatw.com[pabeni@redhat.com: dropped already answered question from changelog]Signed-off-by: Paolo Abeni <pabeni@redhat.com>
mctp i2c: drop check because i2c_unregister_device() is NULL safeNo need to check the argument of i2c_unregister_device() because thefunction itself does it.Signed-off-by: Wolfram Sang <wsa+rene
mctp i2c: drop check because i2c_unregister_device() is NULL safeNo need to check the argument of i2c_unregister_device() because thefunction itself does it.Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>Link: https://patch.msgid.link/20241202082713.9719-1-wsa+renesas@sang-engineering.comSigned-off-by: Paolo Abeni <pabeni@redhat.com>
net: mctp: Expose transport binding identifier via IFLA attributeMCTP control protocol implementations are transport binding dependent.Endpoint discovery is mandatory based on transport binding.M
net: mctp: Expose transport binding identifier via IFLA attributeMCTP control protocol implementations are transport binding dependent.Endpoint discovery is mandatory based on transport binding.Message timing requirements are specified in each respective transportbinding specification.However, we currently have no means to get this information from MCTPlinks.Add a IFLA_MCTP_PHYS_BINDING netlink link attribute, which representsthe transport type using the DMTF DSP0239-defined type numbers, returnedas part of RTM_GETLINK data.We get an IFLA_MCTP_PHYS_BINDING attribute for each MCTP link, forexample:- 0x00 (unspec) for loopback interface;- 0x01 (SMBus/I2C) for mctpi2c%d interfaces; and- 0x05 (serial) for mctpserial%d interfaces.Signed-off-by: Khang Nguyen <khangng@os.amperecomputing.com>Reviewed-by: Matt Johnston <matt@codeconstruct.com.au>Link: https://patch.msgid.link/20241105071915.821871-1-khangng@os.amperecomputing.comSigned-off-by: Jakub Kicinski <kuba@kernel.org>
mctp i2c: handle NULL header addressdaddr can be NULL if there is no neighbour table entry present,in that case the tx packet should be dropped.saddr will usually be set by MCTP core, but check
mctp i2c: handle NULL header addressdaddr can be NULL if there is no neighbour table entry present,in that case the tx packet should be dropped.saddr will usually be set by MCTP core, but check for NULL in case apacket is transmitted by a different protocol.Fixes: f5b8abf9fc3d ("mctp i2c: MCTP I2C binding driver")Cc: stable@vger.kernel.orgReported-by: Dung Cao <dung@os.amperecomputing.com>Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>Reviewed-by: Simon Horman <horms@kernel.org>Link: https://patch.msgid.link/20241022-mctp-i2c-null-dest-v3-1-e929709956c5@codeconstruct.com.auSigned-off-by: Jakub Kicinski <kuba@kernel.org>
move asm/unaligned.h to linux/unaligned.hasm/unaligned.h is always an include of asm-generic/unaligned.h;might as well move that thing to linux/unaligned.h and includethat - there's nothing arch-
move asm/unaligned.h to linux/unaligned.hasm/unaligned.h is always an include of asm-generic/unaligned.h;might as well move that thing to linux/unaligned.h and includethat - there's nothing arch-specific in that header.auto-generated by the following:for i in `git grep -l -w asm/unaligned.h`; do sed -i -e "s/asm\/unaligned.h/linux\/unaligned.h/" $idonefor i in `git grep -l -w asm-generic/unaligned.h`; do sed -i -e "s/asm-generic\/unaligned.h/linux\/unaligned.h/" $idonegit mv include/asm-generic/unaligned.h include/linux/unaligned.hgit mv tools/include/asm-generic/unaligned.h tools/include/linux/unaligned.hsed -i -e "/unaligned.h/d" include/asm-generic/Kbuildsed -i -e "s/__ASM_GENERIC/__LINUX/" include/linux/unaligned.h tools/include/linux/unaligned.h
Merge tag 'tty-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/ttyPull tty / serial driver updates from Greg KH: "Here is the "big" set of tty/serial driver updates for 6.12-rc1.
Merge tag 'tty-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/ttyPull tty / serial driver updates from Greg KH: "Here is the "big" set of tty/serial driver updates for 6.12-rc1. Nothing major in here, just nice forward progress in the slow cleanup of the serial apis, and lots of other driver updates and fixes. Included in here are: - serial api updates from Jiri to make things more uniform and sane - 8250_platform driver cleanups - samsung serial driver fixes and updates - qcom-geni serial driver fixes from Johan for the bizarre UART engine that that chip seems to have. Hopefully it's in a better state now, but hardware designers still seem to come up with more ways to make broken UARTS 40+ years after this all should have finished. - sc16is7xx driver updates - omap 8250 driver updates - 8250_bcm2835aux driver updates - a few new serial driver bindings added - other serial minor driver updates All of these have been in linux-next for a long time with no reported problems"* tag 'tty-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (65 commits) tty: serial: samsung: Fix serial rx on Apple A7-A9 tty: serial: samsung: Fix A7-A11 serial earlycon SError tty: serial: samsung: Use bit manipulation macros for APPLE_S5L_* tty: rp2: Fix reset with non forgiving PCIe host bridges serial: 8250_aspeed_vuart: Enable module autoloading serial: qcom-geni: fix polled console corruption serial: qcom-geni: disable interrupts during console writes serial: qcom-geni: fix console corruption serial: qcom-geni: introduce qcom_geni_serial_poll_bitfield() serial: qcom-geni: fix arg types for qcom_geni_serial_poll_bit() soc: qcom: geni-se: add GP_LENGTH/IRQ_EN_SET/IRQ_EN_CLEAR registers serial: qcom-geni: fix false console tx restart serial: qcom-geni: fix fifo polling timeout tty: hvc: convert comma to semicolon mxser: convert comma to semicolon serial: 8250_bcm2835aux: Fix clock imbalance in PM resume serial: sc16is7xx: convert bitmask definitions to use BIT() macro serial: sc16is7xx: fix copy-paste errors in EFR_SWFLOWx_BIT constants serial: sc16is7xx: remove SC16IS7XX_MSR_DELTA_MASK serial: xilinx_uartps: Make cdns_rs485_supported static ...
net: mctp-serial: Fix missing escapes on transmit0x7d and 0x7e bytes are meant to be escaped in the data portion offrames, but this didn't occur since next_chunk_len() had an off-by-oneerror. Tha
net: mctp-serial: Fix missing escapes on transmit0x7d and 0x7e bytes are meant to be escaped in the data portion offrames, but this didn't occur since next_chunk_len() had an off-by-oneerror. That also resulted in the final byte of a payload being writtenas a separate tty write op.The chunk prior to an escaped byte would be one byte short, and thenext call would never test the txpos+1 case, which is where the escapedbyte was located. That meant it never hit the escaping case inmctp_serial_tx_work().Example Input: 01 00 08 c8 7e 80 02Previous incorrect chunks from next_chunk_len():01 00 08c8 7e 8002With this fix:01 00 08 c87e80 02Cc: stable@vger.kernel.orgFixes: a0c2ccd9b5ad ("mctp: Add MCTP-over-serial transport binding")Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>Signed-off-by: David S. Miller <davem@davemloft.net>
net: mctp-serial: Add kunit test for next_chunk_len()Test various edge cases of inputs that contain charactersthat need escaping.This adds a new kunit suite for mctp-serial.Signed-off-by: Matt
net: mctp-serial: Add kunit test for next_chunk_len()Test various edge cases of inputs that contain charactersthat need escaping.This adds a new kunit suite for mctp-serial.Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>Signed-off-by: David S. Miller <davem@davemloft.net>
mctp: serial: propagage new tty typesIn tty, u8 is now used for data, ssize_t for sizes (with possiblenegative error codes). Propagate these types (and use unsigned innext_chunk_len()) to mctp.
mctp: serial: propagage new tty typesIn tty, u8 is now used for data, ssize_t for sizes (with possiblenegative error codes). Propagate these types (and use unsigned innext_chunk_len()) to mctp.Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>Reviewed-by: Jeremy Kerr <jk@codeconstruct.com.au>Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>Cc: Jeremy Kerr <jk@codeconstruct.com.au>Cc: Matt Johnston <matt@codeconstruct.com.au>Cc: David S. Miller <davem@davemloft.net>Cc: Eric Dumazet <edumazet@google.com>Cc: Jakub Kicinski <kuba@kernel.org>Cc: Paolo Abeni <pabeni@redhat.com>Cc: netdev@vger.kernel.orgLink: https://lore.kernel.org/r/20240808103549.429349-7-jirislaby@kernel.orgSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net: mctp-i2c: invalidate flows immediately on TX errorsIf we encounter an error on i2c packet transmit, we won't have a validflow anymore; since we didn't transmit a valid packet sequence, we'll
net: mctp-i2c: invalidate flows immediately on TX errorsIf we encounter an error on i2c packet transmit, we won't have a validflow anymore; since we didn't transmit a valid packet sequence, we'llhave to wait for the key to timeout instead of dropping it on the reply.This causes the i2c lock to be held for longer than necessary.Instead, invalidate the flow on TX error, and release the i2c lockimmediately.Cc: Bonnie Lo <Bonnie_Lo@wiwynn.com>Tested-by: Jerry C Chen <Jerry_C_Chen@wiwynn.com>Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>Signed-off-by: David S. Miller <davem@davemloft.net>
net: Drop explicit initialization of struct i2c_device_id::driver_data to 0These drivers don't use the driver_data member of struct i2c_device_id,so don't explicitly initialize this member.This
net: Drop explicit initialization of struct i2c_device_id::driver_data to 0These drivers don't use the driver_data member of struct i2c_device_id,so don't explicitly initialize this member.This prepares putting driver_data in an anonymous union which requireseither no initialization or named designators. But it's also a nicecleanup on its own.While add it, also remove commas after the sentinel entries.Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>Reviewed-by: Petr Machata <petrm@nvidia.com> # For mlxswReviewed-by: Kory Maincent <Kory.maincent@bootlin.com>Reviewed-by: Jeremy Kerr <jk@codeconstruct.com.au> # for mctp-i2cReviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>Link: https://patch.msgid.link/20240625083853.2205977-2-u.kleine-koenig@baylibre.comSigned-off-by: Jakub Kicinski <kuba@kernel.org>
mctp i3c: MCTP I3C driverProvides MCTP network transport over an I3C bus, as specified inDMTF DSP0233.Each I3C bus (with "mctp-controller" devicetree property) gets an"mctpi3cX" net device crea
mctp i3c: MCTP I3C driverProvides MCTP network transport over an I3C bus, as specified inDMTF DSP0233.Each I3C bus (with "mctp-controller" devicetree property) gets an"mctpi3cX" net device created. I3C devices are reachable as remoteendpoints through that net device. Link layer addressing uses theI3C PID as a fixed hardware address for neighbour table entries.The driver matches I3C devices that have the MIPI assigned DCR 0xCC forMCTP.Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>Reviewed-by: Simon Horman <horms@kernel.org>Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tty: use u8 for flagsThis makes all those 'char's an explicit 'u8'. This is part of thecontinuing unification of chars and flags to be consistent u8.This approaches tty_port_default_receive_buf(
tty: use u8 for flagsThis makes all those 'char's an explicit 'u8'. This is part of thecontinuing unification of chars and flags to be consistent u8.This approaches tty_port_default_receive_buf().Note that we do not change signedness as we compile with-funsigned-char.Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>Cc: William Hubbs <w.d.hubbs@gmail.com>Cc: Chris Brannon <chris@the-brannons.com>Cc: Kirk Reiser <kirk@reisers.ca>Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>Cc: Marcel Holtmann <marcel@holtmann.org>Cc: Johan Hedberg <johan.hedberg@gmail.com>Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>Cc: Arnd Bergmann <arnd@arndb.de>Cc: "David S. Miller" <davem@davemloft.net>Cc: Eric Dumazet <edumazet@google.com>Cc: Jakub Kicinski <kuba@kernel.org>Cc: Paolo Abeni <pabeni@redhat.com>Cc: Max Staudt <max@enpas.org>Cc: Wolfgang Grandegger <wg@grandegger.com>Cc: Marc Kleine-Budde <mkl@pengutronix.de>Cc: Dario Binacchi <dario.binacchi@amarulasolutions.com>Cc: Andreas Koensgen <ajk@comnets.uni-bremen.de>Cc: Jeremy Kerr <jk@codeconstruct.com.au>Cc: Matt Johnston <matt@codeconstruct.com.au>Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>Cc: Liam Girdwood <lgirdwood@gmail.com>Cc: Mark Brown <broonie@kernel.org>Cc: Jaroslav Kysela <perex@perex.cz>Cc: Takashi Iwai <tiwai@suse.com>Acked-by: Mark Brown <broonie@kernel.org>Link: https://lore.kernel.org/r/20230810091510.13006-18-jirislaby@kernel.orgSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tty: use u8 for charsThis makes all those 'unsigned char's an explicit 'u8'. This is part ofthe continuing unification of chars and flags to be consistent u8.This approaches tty_port_default_rec
tty: use u8 for charsThis makes all those 'unsigned char's an explicit 'u8'. This is part ofthe continuing unification of chars and flags to be consistent u8.This approaches tty_port_default_receive_buf(). Flags to be next.Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>Cc: William Hubbs <w.d.hubbs@gmail.com>Cc: Chris Brannon <chris@the-brannons.com>Cc: Kirk Reiser <kirk@reisers.ca>Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>Cc: Arnd Bergmann <arnd@arndb.de>Cc: Max Staudt <max@enpas.org>Cc: Wolfgang Grandegger <wg@grandegger.com>Cc: Marc Kleine-Budde <mkl@pengutronix.de>Cc: "David S. Miller" <davem@davemloft.net>Cc: Eric Dumazet <edumazet@google.com>Cc: Jakub Kicinski <kuba@kernel.org>Cc: Paolo Abeni <pabeni@redhat.com>Cc: Dario Binacchi <dario.binacchi@amarulasolutions.com>Cc: Andreas Koensgen <ajk@comnets.uni-bremen.de>Cc: Jeremy Kerr <jk@codeconstruct.com.au>Cc: Matt Johnston <matt@codeconstruct.com.au>Cc: Liam Girdwood <lgirdwood@gmail.com>Cc: Mark Brown <broonie@kernel.org>Cc: Jaroslav Kysela <perex@perex.cz>Cc: Takashi Iwai <tiwai@suse.com>Cc: Peter Ujfalusi <peter.ujfalusi@gmail.com>Acked-by: Mark Brown <broonie@kernel.org>Link: https://lore.kernel.org/r/20230810091510.13006-17-jirislaby@kernel.orgSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tty: make tty_ldisc_ops::*buf*() hooks operate on size_tCount passed to tty_ldisc_ops::receive_buf*(), ::lookahead_buf(), andreturned from ::receive_buf2() is expected to be size_t. So set it tos
tty: make tty_ldisc_ops::*buf*() hooks operate on size_tCount passed to tty_ldisc_ops::receive_buf*(), ::lookahead_buf(), andreturned from ::receive_buf2() is expected to be size_t. So set it tosize_t to unify with the rest of the code.Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>Cc: William Hubbs <w.d.hubbs@gmail.com>Cc: Chris Brannon <chris@the-brannons.com>Cc: Kirk Reiser <kirk@reisers.ca>Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>Cc: Marcel Holtmann <marcel@holtmann.org>Cc: Johan Hedberg <johan.hedberg@gmail.com>Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>Cc: Arnd Bergmann <arnd@arndb.de>Cc: "David S. Miller" <davem@davemloft.net>Cc: Eric Dumazet <edumazet@google.com>Cc: Jakub Kicinski <kuba@kernel.org>Cc: Paolo Abeni <pabeni@redhat.com>Cc: Max Staudt <max@enpas.org>Cc: Wolfgang Grandegger <wg@grandegger.com>Cc: Marc Kleine-Budde <mkl@pengutronix.de>Cc: Dario Binacchi <dario.binacchi@amarulasolutions.com>Cc: Andreas Koensgen <ajk@comnets.uni-bremen.de>Cc: Jeremy Kerr <jk@codeconstruct.com.au>Cc: Matt Johnston <matt@codeconstruct.com.au>Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>Cc: Liam Girdwood <lgirdwood@gmail.com>Cc: Mark Brown <broonie@kernel.org>Cc: Jaroslav Kysela <perex@perex.cz>Cc: Takashi Iwai <tiwai@suse.com>Acked-by: Mark Brown <broonie@kernel.org>Link: https://lore.kernel.org/r/20230810091510.13006-16-jirislaby@kernel.orgSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
12