Commit Graph

6288 Commits (185833836cb6c4822058a0cfe64f7487bfe16a30)
 

Author SHA1 Message Date
pedro bcc788ffb8 Merge branch 'arm-master' into arm-sdk7 3 years ago
pedro d7b985a722 uqmi: update to 56cb2d4 (2022-05-04) snapshot 3 years ago
pedro afc979761d libubox: update to d2223ef (2022-05-15) snapshot 3 years ago
pedro f6f20fc73b zlib: update to 1.2.12
- add two fixes from the develop tree:
  05796d3d8d
  ec3df00224

- add as a patch:
  37c9730ba4
3 years ago
M_ars 286447b244 SDK7: enable USB2 and USB3 power at boot up by default
Note: remove code to manually enable/disable USB power at start_usb()/stop_usb(). Follow cfe/board_data default config.
3 years ago
M_ars 3ebce760f8 shared: wlscan.h - increase buffer for wireless survey (SDK6 and up) 3 years ago
pedro 2c3e008222 tor: update to 0.4.7.8 3 years ago
pedro 0eb7210a52 nettle: update to 3.8 3 years ago
pedro 4c5db71063 libsodium: update to latest 1.0.18-stable 3 years ago
M_ars ea48fd748f Wireless Survey: rework / optimize code for wl survey (GUI: tools-survey)
Changes:
- increase buffer for RT-N and up
- adjust scan wait time for RT-N and up
- add comments
3 years ago
M_ars b232e735b1 SDK6: enable USB2 and USB3 power at boot up by default
Note: remove code to manually enable/disable USB power at start_usb()/stop_usb(). Follow cfe/board_data default config.
3 years ago
pedro 2aed7d7c6f adblock: convert all lists to https; additionally add Steven Black list 3 years ago
pedro a9b8e1d71d build: only include adblock when image is built with TCONFIG_HTTPS
- all (or most) servers from the adblock list are now redirecting to https, so wget can't download them without OpenSSL
3 years ago
pedro f8a5dcaf93 others: remove now unneeded reference to localhost 3 years ago
pedro 71a5d4a30c kernel sdk6: drivers: usb: serial: usb-wwan: implement TIOCGSERIAL and TIOCSSERIAL to avoid blocking close(2)
Some devices (ex ZTE 2726) simply don't respond at all when data is sent
to some of their USB interfaces.  The data gets stuck in the TTYs queue
and sits there until close(2), which them blocks because closing_wait
defaults to 30 seconds (even though the fd is O_NONBLOCK).  This is
rarely desired.  Implement the standard mechanism to adjust closing_wait
and let applications handle it how they want to.

Signed-off-by: Dan Williams <dcbw@redhat.com>

Ref: 02303f7337
3 years ago
pedro 6da581e134 kernel sdk6: drivers: usb: convert the USB drivers to the new icount interface
Simple pasting job using the new ops function. Also fix a couple of devices
directly returning the internal struct (which happens at this point to match
for the fields that matter but isn't correct or futureproof)

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Ref: 0bca1b913a
3 years ago
pedro 680f7cb515 kernel sdk6: drivers: tty: make tiocgicount a handler
Dan Rosenberg noted that various drivers return the struct with uncleared
fields. Instead of spending forever trying to stomp all the drivers that
get it wrong (and every new driver) do the job in one place.

This first patch adds the needed operations and hooks them up, including
the needed USB midlayer and serial core plumbing.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Ref: d281da7ff6
3 years ago
pedro 0a4a90cf2b kernel sdk6: drivers: serial-core: restore termios settings when resume console ports
The commit 4547be7 rewrites suspend and resume functions. According
to this rewrite, when a serial port is a printk console device and
can suspend(without set no_console_suspend flag), it will definitely
call set_termios function during its resume, but parameter termios
isn't initialized, this will pass an unpredictable config to the
serial port. If this serial port is not a userspace opened tty device
, a suspend and resume action will make this serial port unusable.
I.E. ttyS0 is a printk console device, ttyS1 or keyboard+display is
userspace tty device, a suspend/resume action will make ttyS0
unusable.

If a serial port is both a printk console device and an opened tty
device, this issue can be overcome because it will call set_termios
again with the correct parameter in the uart_change_speed function.

Refer to the deleted content of commit 4547be7, revert parts relate
to restore settings into parameter termios. It is safe because if
a serial port is a printk console only device, the only meaningful
field in termios is c_cflag and its old config is saved in
uport->cons->cflag, if this port is also an opened tty device,
it will clear uport->cons->cflag in the uart_open and the old config
is saved in tty->termios.

Signed-off-by: Jason Wang <jason77.wang@gmail.com>
Acked-by: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Ref: 891b9dd107
3 years ago
pedro ced92f0fe6 kernel sdk6: drivers: serial-core: skip call set_termios/console_start when no_console_suspend
The commit 4547be7 rewrites suspend and resume functions, this
introduces a problem on the OMAP3EVM platoform. when the kernel boots
with no_console_suspend and we suspend the kernel, then resume it,
the serial console will be not usable. This problem should be common
for all platforms.
The cause for this problem is that when enter suspend, if we choose
no_console_suspend, the console_stop will be skiped. But in resume
function, the console port will be set to uninitialized state by
calling set_termios function and the console_start is called without
checking whether the no_console_suspend is set, Now fix it.

Signed-off-by: Jason Wang <jason77.wang@gmail.com>
Acked-by: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Ref: ca2e71aa8c
3 years ago
pedro 62a9ba5005 httpd: misc.c: use utf8 in asp_rrule() 3 years ago
pedro b18db283b1 kernel sdk7: drivers: usb: serial: usb-wwan: implement TIOCGSERIAL and TIOCSSERIAL to avoid blocking close(2)
Some devices (ex ZTE 2726) simply don't respond at all when data is sent
to some of their USB interfaces.  The data gets stuck in the TTYs queue
and sits there until close(2), which them blocks because closing_wait
defaults to 30 seconds (even though the fd is O_NONBLOCK).  This is
rarely desired.  Implement the standard mechanism to adjust closing_wait
and let applications handle it how they want to.

Signed-off-by: Dan Williams <dcbw@redhat.com>

Ref: 02303f7337
3 years ago
pedro a5aafcaa3e kernel sdk7: drivers: usb: convert the USB drivers to the new icount interface
Simple pasting job using the new ops function. Also fix a couple of devices
directly returning the internal struct (which happens at this point to match
for the fields that matter but isn't correct or futureproof)

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Ref: 0bca1b913a
3 years ago
pedro f0ef2a2bfa kernel sdk7: drivers: tty: make tiocgicount a handler
Dan Rosenberg noted that various drivers return the struct with uncleared
fields. Instead of spending forever trying to stomp all the drivers that
get it wrong (and every new driver) do the job in one place.

This first patch adds the needed operations and hooks them up, including
the needed USB midlayer and serial core plumbing.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Ref: d281da7ff6
3 years ago
pedro 0d5c60140d kernel sdk7: drivers: serial-core: restore termios settings when resume console ports
The commit 4547be7 rewrites suspend and resume functions. According
to this rewrite, when a serial port is a printk console device and
can suspend(without set no_console_suspend flag), it will definitely
call set_termios function during its resume, but parameter termios
isn't initialized, this will pass an unpredictable config to the
serial port. If this serial port is not a userspace opened tty device
, a suspend and resume action will make this serial port unusable.
I.E. ttyS0 is a printk console device, ttyS1 or keyboard+display is
userspace tty device, a suspend/resume action will make ttyS0
unusable.

If a serial port is both a printk console device and an opened tty
device, this issue can be overcome because it will call set_termios
again with the correct parameter in the uart_change_speed function.

Refer to the deleted content of commit 4547be7, revert parts relate
to restore settings into parameter termios. It is safe because if
a serial port is a printk console only device, the only meaningful
field in termios is c_cflag and its old config is saved in
uport->cons->cflag, if this port is also an opened tty device,
it will clear uport->cons->cflag in the uart_open and the old config
is saved in tty->termios.

Signed-off-by: Jason Wang <jason77.wang@gmail.com>
Acked-by: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Ref: 891b9dd107
3 years ago
pedro 75338ed9c1 kernel sdk7: drivers: serial-core: skip call set_termios/console_start when no_console_suspend
The commit 4547be7 rewrites suspend and resume functions, this
introduces a problem on the OMAP3EVM platoform. when the kernel boots
with no_console_suspend and we suspend the kernel, then resume it,
the serial console will be not usable. This problem should be common
for all platforms.
The cause for this problem is that when enter suspend, if we choose
no_console_suspend, the console_stop will be skiped. But in resume
function, the console port will be set to uninitialized state by
calling set_termios function and the console_start is called without
checking whether the no_console_suspend is set, Now fix it.

Signed-off-by: Jason Wang <jason77.wang@gmail.com>
Acked-by: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Ref: ca2e71aa8c
3 years ago
lancethepants ff32980d61 Merged in arm-master (pull request #99)
README: Remove unnecessary i386 packages step.
3 years ago
lancethepants 04b695f3f9 README: Remove unnecessary i386 packages step.
Rebuilt toolchain now runs natively on x86_64 architectures.
3 years ago
pedro 5f9172f39f others: switch4g: small fixes 3 years ago
M_ars b4c1dbfce9 build: adjust target clean (small addendum for flag NO_TRXKEY)
Note: clean up tools also before building the next image!

see commit 169cd4c107
3 years ago
pedro 38b870e754 kernel sdk7: drivers: usb: class: cdc-acm: updates from the upstream 3 years ago
pedro 4f2c89311d kernel sdk6: drivers: usb: class: cdc-acm: updates from the upstream 3 years ago
pedro 63dede404a kernel sdk6: drivers: usb: cdc-wdm: fix reading stuck on device close
- very important fix for E3372 modem users

Ref: 01e01f5c89
3 years ago
pedro ead66873de kernel sdk6: drivers: usb: cdc-wdm: fix reading stuck on device close
- very important fix for E3372 modem users

Ref: 01e01f5c89
3 years ago
pedro cbd5b31523 kernel sdk7: drivers: usb: ucblp: remove dbg() usage
Ref: 4f306309fc
3 years ago
pedro 58b62d65d9 kernel sdk6: drivers: usb: ucblp: remove dbg() usage
Ref: 4f306309fc
3 years ago
pedro 95829cf2e8 kernel sdk7: drivers: usb: convert drivers/usb/* to use module_usb_driver()
Ref: 65db430540
3 years ago
pedro 57eb0af11a kernel sdk6: drivers: usb: convert drivers/usb/* to use module_usb_driver()
Ref: 65db430540
3 years ago
pedro 53e34f1dc1 others: linkagg: fix warning messages, cosmetic 3 years ago
pedro 93b47ff8d9 kernel sdk7: drivers: net: usb: cdc_ncm: don't spew notifications
Ref: de658a195e
3 years ago
pedro c04efb9478 kernel sdk6: drivers: net: usb: cdc_ncm: don't spew notifications
Ref: de658a195e
3 years ago
pedro 0b51b585fb Merge branch 'arm-master' into arm-sdk7 3 years ago
pedro 6b743185d4 kernel sdk6: drivers: net: usb: qmi_wwan: updates from the upstream 3 years ago
pedro 41c29c8196 kernel sdk6: drivers: net: usb: usbnet: export usbnet_cdc_zte_rx_fixup (add forgotten part of the code)
Ref: 64b97df995
3 years ago
pedro 2db1ed230f kernel sdk6: drivers: net: usb: rndis_host: enable the bogus MAC fixup for ZTE devices from cdc_ether
Certain ZTE modems, namely: MF823. MF831, MF910, built-in modem from
MF286R, expose both CDC-ECM and RNDIS network interfaces.
They have a trait of ignoring the locally-administered MAC address
configured on the interface both in CDC-ECM and RNDIS part,
and this leads to dropping of incoming traffic by the host.
However, the workaround was only present in CDC-ECM, and MF286R
explicitly requires it in RNDIS mode.

Re-use the workaround in rndis_host as well, to fix operation of MF286R
module, some versions of which expose only the RNDIS interface. Do so by
introducing new flag, RNDIS_DRIVER_DATA_DST_MAC_FIXUP, and testing for it
in rndis_rx_fixup. This is required, as RNDIS uses frame batching, and all
of the packets inside the batch need the fixup. This might introduce a
performance penalty, because test is done for every returned Ethernet
frame.

Apply the workaround to both "flavors" of RNDIS interfaces, as older ZTE
modems, like MF823 found in the wild, report the USB_CLASS_COMM class
interfaces, while MF286R reports USB_CLASS_WIRELESS_CONTROLLER.

Suggested-by: Bjørn Mork <bjorn@mork.no>
Cc: Kristian Evensen <kristian.evensen@gmail.com>
Cc: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Ref: 36e747972d
3 years ago
pedro 3977db05f0 kernel sdk6: drivers: net: usb: rndis_host: support Hytera digital radios
Ref: 29262e1f77
3 years ago
pedro f07b32949d kernel sdk6: drivers: net: usb: rndis_host: set proper input size for OID_GEN_PHYSICAL_MEDIUM request
et proper input size for OID_GEN_PHYSICAL_MEDIUM request

MSFT ActiveSync implementation requires that the size of the response for
incoming query is to be provided in the request input length. Failure to
set the input size proper results in failed request transfer, where the
ActiveSync counterpart reports the NDIS_STATUS_INVALID_LENGTH (0xC0010014L)
error.

Set the input size for OID_GEN_PHYSICAL_MEDIUM query to the expected size
of the response in order for the ActiveSync to properly respond to the
request.

Fixes: 039ee17 ("rndis_host: Add RNDIS physical medium checking into generic_rndis_bind()")
Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Link: https://lore.kernel.org/r/20210108095839.3335-1-andrey.zhizhikin@leica-geosystems.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Ref: e56b3d94d9
3 years ago
pedro 6ecf614832 kernel sdk6: drivers: net: usb: rndis_host: increase sleep time in the query-response loop
Some WinCE devices face connectivity issues via the NDIS interface. They
fail to register, resulting in -110 timeout errors and failures during the
probe procedure.

In this kind of WinCE devices, the Windows-side ndis driver needs quite
more time to be loaded and configured, so that the linux rndis host queries
to them fail to be responded correctly on time.

More specifically, when INIT is called on the WinCE side - no other
requests can be served by the Client and this results in a failed QUERY
afterwards.

The increase of the waiting time on the side of the linux rndis host in
the command-response loop leaves the INIT process to complete and respond
to a QUERY, which comes afterwards. The WinCE devices with this special
"feature" in their ndis driver are satisfied by this fix.

Signed-off-by: Olympia Giannou <olympia.giannou@leica-geosystems.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Ref: 4202c9fdf0
3 years ago
pedro 6d1f499480 kernel sdk6: drivers: net: usb: cdc-ether: export usbnet_cdc_zte_rx_fixup; added support for Thales Cinterion PLSx3 modem family
Refs:
  64b97df995
  dad3a72f5e
3 years ago
pedro 0d4ac4d0d7 kernel sdk7: drivers: net: usb: qmi_wwan: updates from the upstream 3 years ago
pedro ec5b02c077 kernel sdk7: drivers: net: usb: usbnet: export usbnet_cdc_zte_rx_fixup (add forgotten part of the code)
Ref: 64b97df995
3 years ago