Commit Graph
873808 Commits
Author SHA1 Message Date
Dominic Braun 4f0922c87d staging: vc04_services: Remove VCHIQ_SET_SERVICE_OPTION_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:47:44 +01:00
Dominic Braun 7926c328d9 staging: vc04_services: Remove VCHIQ_SERVICE_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:47:44 +01:00
Dominic Braun d3af2bcc6e staging: vc04_services: Remove VCHIQ_SERVICE_QUOTA_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:47:44 +01:00
Dominic Braun 0b53ca3127 staging: vc04_services: Remove VCHIQ_SERVICE_PARAMS_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:47:44 +01:00
Dominic Braun c18cbdee79 staging: vc04_services: Remove VCHIQ_SERVICE_BASE_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:47:44 +01:00
Dominic Braun 87c091aadf staging: vc04_services: Remove VCHIQ_QUEUE_MESSAGE_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:46:22 +01:00
Dominic Braun 4040a7ee53 staging: vc04_services: Remove VCHIQ_QUEUE_BULK_TRANSFER_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:46:22 +01:00
Dominic Braun e896852528 staging: vc04_services: Remove VCHIQ_HEADER_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:46:22 +01:00
Dominic Braun 3515279e6e staging: vc04_services: Remove VCHIQ_GET_CONFIG_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:45:12 +01:00
Dominic Braun 392342b77c staging: vc04_services: Remove VCHIQ_DUMP_MEM_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:34:25 +01:00
Dominic Braun 8ca743a19a staging: vc04_services: Remove VCHIQ_DEQUEUE_MESSAGE_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:34:25 +01:00
Dominic Braun aa987e5513 staging: vc04_services: Remove VCHIQ_DEBUGFS_NODE_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:34:25 +01:00
Dominic Braun 562943286c staging: vc04_services: Remove VCHIQ_CREATE_SERVICE_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:34:25 +01:00
Dominic Braun 8b86744753 staging: vc04_services: Remove VCHIQ_CONFIG_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:31:47 +01:00
Dominic Braun e69106e55d staging: vc04_services: Remove VCHIQ_COMPLETION_DATA_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:31:47 +01:00
Dominic Braun bc96a5f0f7 staging: vc04_services: Remove VCHIQ_BULK_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:31:47 +01:00
Dominic Braun 029a8a1894 staging: vc04_services: Remove VCHIQ_BULK_QUEUE_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:31:47 +01:00
Dominic Braun cf69fc5216 staging: vc04_services: Remove VCHIQ_AWAIT_COMPLETION_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:31:47 +01:00
Dominic Braun e376ef3535 staging: vc04_services: Remove VCHIQ_ARM_STATE_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:31:47 +01:00
Dominic Braun 2be0bef086 staging: vc04_services: Remove VCHI_MSG_VECTOR_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:31:47 +01:00
Dominic Braun 2a6e3234d6 staging: vc04_services: Remove VCHI_MSG_ITER_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:31:47 +01:00
Dominic Braun 9d4d3ac473 staging: vc04_services: Remove VCHI_HELD_MSG_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:31:47 +01:00
Dominic Braun 4dfc415fc2 staging: vc04_services: Remove USER_SERVICE_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:31:47 +01:00
Dominic Braun 477e5caec4 staging: vc04_services: Remove SERVICE_CREATION_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:31:47 +01:00
Dominic Braun 4075fa9efc staging: vc04_services: Remove REMOTE_EVENT_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:31:47 +01:00
Dominic Braun 313b5681a3 staging: vc04_services: Remove PAGELIST_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:30:07 +01:00
Dominic Braun 4eef62d61c staging: vc04_services: Remove DUMP_CONTEXT_T typedef
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <[email protected]>
Signed-off-by: Tobias Büttner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:30:07 +01:00
Hardik Singh Rathore cb9a242c33 Staging: rtl8723bs: Fix code style issue in rtl8723bs driver
Add space between 'else' and '{' to solve code style issue
in all the files for rtl8723bs driver.

Signed-off-by: Hardik Singh Rathore <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:26:10 +01:00
Yangtao Li 0022290f1e staging: greybus: convert to DEFINE_SHOW_ATTRIBUTE
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code.

Signed-off-by: Yangtao Li <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:24:42 +01:00
Yangtao Li 892cb81ece staging: vc04_services: convert to DEFINE_SHOW_ATTRIBUTE
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code.

Signed-off-by: Yangtao Li <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:24:11 +01:00
Yangtao Li 2be1394596 staging: unisys: convert to DEFINE_SHOW_ATTRIBUTE
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code.

Signed-off-by: Yangtao Li <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:24:11 +01:00
Yangtao Li 29f85260ed staging: fwserial: convert to DEFINE_SHOW_ATTRIBUTE
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code.

Signed-off-by: Yangtao Li <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:24:07 +01:00
Ajay Singh 0b7b9b6c3d staging: wilc1000: fix NULL dereference inside wilc_scan()
Added NULL check before accessing 'hidden_net' pointer inside
wilc_scan() to fix the issue found by static code checker.

Fixes: 8f1a0ac1eb ("staging: wilc1000: handle scan operation callback from cfg80211 context")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Ajay Singh <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:24:06 +01:00
Nicolas Saenz Julienne 2da56630b1 staging: vchiq: delete vchiq_killable.h
There are no users for that header file.

Signed-off-by: Nicolas Saenz Julienne <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:20:37 +01:00
Nicolas Saenz Julienne ff5979ad86 staging: vchiq_2835_arm: quit using custom down_interruptible()
vchi_killable.h overrides down_interruptible() by implementing a
function similar to down_killable(). To make things simpler we turn
calls to down_interruptible() into kernel's implementation of
down_killable().

Signed-off-by: Nicolas Saenz Julienne <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:20:37 +01:00
Nicolas Saenz Julienne a772f11670 staging: vchiq: switch to wait_for_completion_killable
This fixes f27e47bc6b ("staging: vchiq: use completions instead of
semaphores") as it neglected the subtle down_interruptible() macro
override in vchiq_killable.h. Hence all completions should be killable
instead of interruptible.

Fixes: f27e47bc6b ("staging: vchiq: use completions instead of semaphores")
Reported-by: Arnd Bergmann <[email protected]>
Signed-off-by: Nicolas Saenz Julienne <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:20:37 +01:00
Dan Carpenter 649496b603 staging: bcm2835-audio: double free in init error path
We free instance here and in the caller.  It should be only the caller
which handles it.

Fixes: d7ca3a7154 ("staging: bcm2835-audio: Operate non-atomic PCM ops")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Takashi Iwai <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:18:51 +01:00
Lou Knauer 4765f68374 staging: mt7621-dma: fix unbalanced braces
Add braces to conditional statements if the other branch has them in
order to be more compliant with the linux kernel coding style.

Remaining checkpatch.pl issues include unnecessary line continuations
and use of non-conventional types.

Signed-off-by: Lou Knauer <[email protected]>
Signed-off-by: Philipp Panzer <[email protected]>
Reviewed-by: Matthias Brugger <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:17:28 +01:00
Amir Mahdi Ghorbanian 3dbf37c03b Staging: comedi: cb_pcidas: fixed a spelling mistake coding style issue
Fixed a coding style issue.

Signed-off-by: Amir Mahdi Ghorbanian <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:16:07 +01:00
Emmanuel Grumbach eca1e56cee iwlwifi: mvm: don't send GEO_TX_POWER_LIMIT to old firmwares
Old firmware versions don't support this command. Sending it
to any firmware before -41.ucode will crash the firmware.

This fixes https://bugzilla.kernel.org/show_bug.cgi?id=201975

Fixes: 66e839030f ("iwlwifi: fix wrong WGDS_WIFI_DATA_SIZE")
CC: <[email protected]> #4.19+
Signed-off-by: Emmanuel Grumbach <[email protected]>
Signed-off-by: Luca Coelho <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
2018-12-17 15:15:22 +02:00
Fabrizio Castro 1d6e81a288 usb: renesas_usbhs: add support for RZ/G2E
HS-USB found in RZ/G2E (a.k.a. r8a774c0) is very similar to the
one found in R-Car E3 (a.k.a. r8a77990), as it needs to release
the PLL reset by the UGCTRL register like R-Car E3, therefore add
r8a774c0 support in a similar fashion to what was done for the
r8a77990.

Signed-off-by: Fabrizio Castro <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Acked-by: Yoshihiro Shimoda <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:07:59 +01:00
Roger Quadros 8dc7623bf6 usb: ehci-omap: Fix deferred probe for phy handling
PHY model is being used on omap5 platforms even if port mode
is not OMAP_EHCI_PORT_MODE_PHY. So don't guess if PHY is required
or not based on PHY mode.

If PHY is provided in device tree, it must be required. So, if
devm_usb_get_phy_by_phandle() gives us an error code other
than -ENODEV (no PHY) then error out.

This fixes USB Ethernet on omap5-uevm if PHY happens to
probe after EHCI thus causing a -EPROBE_DEFER.

Cc: Johan Hovold <[email protected]>
Cc: Ladislav Michl <[email protected]>
Reported-by: Peter Ujfalusi <[email protected]>
Signed-off-by: Roger Quadros <[email protected]>
Tested-by: Peter Ujfalusi <[email protected]>
Acked-by: Tony Lindgren <[email protected]>
Acked-by: Alan Stern <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:07:59 +01:00
Heikki Krogerus c3788cd996 usb: roles: Add a description for the class to Kconfig
That makes the USB role switch support option visible and
selectable for the user. The class driver is also moved to
drivers/usb/roles/ directory.

This will fix an issue that we have with the Intel USB role
switch driver on systems that don't have USB Type-C connectors:

Intel USB role switch driver depends on the USB role switch
class as it should, but since there was no way for the user
to enable the USB role switch class, there was also no way
to select that driver. USB Type-C drivers select the USB
role switch class which makes the Intel USB role switch
driver available and therefore hides the problem.

So in practice Intel USB role switch driver was depending on
USB Type-C drivers.

Fixes: f6fb9ec02b ("usb: roles: Add Intel xHCI USB role switch driver")
Cc: <[email protected]>
Signed-off-by: Heikki Krogerus <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-17 14:07:59 +01:00
Boris Brezillon 732774437a mtd: rawnand: sunxi: Write pageprog related opcodes to WCMD_SET
The opcodes used by the controller when doing batched page prog should
be written in NFC_REG_WCMD_SET not FC_REG_RCMD_SET. Luckily, the
default NFC_REG_WCMD_SET value matches the one we set in the driver
which explains why we didn't notice the problem.

Fixes: 614049a8d9 ("mtd: nand: sunxi: add support for DMA assisted operations")
Signed-off-by: Boris Brezillon <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
2018-12-17 14:06:26 +01:00
Greg Kroah-Hartman 4733c0b466 Merge tag 'usb-ci-v4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/peter.chen/usb into usb-next
Peter writes:

- Improve the over-current handling for imx
- Add the HSIC support for imx

* tag 'usb-ci-v4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/peter.chen/usb:
  usb: chipidea: imx: allow to configure oc polarity on i.MX25
  usb: chipidea: imx: Warn if oc polarity isn't specified
  usb: chipidea: imx: support configuring for active low oc signal
  doc: usb: ci-hdrc-usb2: Add pinctrl properties for HSIC pin groups
  usb: chipidea: host: override ehci->hub_control
  usb: chipidea: imx: add HSIC support
  usb: chipidea: add flag for imx hsic implementation
2018-12-17 13:58:44 +01:00
Christoph Hellwig 7e849dd9cf nvme-pci: don't share queue maps
Now that the block layer checks if a queue map has any queues inside
it there is no more reason to duplicate the maps for the non-default
types.

Reviewed-by: Ming Lei <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
2018-12-17 05:44:45 -07:00
Christoph Hellwig 5aceaeb263 blk-mq: only dispatch to non-defauly queue maps if they have queues
We should check if a given queue map actually has queues enabled before
dispatching to it.  This allows drivers to not initialize optional but
not used map types, which subsequently will allow fixing problems with
queue map rebuilds for that case.

Reviewed-by: Ming Lei <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
2018-12-17 05:44:45 -07:00
Ming Lei 346fc1089e blk-mq: export hctx->type in debugfs instead of sysfs
Now we only export hctx->type via sysfs, and there isn't such info
in hctx entry under debugfs. We often use debugfs only to diagnose
queue mapping issue, so add the support in debugfs.

Queue mapping becomes a bit more complicated after multiple queue
mapping is supported, we may write blktest to verify if queue mapping
is valid based on blk-mq-debugfs.

Given not necessary to export hctx->type twice, so remove the export
from sysfs.

Cc: Jeff Moyer <[email protected]>
Cc: Mike Snitzer <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
2018-12-17 05:44:45 -07:00
Ming Lei 07b35eb5a3 blk-mq: fix allocation for queue mapping table
Type of each element in queue mapping table is 'unsigned int,
intead of 'struct blk_mq_queue_map)', so fix it.

Cc: Jeff Moyer <[email protected]>
Cc: Mike Snitzer <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
2018-12-17 05:37:23 -07:00
Claudiu Beznea 22a5a4a44c regulator: act8945a-regulator: fix 'defined but not used' compiler warning
Fix 'defined but not used' compiler warning for act8945a_suspend()
function in case CONFIG_PM_SLEEP is not defined.

Fixes: b5ebba46e6 ("regulator: act8945a-regulator: add shutdown function")
Signed-off-by: Claudiu Beznea <[email protected]>
Reported-by: Andrei Stefanescu <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
2018-12-17 12:30:57 +00:00