]> git.kernelconcepts.de Git - karo-tx-linux.git/log
karo-tx-linux.git
9 years agoARM: defconfig: tx48: enable UBIFS support KARO-TX48-2014-07-18
Lothar Waßmann [Thu, 17 Jul 2014 15:04:52 +0000 (17:04 +0200)]
ARM: defconfig: tx48: enable UBIFS support

9 years agoARM: defconfig: tx48: update for kernel version 3.16-rc3
Lothar Waßmann [Thu, 17 Jul 2014 14:03:45 +0000 (16:03 +0200)]
ARM: defconfig: tx48: update for kernel version 3.16-rc3

9 years agoASoC: am335x-tx48: disable debug messages
Lothar Waßmann [Thu, 17 Jul 2014 13:57:01 +0000 (15:57 +0200)]
ASoC: am335x-tx48: disable debug messages

9 years agospi: omap2-mcspi: fix blatant abuse of the resource subsystem
Lothar Waßmann [Thu, 17 Jul 2014 13:20:12 +0000 (15:20 +0200)]
spi: omap2-mcspi: fix blatant abuse of the resource subsystem

9 years agoASoC: sgtl5000: check whether regulator is enabled before disabling it
Lothar Waßmann [Thu, 17 Jul 2014 13:18:54 +0000 (15:18 +0200)]
ASoC: sgtl5000: check whether regulator is enabled before disabling it

9 years agoASoC: sgtl5000: fix regulator registering/removal
Lothar Waßmann [Thu, 17 Jul 2014 13:06:11 +0000 (15:06 +0200)]
ASoC: sgtl5000: fix regulator registering/removal

Due to using devm_regulator_bulk_get() the LDO regulator which may
have been registered is still referenced when ldo_regulator_remove()
tries to unregister it. This leads to the following warning from the
regulator subsystem (and makes it impossible to unload the
snd-soc-sgtl5000 module):

WARNING: CPU: 0 PID: 1297 at drivers/regulator/core.c:3600 regulator_unregister+0x78/0xd4()
Modules linked in: snd_soc_imx_sgtl5000(-) snd_soc_fsl_ssi imx_pcm_dma imx_pcm_fiq snd_soc_imx_audmux snd_soc_sgtl5000 regmap_i2c snd_soc_core snd_compress snd_pcm_dmaengine snd_pcm snd_timer snd flexcan can_dev usbmisc_imx mmc_block ci_hdrc_imx ci_hdrc udc_core ehci_hcd imx_keypad matrix_keymap sdhci_esdhc_imx sdhci_pltfm sdhci mmc_core spidev spi_imx spi_bitbang gpio_keys [last unloaded: tsc2007]
CPU: 0 PID: 1297 Comm: modprobe Not tainted 3.16.0-rc2-next-20140627-dt+ #1
Backtrace:
[<80011324>] (dump_backtrace) from [<8001169c>] (show_stack+0x18/0x1c)
 r6:804c5563 r5:00000009 r4:00000000 r3:00400100
[<80011684>] (show_stack) from [<803b7cc0>] (dump_stack+0x20/0x28)
[<803b7ca0>] (dump_stack) from [<8001cc70>] (warn_slowpath_common+0x6c/0x8c)
[<8001cc04>] (warn_slowpath_common) from [<8001ccb4>] (warn_slowpath_null+0x24/0x2c)
 r8:9e6c93c0 r7:00000000 r6:00000000 r5:9e6c9798 r4:9d820980
[<8001cc90>] (warn_slowpath_null) from [<802472bc>] (regulator_unregister+0x78/0xd4)
[<80247244>] (regulator_unregister) from [<7f176720>] (ldo_regulator_remove+0x28/0x30 [snd_soc_sgtl5000])
 r4:9e7497c0 r3:9d871918
[<7f1766f8>] (ldo_regulator_remove [snd_soc_sgtl5000]) from [<7f17675c>] (sgtl5000_remove+0x34/0x3c [snd_soc_sgtl5000])
[<7f176728>] (sgtl5000_remove [snd_soc_sgtl5000]) from [<7f13e090>] (soc_remove_codec+0x24/0x94 [snd_soc_core])
 r5:9d8234ac r4:9e7497c0

Use regulator_bulk_get() and explicitly free the regulators to prevent
this.

Also set sgtl5000->ldo to NULL when the regulator has been
unregistered to prevent possible derefence of the stale pointer.

9 years agoASoC: sgtl5000: use devm_* functions to allocate memory
Lothar Waßmann [Thu, 17 Jul 2014 11:27:02 +0000 (13:27 +0200)]
ASoC: sgtl5000: use devm_* functions to allocate memory

9 years agoASoC: sgtl5000: source cleanup
Lothar Waßmann [Thu, 17 Jul 2014 11:26:48 +0000 (13:26 +0200)]
ASoC: sgtl5000: source cleanup

9 years agousb: musb: core: properly setup the HW before registering it to the USB core
Lothar Waßmann [Thu, 17 Jul 2014 10:56:12 +0000 (12:56 +0200)]
usb: musb: core: properly setup the HW before registering it to the USB core

Without this patch overriding the USBOTG_ID pin by setting the iddig
bit in the USB_MODE register doesn't work because it obviously is done
too late to be recognized correctly.

9 years agousb: musb: core: cleanup - remove some useless 'break's from switch statements
Lothar Waßmann [Thu, 17 Jul 2014 10:56:02 +0000 (12:56 +0200)]
usb: musb: core: cleanup - remove some useless 'break's from switch statements

9 years agousb: phy: am335x: call usb_gen_phy_init()/usb_gen_phy_shutdown() in am335x_init(...
Lothar Waßmann [Thu, 17 Jul 2014 10:50:28 +0000 (12:50 +0200)]
usb: phy: am335x: call usb_gen_phy_init()/usb_gen_phy_shutdown() in am335x_init()/am335x_shutdown()

9 years agousb: phy: am335x: setup the gen_phy function pointers _before_ adding the phy
Lothar Waßmann [Thu, 17 Jul 2014 10:49:41 +0000 (12:49 +0200)]
usb: phy: am335x: setup the gen_phy function pointers _before_ adding the phy

9 years agousb: phy: am335x: group the #includes by subdirs
Lothar Waßmann [Thu, 17 Jul 2014 10:48:33 +0000 (12:48 +0200)]
usb: phy: am335x: group the #includes by subdirs

9 years agousb: musb_am335x: make module unload/reload work
Lothar Waßmann [Thu, 17 Jul 2014 09:58:55 +0000 (11:58 +0200)]
usb: musb_am335x: make module unload/reload work

Currently unloading and reloading the usb-am335x module will render
the USB driver non-functional. This is because of_platform_populate()
does nothing upon reload because the OF_POPULATED flag will still be
set on the device nodes from the first module load.

Clearing this flag when unregistering the devices makes this driver
functional also upon repeated unload/load sequences.

9 years agousb: musb_am335x: source cleanup
Lothar Waßmann [Thu, 17 Jul 2014 09:51:12 +0000 (11:51 +0200)]
usb: musb_am335x: source cleanup

- remove comma after end of list delimiter
  The empty entry must always be the last item in the list, thus there
  is no point in having a trailing comma to facilitate adding
  succeding entries.
  Remove the comma, so that inadvertedly adding an entry after the end
  of list sentinel will produce a compile time error rather than an
  unreachable entry in the list.
- consistently use tabs for indentation

9 years agoARM: dts: AM33XX: fix compatible string for RTC
Lothar Waßmann [Thu, 17 Jul 2014 09:47:49 +0000 (11:47 +0200)]
ARM: dts: AM33XX: fix compatible string for RTC

9 years agoASoC: am335x-tx48: update sound driver
Lothar Waßmann [Thu, 17 Jul 2014 12:56:54 +0000 (14:56 +0200)]
ASoC: am335x-tx48: update sound driver

9 years agoARM: dts: am335x-tx48: fix mclk definition
Lothar Waßmann [Thu, 17 Jul 2014 12:55:51 +0000 (14:55 +0200)]
ARM: dts: am335x-tx48: fix mclk definition

9 years agoARM: dts: am335x-tx48: add support for LT3589 PMIC
Lothar Waßmann [Thu, 17 Jul 2014 09:25:09 +0000 (11:25 +0200)]
ARM: dts: am335x-tx48: add support for LT3589 PMIC

9 years agoARM: dts: am335x-tx48: force regulators for LCD and CAN XCVR always on
Lothar Waßmann [Thu, 17 Jul 2014 09:24:38 +0000 (11:24 +0200)]
ARM: dts: am335x-tx48: force regulators for LCD and CAN XCVR always on

9 years agoARM: dts: am335x-tx48: remove pinctrl from usb0_phy
Lothar Waßmann [Thu, 17 Jul 2014 09:17:14 +0000 (11:17 +0200)]
ARM: dts: am335x-tx48: remove pinctrl from usb0_phy

The pins used for VBUSEN and OC in host mode are also used for the 2nd
CAN interface. When the USB0 interface is used in device mode, the
pins can still be used for the CAN interface if they are not claimed
by the USB PHY driver. Thus move the pinctrl reference to the
reg_usbotg which will only claim them for host mode.

9 years agoARM: dts: am335x-tx48: remove unnecessary usbhost regulator
Lothar Waßmann [Thu, 17 Jul 2014 09:16:13 +0000 (11:16 +0200)]
ARM: dts: am335x-tx48: remove unnecessary usbhost regulator

9 years agoARM: dts: am335x-tx48: fix pintypes for SSI interface
Lothar Waßmann [Thu, 17 Jul 2014 09:15:49 +0000 (11:15 +0200)]
ARM: dts: am335x-tx48: fix pintypes for SSI interface

9 years agoARM: dts: am335x-tx48: fix pin types for CSPI interface
Lothar Waßmann [Thu, 17 Jul 2014 09:15:34 +0000 (11:15 +0200)]
ARM: dts: am335x-tx48: fix pin types for CSPI interface

9 years agoARM: dts: am335x-tx48: add aliases for usb nodes
Lothar Waßmann [Thu, 17 Jul 2014 09:14:04 +0000 (11:14 +0200)]
ARM: dts: am335x-tx48: add aliases for usb nodes

9 years agoARM: defconfig: update Ka-Ro TX48 defconfig
Lothar Waßmann [Thu, 17 Jul 2014 08:18:33 +0000 (10:18 +0200)]
ARM: defconfig: update Ka-Ro TX48 defconfig

9 years agousb: musb: dsps: fix the base address for accessing the mode register
Lothar Waßmann [Mon, 30 Jun 2014 10:54:27 +0000 (12:54 +0200)]
usb: musb: dsps: fix the base address for accessing the mode register

The USB_MODE and PHY_UTMI registers are both located in the USB_CTRL
address space, not the USB_CORE space.

9 years agousb: musb: dsps: coding style cleanup
Lothar Waßmann [Mon, 30 Jun 2014 10:51:57 +0000 (12:51 +0200)]
usb: musb: dsps: coding style cleanup

There is no reason for the register accessor functions not to adhere
to the CodingStyle rules.

9 years agoASoC: am335x-tx48: add support for mclk
Lothar Waßmann [Fri, 27 Jun 2014 09:49:41 +0000 (11:49 +0200)]
ASoC: am335x-tx48: add support for mclk

9 years agousb: musb: add dependency on AM335X_PHY_USB for USB_MUSB_AM35X to fix build error
Lothar Waßmann [Fri, 27 Jun 2014 09:29:29 +0000 (11:29 +0200)]
usb: musb: add dependency on AM335X_PHY_USB for USB_MUSB_AM35X to fix build error

9 years agoclk: ti: am335x: add support for DT defined clocks
Lothar Waßmann [Fri, 27 Jun 2014 09:28:17 +0000 (11:28 +0200)]
clk: ti: am335x: add support for DT defined clocks

9 years agoARM: dts: am335x-tx48: cleanup
Lothar Waßmann [Fri, 27 Jun 2014 09:26:36 +0000 (11:26 +0200)]
ARM: dts: am335x-tx48: cleanup

- sort nodes alphabetically
- move 'status' property to end of property list
- reduce indentation level of pinctrl comments
- rename sound card model to 'TX48-SGTL5000'

9 years agoARM: dts: am335x-tx45: move 'status' property to end of property list
Lothar Waßmann [Wed, 18 Jun 2014 10:58:06 +0000 (12:58 +0200)]
ARM: dts: am335x-tx45: move 'status' property to end of property list

9 years agoARM: defconfig: add Ka-Ro TX48 defconfig
Lothar Waßmann [Wed, 7 May 2014 08:45:25 +0000 (10:45 +0200)]
ARM: defconfig: add Ka-Ro TX48 defconfig

9 years agoARM: AM33XX: dts: fix regulator 'gpio' property names
Lothar Waßmann [Wed, 7 May 2014 08:35:24 +0000 (10:35 +0200)]
ARM: AM33XX: dts: fix regulator 'gpio' property names

9 years agopwm: tiehrpwm: honor PWM_POLARITY_INVERTED flag when shutting down PWM
Lothar Waßmann [Thu, 12 Dec 2013 08:06:48 +0000 (09:06 +0100)]
pwm: tiehrpwm: honor PWM_POLARITY_INVERTED flag when shutting down PWM

9 years agospi: omap2-mcspi: don't call dma_async_issue_pending() when there is no dma_tx
Lothar Waßmann [Wed, 11 Dec 2013 15:30:12 +0000 (16:30 +0100)]
spi: omap2-mcspi: don't call dma_async_issue_pending() when there is no dma_tx

9 years agospi: omap2-mcspi: general cleanups
Lothar Waßmann [Wed, 11 Dec 2013 15:18:35 +0000 (16:18 +0100)]
spi: omap2-mcspi: general cleanups

- fix indentations
- remove useles initialization of regs_offset
- remove blank line at end of function
- remove comma after end marker in struct initializer

9 years agogpu: drm: tilcdc: fix double free error
Lothar Waßmann [Wed, 11 Dec 2013 15:07:38 +0000 (16:07 +0100)]
gpu: drm: tilcdc: fix double free error

The pointer passed to display_timings_release() is already being freed
in that function.

9 years agoASoC: am335x-tx48: add support for Ka-Ro TX48 module
Lothar Waßmann [Wed, 11 Dec 2013 15:06:45 +0000 (16:06 +0100)]
ASoC: am335x-tx48: add support for Ka-Ro TX48 module

9 years agousb: phy: am335x-control: prevent module from being unloaded when in use
Lothar Waßmann [Wed, 11 Dec 2013 14:51:15 +0000 (15:51 +0100)]
usb: phy: am335x-control: prevent module from being unloaded when in use

9 years agousb: musb: print error message with dev_err() instead of dev_dbg()
Lothar Waßmann [Wed, 11 Dec 2013 14:48:15 +0000 (15:48 +0100)]
usb: musb: print error message with dev_err() instead of dev_dbg()

9 years agomfd: ti_am335x_tscadc: print error message with dev_err() instead of dev_dbg()
Lothar Waßmann [Wed, 11 Dec 2013 14:46:37 +0000 (15:46 +0100)]
mfd: ti_am335x_tscadc: print error message with dev_err() instead of dev_dbg()

9 years agomfd: ti_am335x_tscadc: cleanup mixed space/tab indentation
Lothar Waßmann [Wed, 11 Dec 2013 14:46:03 +0000 (15:46 +0100)]
mfd: ti_am335x_tscadc: cleanup mixed space/tab indentation

9 years agoARM: dts: am33xx: adjust mmc labels to be in sync with ref manual
Lothar Waßmann [Wed, 11 Dec 2013 14:43:30 +0000 (15:43 +0100)]
ARM: dts: am33xx: adjust mmc labels to be in sync with ref manual

9 years agoARM: dts: am33xx: update dts file for Ka-Ro TX48
Lothar Waßmann [Wed, 11 Dec 2013 14:35:05 +0000 (15:35 +0100)]
ARM: dts: am33xx: update dts file for Ka-Ro TX48

9 years agoARM: dts: am33xx: add support for Ka-Ro TX48
Lothar Waßmann [Mon, 2 Dec 2013 10:01:31 +0000 (11:01 +0100)]
ARM: dts: am33xx: add support for Ka-Ro TX48

9 years agomtd: gpmi: prevent creating a new BBT when blockmark swapping is disabled KARO-TX6-2014-07-10
Lothar Waßmann [Thu, 12 Jun 2014 11:40:13 +0000 (13:40 +0200)]
mtd: gpmi: prevent creating a new BBT when blockmark swapping is disabled

Without blockmark swapping, there is no use in creating a BBT from
scratch, so use a BBT descriptor with NAND_BBT_CREATE unset in this
case.

9 years agoof/mtd/nand: add generic binding and helper for NAND_BBT_NO_OOB_BBM
Lothar Waßmann [Thu, 12 Jun 2014 11:40:06 +0000 (13:40 +0200)]
of/mtd/nand: add generic binding and helper for NAND_BBT_NO_OOB_BBM

add a boolean property 'nand-no-oob-bbm' and helper function to be
able to set the NAND_BBT_NO_OOB_BBM flag in DT capable NAND drivers
and use it for i.MX and MXS nand drivers.

9 years agomtd: gpmi: make blockmark swapping optional
Lothar Waßmann [Thu, 12 Jun 2014 11:39:58 +0000 (13:39 +0200)]
mtd: gpmi: make blockmark swapping optional

With a flash-based BBT there is no reason to move the Factory Bad
Block Marker from the data area buffer (to where it is mapped by the
GPMI NAND controller) to the OOB buffer. Thus, make this feature
configurable via DT. This is required for the Ka-Ro electronics
platforms.

In the original code 'this->swap_block_mark' was synonymous with
'!GPMI_IS_MX23()', so use the latter at the relevant places.

9 years agomtd: gpmi: remove line breaks from error messages and improve wording
Lothar Waßmann [Thu, 12 Jun 2014 11:39:50 +0000 (13:39 +0200)]
mtd: gpmi: remove line breaks from error messages and improve wording

9 years agomtd: gpmi: remove useless (void *) type casts and spaces between type casts and variables
Lothar Waßmann [Thu, 12 Jun 2014 11:39:42 +0000 (13:39 +0200)]
mtd: gpmi: remove useless (void *) type casts and spaces between type casts and variables

9 years agoinput: edt-ft5x06: report ABS_MT_PRESSURE to make X11 work
Lothar Waßmann [Wed, 9 Jul 2014 09:00:20 +0000 (11:00 +0200)]
input: edt-ft5x06: report ABS_MT_PRESSURE to make X11 work

9 years agomxc: vpu: change vpu_data into a pointer to kzalloc'ed memory
Lothar Waßmann [Wed, 9 Jul 2014 08:59:07 +0000 (10:59 +0200)]
mxc: vpu: change vpu_data into a pointer to kzalloc'ed memory

9 years agomxc: vpu: init workqueue before registering IRQ handler
Lothar Waßmann [Wed, 9 Jul 2014 08:58:31 +0000 (10:58 +0200)]
mxc: vpu: init workqueue before registering IRQ handler

9 years agomxc: vpu: remove unused list_head
Lothar Waßmann [Wed, 9 Jul 2014 08:58:05 +0000 (10:58 +0200)]
mxc: vpu: remove unused list_head

9 years agoARM: dts: tx6: adjust the pwm polarity
Lothar Waßmann [Wed, 9 Jul 2014 08:57:29 +0000 (10:57 +0200)]
ARM: dts: tx6: adjust the pwm polarity

9 years agoARM: dts: tx6: use definitions from dt-bindings/input/input.h
Lothar Waßmann [Wed, 9 Jul 2014 08:56:03 +0000 (10:56 +0200)]
ARM: dts: tx6: use definitions from dt-bindings/input/input.h

9 years agoARM: dts: tx6: indentation cleanup
Lothar Waßmann [Wed, 9 Jul 2014 08:55:25 +0000 (10:55 +0200)]
ARM: dts: tx6: indentation cleanup

9 years agovideo: mxc: use of_get_videomode() to set up the video timing
Lothar Waßmann [Wed, 9 Jul 2014 08:53:15 +0000 (10:53 +0200)]
video: mxc: use of_get_videomode() to set up the video timing

9 years agovideo: mxc: use 'struct device' instead of 'platform_device' to simplify code
Lothar Waßmann [Wed, 9 Jul 2014 08:52:12 +0000 (10:52 +0200)]
video: mxc: use 'struct device' instead of 'platform_device' to simplify code

9 years agovideo: mxc: whitespace cleanup
Lothar Waßmann [Wed, 9 Jul 2014 08:50:12 +0000 (10:50 +0200)]
video: mxc: whitespace cleanup

9 years agovideo: mxc: change format string for register values to '%08x'
Lothar Waßmann [Wed, 9 Jul 2014 08:49:43 +0000 (10:49 +0200)]
video: mxc: change format string for register values to '%08x'

9 years agovideo: mxc: remove DEBUG and fix typo in comment
Lothar Waßmann [Wed, 9 Jul 2014 08:48:50 +0000 (10:48 +0200)]
video: mxc: remove DEBUG and fix typo in comment

9 years agovideo: mxc: print error messages with dev_err() rather than dev_dbg()
Lothar Waßmann [Wed, 9 Jul 2014 08:47:30 +0000 (10:47 +0200)]
video: mxc: print error messages with dev_err() rather than dev_dbg()

9 years agovideo: mxc: use proper data structures to eliminate type casts
Lothar Waßmann [Wed, 9 Jul 2014 08:43:38 +0000 (10:43 +0200)]
video: mxc: use proper data structures to eliminate type casts

9 years agopwm: imx: support output polarity inversion
Lothar Waßmann [Thu, 12 Jun 2014 11:38:07 +0000 (13:38 +0200)]
pwm: imx: support output polarity inversion

The i.MX pwm unit on i.MX27 and newer SoCs provides a configurable
output polarity. This patch adds support to utilize this feature where
available.

9 years agopwm: imx: indentation cleanup
Lothar Waßmann [Thu, 12 Jun 2014 11:37:59 +0000 (13:37 +0200)]
pwm: imx: indentation cleanup

9 years agopwm: make the PWM_POLARITY flag in DTB optional
Lothar Waßmann [Thu, 12 Jun 2014 11:37:52 +0000 (13:37 +0200)]
pwm: make the PWM_POLARITY flag in DTB optional

Change the pwm chip driver registration, so that a chip driver that
supports polarity inversion can still be used with DTBs that don't
provide the 'PWM_POLARITY' flag.

This is done to provide polarity inversion support for the pwm-imx
driver without having to modify all existing DTS files.

9 years agopwm: print error messages with pr_err() instead of pr_debug()
Lothar Waßmann [Thu, 12 Jun 2014 11:34:42 +0000 (13:34 +0200)]
pwm: print error messages with pr_err() instead of pr_debug()

9 years agoarm: defconfig: tx6: disable SATA, since the ahci_imx driver has problems with suspen...
Lothar Waßmann [Thu, 3 Jul 2014 12:43:17 +0000 (14:43 +0200)]
arm: defconfig: tx6: disable SATA, since the ahci_imx driver has problems with suspend/resume

9 years agomxc: vpu: add missing mutex_init() call
Lothar Waßmann [Thu, 3 Jul 2014 12:00:32 +0000 (14:00 +0200)]
mxc: vpu: add missing mutex_init() call

9 years agopwm-backlight:
Lothar Waßmann [Thu, 12 Jun 2014 11:38:54 +0000 (13:38 +0200)]
pwm-backlight:

commit 257462dbf3ed pwm-backlight: switch to gpiod interface
introduced a regression leading to acquiring a bogus GPIO-0 when
configured from DT without an 'enable-gpios' property.
The driver will happily accept the 0 initialized 'enable_gpio' member
of the struct platform_pwm_backlight_data as valid gpio number, and
request this GPIO as enable pin. In case of multiple driver instances,
the second will fail to register with the error message:
pwm-backlight backlight1.23: failed to request GPIO#0: -16

Fix this by setting enable_gpio in the pdata struct to -EINVAL.

9 years agoarm: defconfig: remove KERNEL_LZO
Lothar Waßmann [Wed, 2 Jul 2014 12:58:01 +0000 (14:58 +0200)]
arm: defconfig: remove KERNEL_LZO

9 years agoMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux...
Lothar Waßmann [Wed, 2 Jul 2014 12:13:45 +0000 (14:13 +0200)]
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into fsl-mainline

9 years agoMerge tag 'fbdev-fixes-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba...
Linus Torvalds [Tue, 1 Jul 2014 16:30:38 +0000 (09:30 -0700)]
Merge tag 'fbdev-fixes-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux

Pull fbdev fixes from Tomi Valkeinen:
 "A few minor fbdev fixes for bfin_adv7393fb, omapdss, vt8500lcdfb,
  atmel_lcdfb"

* tag 'fbdev-fixes-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux:
  fb: adv7393: add missing semicolon
  video: omapdss: Fix potential null pointer dereference
  video: vt8500lcdfb: Remove kfree call since devm_kzalloc() is used
  drivers:video:fbdev atmel_lcdfb.c power GPIO registration bug

9 years agoMerge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
Linus Torvalds [Tue, 1 Jul 2014 16:27:34 +0000 (09:27 -0700)]
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm

Pull KVM fixes from Paolo Bonzini:
 "A bunch of one-liners (except the s390 one).

  The two more serious bugs ("KVM: SVM: Fix CPL export via SS.DPL" and
  "KVM: s390: add sie.h uapi header file to Kbuild and remove header
  dependency") were introduced in the 3.16 merge window"

* tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
  KVM: SVM: Fix CPL export via SS.DPL
  KVM: s390: add sie.h uapi header file to Kbuild and remove header dependency
  MIPS: KVM: Fix memory leak on VCPU
  KVM: x86: preserve the high 32-bits of the PAT register
  kvm: fix wrong address when writing Hyper-V tsc page
  KVM: x86: Increase the number of fixed MTRR regs to 10

9 years agofb: adv7393: add missing semicolon
Scott Jiang [Wed, 2 Jul 2014 06:53:42 +0000 (14:53 +0800)]
fb: adv7393: add missing semicolon

Commit f8bd493456c3da372ae81ed8f6b903f6207b9d98 by Jingoo Han
introduced this problem. This makes bfin_adv7393fb.c failed to compile.

Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
9 years agoMerge commit '33b458d276bb' into kvm-master
Paolo Bonzini [Mon, 30 Jun 2014 14:45:40 +0000 (16:45 +0200)]
Merge commit '33b458d276bb' into kvm-master

9 years agoKVM: SVM: Fix CPL export via SS.DPL
Jan Kiszka [Sun, 29 Jun 2014 15:12:43 +0000 (17:12 +0200)]
KVM: SVM: Fix CPL export via SS.DPL

We import the CPL via SS.DPL since ae9fedc793. However, we fail to
export it this way so far. This caused spurious guest crashes, e.g. of
Linux when accessing the vmport from guest user space which triggered
register saving/restoring to/from host user space.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
9 years agoMerge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git...
Linus Torvalds [Mon, 30 Jun 2014 02:20:43 +0000 (19:20 -0700)]
Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4

Pull ext4 bugfixes from Ted Ts'o:
 "Fix a regression when trying to compile ext4 on older versions gcc.

  Fix a number of miscellaneous bugs for punch hole as well as a
  long-standing potential double buffer head release when failing a
  block allocation for an indirect-mapped file"

* tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
  ext4: Fix hole punching for files with indirect blocks
  ext4: Fix block zeroing when punching holes in indirect block files
  ext4: decrement free clusters/inodes counters when block group declared bad
  fs/mbcache: replace __builtin_log2() with ilog2()
  ext4: Fix buffer double free in ext4_alloc_branch()

9 years agoLinux 3.16-rc3 v3.16-rc3
Linus Torvalds [Sun, 29 Jun 2014 21:11:36 +0000 (14:11 -0700)]
Linux 3.16-rc3

9 years agoMerge branch 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm
Linus Torvalds [Sun, 29 Jun 2014 20:40:08 +0000 (13:40 -0700)]
Merge branch 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm

Pull ARM fixes from Russell King:
 "Another round of ARM fixes.  The largest change here is the L2 changes
  to work around problems for the Armada 37x/380 devices, where most of
  the size comes down to comments rather than code.

  The other significant fix here is for the ptrace code, to ensure that
  rewritten syscalls work as intended.  This was pointed out by Kees
  Cook, but Will Deacon reworked the patch to be more elegant.

  The remainder are fairly trivial changes"

* 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm:
  ARM: 8087/1: ptrace: reload syscall number after secure_computing() check
  ARM: 8086/1: Set memblock limit for nommu
  ARM: 8085/1: sa1100: collie: add top boot mtd partition
  ARM: 8084/1: sa1100: collie: revert back to cfi_probe
  ARM: 8080/1: mcpm.h: remove unused variable declaration
  ARM: 8076/1: mm: add support for HW coherent systems in PL310 cache

9 years agoMAINTAINERS: exceptions for Documentation maintainer
Randy Dunlap [Sat, 28 Jun 2014 01:28:56 +0000 (18:28 -0700)]
MAINTAINERS: exceptions for Documentation maintainer

Note that I don't maintain Documentation/ABI/,
Documentation/devicetree/, or the language translation files.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
9 years agoDocumentation: add section about git to email-clients.txt
Dan Carpenter [Sat, 28 Jun 2014 01:28:46 +0000 (18:28 -0700)]
Documentation: add section about git to email-clients.txt

These days most people use git to send patches so I have added a section
about that.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
9 years agoARM: 8087/1: ptrace: reload syscall number after secure_computing() check
Will Deacon [Fri, 27 Jun 2014 16:01:47 +0000 (17:01 +0100)]
ARM: 8087/1: ptrace: reload syscall number after secure_computing() check

On the syscall tracing path, we call out to secure_computing() to allow
seccomp to check the syscall number being attempted. As part of this, a
SIGTRAP may be sent to the tracer and the syscall could be re-written by
a subsequent SET_SYSCALL ptrace request. Unfortunately, this new syscall
is ignored by the current code unless TIF_SYSCALL_TRACE is also set on
the current thread.

This patch slightly reworks the enter path of the syscall tracing code
so that we always reload the syscall number from
current_thread_info()->syscall after the potential ptrace traps.

Acked-by: Kees Cook <keescook@chromium.org>
Tested-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
9 years agoARM: 8086/1: Set memblock limit for nommu
Laura Abbott [Fri, 27 Jun 2014 09:17:27 +0000 (10:17 +0100)]
ARM: 8086/1: Set memblock limit for nommu

Commit 1c2f87c (ARM: 8025/1: Get rid of meminfo) changed find_limits
to use memblock_get_current_limit for calculating the max_low pfn.
nommu targets never actually set a limit on memblock though which
means memblock_get_current_limit will just return the default
value. Set the memblock_limit to be the end of DDR to make sure
bounds are calculated correctly.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
9 years agoARM: 8085/1: sa1100: collie: add top boot mtd partition
Andrea Adami [Wed, 25 Jun 2014 21:32:26 +0000 (22:32 +0100)]
ARM: 8085/1: sa1100: collie: add top boot mtd partition

The CFI mapping is now perfect so we can expose the top block, read only.
There isn't much to read, though, just the sharpsl_params values.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
9 years agoARM: 8084/1: sa1100: collie: revert back to cfi_probe
Andrea Adami [Wed, 25 Jun 2014 21:31:15 +0000 (22:31 +0100)]
ARM: 8084/1: sa1100: collie: revert back to cfi_probe

Reverts commit d26b17edafc45187c30cae134a5e5429d58ad676
ARM: sa1100: collie.c: fall back to jedec_probe flash detection

Unfortunately the detection was challenged on the defective unit used for tests:
one of the NOR chips did not respond to the CFI query.
Moreover that bad device needed extra delays on erase-suspend/resume cycles.

Tested personally on 3 different units and with feedback of two other users.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
9 years agoARM: 8080/1: mcpm.h: remove unused variable declaration
Nicolas Pitre [Thu, 19 Jun 2014 21:57:01 +0000 (22:57 +0100)]
ARM: 8080/1: mcpm.h: remove unused variable declaration

The sync_phys variable has been replaced by link time computation in
mcpm_head.S before the code was submitted upstream.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
9 years agoARM: 8076/1: mm: add support for HW coherent systems in PL310 cache
Thomas Petazzoni [Fri, 13 Jun 2014 09:58:38 +0000 (10:58 +0100)]
ARM: 8076/1: mm: add support for HW coherent systems in PL310 cache

When a PL310 cache is used on a system that provides hardware
coherency, the outer cache sync operation is useless, and can be
skipped. Moreover, on some systems, it is harmful as it causes
deadlocks between the Marvell coherency mechanism, the Marvell PCIe
controller and the Cortex-A9.

To avoid this, this commit introduces a new Device Tree property
'arm,io-coherent' for the L2 cache controller node, valid only for the
PL310 cache. It identifies the usage of the PL310 cache in an I/O
coherent configuration. Internally, it makes the driver disable the
outer cache sync operation.

Note that technically speaking, a fully coherent system wouldn't
require any of the other .outer_cache operations. However, in
practice, when booting secondary CPUs, these are not yet coherent, and
therefore a set of cache maintenance operations are necessary at this
point. This explains why we keep the other .outer_cache operations and
only ->sync is disabled.

While in theory any write to a PL310 register could cause the
deadlock, in practice, disabling ->sync is sufficient to workaround
the deadlock, since the other cache maintenance operations are only
used in very specific situations.

Contrary to previous versions of this patch, this new version does not
simply NULL-ify the ->sync member, because the l2c_init_data
structures are now 'const' and therefore cannot be modified, which is
a good thing. Therefore, this patch introduces a separate
l2c_init_data instance, called of_l2c310_coherent_data.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
9 years agoMerge tag 'spi-v3.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Linus Torvalds [Sat, 28 Jun 2014 18:32:32 +0000 (11:32 -0700)]
Merge tag 'spi-v3.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi

Pull spi fixes from Mark Brown:
 "A few driver specific fixes, the biggest one being a fix for the newly
  added Qualcomm SPI controller driver to make it not use its internal
  chip select due to hardware bugs, replacing it with GPIOs"

* tag 'spi-v3.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
  spi: qup: Remove chip select function
  spi: qup: Fix order of spi_register_master
  spi: sh-sci: fix use-after-free in sh_sci_spi_remove()
  spi/pxa2xx: fix incorrect SW mode chipselect setting for BayTrail LPSS SPI

9 years agoMerge tag 'regulator-v3.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git...
Linus Torvalds [Sat, 28 Jun 2014 18:31:58 +0000 (11:31 -0700)]
Merge tag 'regulator-v3.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator

Pull regulator fixes from Mark Brown:
 "Several driver specific fixes here, the palmas fixes being especially
  important for a range of boards - the recent updates to support new
  devices have introduced several regressions"

* tag 'regulator-v3.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
  regulator: tps65218: Correct the the config register for LDO1
  regulator: tps65218: Add the missing of_node assignment in probe
  regulator: palmas: fix typo in enable_reg calculation
  regulator: bcm590xx: fix vbus name
  regulator: palmas: Fix SMPS enable/disable/is_enabled

9 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending
Linus Torvalds [Sat, 28 Jun 2014 16:43:58 +0000 (09:43 -0700)]
Merge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending

Pull SCSI target fixes from Nicholas Bellinger:
 "Mostly minor fixes this time around.  The highlights include:

   - iscsi-target CHAP authentication fixes to enforce explicit key
     values (Tejas Vaykole + rahul.rane)
   - fix a long-standing OOPs in target-core when a alua configfs
     attribute is accessed after port symlink has been removed.
     (Sebastian Herbszt)
   - fix a v3.10.y iscsi-target regression causing the login reject
     status class/detail to be ignored (Christoph Vu-Brugier)
   - fix a v3.10.y iscsi-target regression to avoid rejecting an
     existing ITT during Data-Out when data-direction is wrong (Santosh
     Kulkarni + Arshad Hussain)
   - fix a iscsi-target related shutdown deadlock on UP kernels (Mikulas
     Patocka)
   - fix a v3.16-rc1 build issue with vhost-scsi + !CONFIG_NET (MST)"

* git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
  iscsi-target: fix iscsit_del_np deadlock on unload
  iovec: move memcpy_from/toiovecend to lib/iovec.c
  iscsi-target: Avoid rejecting incorrect ITT for Data-Out
  tcm_loop: Fix memory leak in tcm_loop_submission_work error path
  iscsi-target: Explicily clear login response PDU in exception path
  target: Fix left-over se_lun->lun_sep pointer OOPs
  iscsi-target; Enforce 1024 byte maximum for CHAP_C key value
  iscsi-target: Convert chap_server_compute_md5 to use kstrtoul

9 years agoMerge remote-tracking branches 'spi/fix/pxa2xx', 'spi/fix/qup' and 'spi/fix/sh-sci...
Mark Brown [Sat, 28 Jun 2014 13:01:23 +0000 (14:01 +0100)]
Merge remote-tracking branches 'spi/fix/pxa2xx', 'spi/fix/qup' and 'spi/fix/sh-sci' into spi-linus

9 years agoMerge remote-tracking branches 'regulator/fix/bcm590xx', 'regulator/fix/palmas' and...
Mark Brown [Sat, 28 Jun 2014 13:01:04 +0000 (14:01 +0100)]
Merge remote-tracking branches 'regulator/fix/bcm590xx', 'regulator/fix/palmas' and 'regulator/fix/tps65218' into regulator-linus

9 years agoiscsi-target: fix iscsit_del_np deadlock on unload
Mikulas Patocka [Mon, 23 Jun 2014 17:42:37 +0000 (13:42 -0400)]
iscsi-target: fix iscsit_del_np deadlock on unload

On uniprocessor preemptible kernel, target core deadlocks on unload. The
following events happen:
* iscsit_del_np is called
* it calls send_sig(SIGINT, np->np_thread, 1);
* the scheduler switches to the np_thread
* the np_thread is woken up, it sees that kthread_should_stop() returns
  false, so it doesn't terminate
* the np_thread clears signals with flush_signals(current); and goes back
  to sleep in iscsit_accept_np
* the scheduler switches back to iscsit_del_np
* iscsit_del_np calls kthread_stop(np->np_thread);
* the np_thread is waiting in iscsit_accept_np and it doesn't respond to
  kthread_stop

The deadlock could be resolved if the administrator sends SIGINT signal to
the np_thread with killall -INT iscsi_np

The reproducible deadlock was introduced in commit
db6077fd0b7dd41dc6ff18329cec979379071f87, but the thread-stopping code was
racy even before.

This patch fixes the problem. Using kthread_should_stop to stop the
np_thread is unreliable, so we test np_thread_state instead. If
np_thread_state equals ISCSI_NP_THREAD_SHUTDOWN, the thread exits.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
9 years agoMerge tag 'iommu-fixes-v3.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
Linus Torvalds [Sat, 28 Jun 2014 02:00:45 +0000 (19:00 -0700)]
Merge tag 'iommu-fixes-v3.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu

Pull IOMMU fixes from Joerg Roedel:

 - fix VT-d regression with handling multiple RMRR entries per device

 - fix a small race that was left in the mmu_notifier handling in the
   AMD IOMMUv2 driver

* tag 'iommu-fixes-v3.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
  iommu/amd: Fix small race between invalidate_range_end/start
  iommu/vt-d: fix bug in handling multiple RMRRs for the same PCI device

9 years agoMerge branch 'x86/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Linus Torvalds [Sat, 28 Jun 2014 01:43:03 +0000 (18:43 -0700)]
Merge branch 'x86/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 fixes from Peter Anvin:
 "A pile of fixes related to the VDSO, EFI and 32-bit badsys handling.

  It turns out that removing the section headers from the VDSO breaks
  gdb, so this puts back most of them.  A very simple typo broke
  rt_sigreturn on some versions of glibc, with obviously disastrous
  results.  The rest is pretty much fixes for the corresponding fallout.

  The EFI fixes fixes an arithmetic overflow on 32-bit systems and
  quiets some build warnings.

  Finally, when invoking an invalid system call number on x86-32, we
  bypass a bunch of handling, which can make the audit code oops"

* 'x86/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  efi-pstore: Fix an overflow on 32-bit builds
  x86/vdso: Error out in vdso2c if DT_RELA is present
  x86/vdso: Move DISABLE_BRANCH_PROFILING into the vdso makefile
  x86_32, signal: Fix vdso rt_sigreturn
  x86_32, entry: Do syscall exit work on badsys (CVE-2014-4508)
  x86/vdso: Create .build-id links for unstripped vdso files
  x86/vdso: Remove some redundant in-memory section headers
  x86/vdso: Improve the fake section headers
  x86/vdso2c: Use better macros for ELF bitness
  x86/vdso: Discard the __bug_table section
  efi: Fix compiler warnings (unused, const, type)

9 years agoMerge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Linus Torvalds [Sat, 28 Jun 2014 01:37:56 +0000 (18:37 -0700)]
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus

Pull MIPS fixes from Ralf Baechle:
 "This is dominated by a large number of changes necessary for the MIPS
  BPF code.  code.  Aside of that there are

   - a fix for the MSC system controller support code.
   - a Turbochannel fix.
   - a recordmcount fix that's MIPS-specific.
   - barrier fixes to smp-cps / pm-cps after unrelated changes elsewhere
     in the kernel.
   - revert support for MSA registers in the signal frames.  The
     reverted patch did modify the signal stack frame which of course is
     inacceptable.
   - fix math-emu build breakage with older compilers.
   - some related cleanup.
   - fix Lasat build error if CONFIG_CRC32 isn't set to y by the user"

* 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (27 commits)
  MIPS: Lasat: Fix build error if CRC32 is not enabled.
  TC: Handle device_register() errors.
  MIPS: MSC: Prevent out-of-bounds writes to MIPS SC ioremap'd region
  MIPS: bpf: Fix stack space allocation for BPF memwords on MIPS64
  MIPS: BPF: Use 32 or 64-bit load instruction to load an address to register
  MIPS: bpf: Fix PKT_TYPE case for big-endian cores
  MIPS: BPF: Prevent kernel fall over for >=32bit shifts
  MIPS: bpf: Drop update_on_xread and always initialize the X register
  MIPS: bpf: Fix is_range() semantics
  MIPS: bpf: Use pr_debug instead of pr_warn for unhandled opcodes
  MIPS: bpf: Fix return values for VLAN_TAG_PRESENT case
  MIPS: bpf: Use correct mask for VLAN_TAG case
  MIPS: bpf: Fix branch conditional for BPF_J{GT/GE} cases
  MIPS: bpf: Add SEEN_SKB to flags when looking for the PKT_TYPE
  MIPS: bpf: Use 'andi' instead of 'and' for the VLAN cases
  MIPS: bpf: Return error code if the offset is a negative number
  MIPS: bpf: Use the LO register to get division's quotient
  MIPS: mm: uasm: Fix lh micro-assembler instruction
  MIPS: uasm: Add SLT uasm instruction
  MIPS: uasm: Add s3s1s2 instruction builder
  ...