Linus Torvalds
c0c419c045
Merge tag 'staging-5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
...
Pull staging/IIO driver updates from Greg KH:
"Here is the large set of Staging and IIO driver patches for 5.9-rc1.
Lots of churn here, but overall the size increase in lines added is
small, while adding a load of new IIO drivers.
Major things in here:
- lots and lots of IIO new drivers and frameworks added
- IIO driver fixes and updates
- lots of tiny coding style cleanups for staging drivers
- vc04_services major reworks and cleanups
We had 3 set of drivers move out of staging in this round as well:
- wilc1000 wireless driver moved out of staging
- speakup moved out of staging
- most USB driver moved out of staging
Full details are in the shortlog.
All of these have been in linux-next with no reported issues. The last
few changes here were to resolve reported linux-next issues, and they
seem to have resolved the problems"
* tag 'staging-5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (428 commits)
staging: most: fix up movement of USB driver
staging: rts5208: clear alignment style issues
staging: r8188eu: replace rtw_netdev_priv define with inline function
staging: netlogic: clear alignment style issues
staging: android: ashmem: Fix lockdep warning for write operation
drivers: most: add USB adapter driver
staging: most: Use %pM format specifier for MAC addresses
staging: ks7010: Use %pM format specifier for MAC addresses
staging: qlge: qlge_dbg: removed comment repition
staging: wfx: Use flex_array_size() helper in memcpy()
staging: rtl8723bs: Align macro definitions
staging: rtl8723bs: Clean up function declations
staging: rtl8723bs: Fix coding style errors
drivers: staging: audio: Fix the missing header file for helper file
staging: greybus: audio: Enable GB codec, audio module compilation.
staging: greybus: audio: Add helper APIs for dynamic audio modules
staging: greybus: audio: Resolve compilation error in topology parser
staging: greybus: audio: Resolve compilation errors for GB codec module
staging: greybus: audio: Maintain jack list within GB Audio module
staging: greybus: audio: Update snd_jack FW usage as per new APIs
...
2020-08-06 14:36:13 -07:00
Greg Kroah-Hartman
5bbd90550d
staging: most: fix up movement of USB driver
...
When moving the most usb driver out of staging, we forgot to remove the
subdirectory out of the staging Makefile as well.
Fixes: 97a6f772f3 ("drivers: most: add USB adapter driver")
Cc: Christian Gromm <christian.gromm@microchip.com >
Reported-by: Michael Straube <straube.linux@gmail.com >
Link: https://lore.kernel.org/r/20200802092139.GA140088@kroah.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-08-02 12:47:40 +02:00
Christian Gromm
97a6f772f3
drivers: most: add USB adapter driver
...
This patch adds the USB driver source file most_usb.c and
modifies the Makefile and Kconfig accordingly.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Link: https://lore.kernel.org/r/1596198058-26541-1-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-07-31 14:38:12 +02:00
Andy Shevchenko
11c416e3f0
staging: most: Use %pM format specifier for MAC addresses
...
Convert to %pM instead of using custom code.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20200730151506.38827-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-07-31 09:47:45 +02:00
Kees Cook
b13fecb1c3
treewide: Replace DECLARE_TASKLET() with DECLARE_TASKLET_OLD()
...
This converts all the existing DECLARE_TASKLET() (and ...DISABLED)
macros with DECLARE_TASKLET_OLD() in preparation for refactoring the
tasklet callback type. All existing DECLARE_TASKLET() users had a "0"
data argument, it has been removed here as well.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Acked-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: Kees Cook <keescook@chromium.org >
2020-07-30 11:15:58 -07:00
Christian Gromm
7f921e92e7
staging: most: usb: remove NET dependency
...
This patch removes the dependency to NET as it is no longer needed.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Link: https://lore.kernel.org/r/1595927275-27462-1-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-07-29 14:00:25 +02:00
Christian Gromm
75d0bf8762
staging: most: sound: remove overcautious argument checking
...
The interface pointer passed to a component API function cannot be NULL.
This patch removes the unnecessary sanity check of this argument.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Link: https://lore.kernel.org/r/1592924855-25569-6-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-06-25 15:41:17 +02:00
Christian Gromm
749a14343e
staging: most: sound: fix white spaces
...
This patch removes unnecessary empty lines.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Link: https://lore.kernel.org/r/1592924855-25569-5-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-06-25 15:41:17 +02:00
Christian Gromm
b1abd84d55
staging: most: sound: fix return values
...
This patch returns the proper values when reporting an error
to the caller.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Link: https://lore.kernel.org/r/1592924855-25569-4-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-06-25 15:41:17 +02:00
Christian Gromm
36b67efe0c
staging: most: sound: fix error path
...
Return error and exit the function in case registering the component
with the core is failing.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Link: https://lore.kernel.org/r/1592924855-25569-3-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-06-25 15:41:17 +02:00
Christian Gromm
c0b122a04e
staging: most: sound: remove noisy log messages
...
This patch removes unnecessary log messages to avoid noise
in the kernel log.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Link: https://lore.kernel.org/r/1592924855-25569-2-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-06-25 15:41:17 +02:00
Christian Gromm
0ae9e4f22d
staging: most: cdev: simplify list iteration
...
This patch uses a less confusing list traversing structure to
either return an item of the list that meets the prerequisites
or NULL otherwise.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Link: https://lore.kernel.org/r/1592815695-19305-7-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-06-25 15:40:28 +02:00
Christian Gromm
78aee65166
staging: most: cdev: fix return values
...
This patch makes use of the proper return values when reporting
an error to the caller.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Link: https://lore.kernel.org/r/1592815695-19305-6-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-06-25 15:40:28 +02:00
Christian Gromm
e8e0f7fd77
staging: most: cdev: fix up parenthesizing
...
This patch removes unnecessary parnthesis.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Link: https://lore.kernel.org/r/1592815695-19305-5-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-06-25 15:40:28 +02:00
Christian Gromm
7aed13d165
staging: most: cdev: remove overcautious parameter checking
...
The interface pointer passed to a component API function cannot be NULL.
This patch removes unnecessary sanity checks of the pointer.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Link: https://lore.kernel.org/r/1592815695-19305-4-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-06-25 15:40:28 +02:00
Christian Gromm
08839388d3
staging: most: cdev: use dev_*() functions to print messages
...
This patch removes the pr_*() functions and uses dev_*() instead.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Link: https://lore.kernel.org/r/1592815695-19305-3-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-06-25 15:40:28 +02:00
Christian Gromm
61fd971edd
staging: most: cdev: remove noisy log messages
...
This patch removes unnecessary log messages to avoid
noise in the kernel log.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Link: https://lore.kernel.org/r/1592815695-19305-2-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-06-25 15:40:28 +02:00
Masahiro Yamada
a7f7f6248d
treewide: replace '---help---' in Kconfig files with 'help'
...
Since commit 84af7a6194 ("checkpatch: kconfig: prefer 'help' over
'---help---'"), the number of '---help---' has been gradually
decreasing, but there are still more than 2400 instances.
This commit finishes the conversion. While I touched the lines,
I also fixed the indentation.
There are a variety of indentation styles found.
a) 4 spaces + '---help---'
b) 7 spaces + '---help---'
c) 8 spaces + '---help---'
d) 1 space + 1 tab + '---help---'
e) 1 tab + '---help---' (correct indentation)
f) 1 tab + 1 space + '---help---'
g) 1 tab + 2 spaces + '---help---'
In order to convert all of them to 1 tab + 'help', I ran the
following commend:
$ find . -name 'Kconfig*' | xargs sed -i 's/^[[:space:]]*---help---/\thelp/'
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org >
2020-06-14 01:57:21 +09:00
Christian Gromm
11974ace2d
staging: most: usb: init return value in default path of switch/case expression
...
This patch avoids returning an uninitialized value in the default
path of the switch expression.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Reported-by: Dan Carpenter <dan.carpenter@oracle.com >
Link: https://lore.kernel.org/r/1590669703-20004-1-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-05-29 12:35:59 +02:00
Christian Gromm
549d2db702
staging: most: usb: use function sysfs_streq
...
This patch replaces function strcmp() with sysfs_streq() to compare
strings provided via sysfs.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Reported-by: Dan Carpenter <dan.carpenter@oracle.com >
Link: https://lore.kernel.org/r/1590570387-27069-11-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-05-27 12:26:13 +02:00
Christian Gromm
f1f48239cd
staging: most: usb: add missing put_device calls
...
This patch adds the missing put_device() function calls to
properly free allocated resources and maintain reference counts.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Reported-by: Dan Carpenter <dan.carpenter@oracle.com >
Link: https://lore.kernel.org/r/1590570387-27069-10-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-05-27 12:26:13 +02:00
Christian Gromm
f470a5b01b
staging: most: usb: use correct error codes
...
This patch uses the -EINVAL return code where -EFAULT is wrongly being
used.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Reported-by: Dan Carpenter <dan.carpenter@oracle.com >
Link: https://lore.kernel.org/r/1590570387-27069-9-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-05-27 12:26:13 +02:00
Christian Gromm
1fd4fb8c62
staging: most: usb: replace code to calculate array index
...
This patch removes the expression that makes use of a priori knowledge
about channel numbers to calculate an array index.
The expression 'peer = 1 - channel' utilizes the fact that an USB interface
that operates on the asynchronous data of the Network only has two
endpoints. Hence, channel being 0 or 1. The replacement is more simple and
less confusing when reading the code.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Reported-by: Dan Carpenter <dan.carpenter@oracle.com >
Link: https://lore.kernel.org/r/1590570387-27069-8-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-05-27 12:26:12 +02:00
Christian Gromm
6405fe2142
staging: most: usb: don't use error path to exit function on success
...
This patch makes it transparent whether the function is exiting
with an error or successful.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Reported-by: Dan Carpenter <dan.carpenter@oracle.com >
Link: https://lore.kernel.org/r/1590570387-27069-7-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-05-27 12:26:12 +02:00
Christian Gromm
8bf56cfafa
staging: most: usb: move allocation of URB out of critical section
...
This patch puts the call to usb_alloc_urb() before the critical
section starts that is protected with the io_mutex lock. This is
to make the section as short as possible and to use the regular
GFP_KERNEL flag.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com >
Reported-by: Dan Carpenter <dan.carpenter@oracle.com >
Link: https://lore.kernel.org/r/1590570387-27069-6-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-05-27 12:24:46 +02:00