Commit Graph

379862 Commits

Author SHA1 Message Date
Charles
2a5cefa493 ODROIDC:config: Add support GPIO based LED driver
Change-Id: I355372ed580377c20b46ca5874b4a9aa55f163d7

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:06:58 +09:00
Charles
6a088b8f49 ARM:dtd: Add to support gpio based LED as heartbeat
Change-Id: I48f2429d7063b72891ec3ddc84fb1f364e545970

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:06:55 +09:00
Charles
67c4c9a165 drivers/gpio/gliolib_of: Replace of_get_named_gpio_flags(...)
Since AMLogic's GPIOLIB does not support standard framework yet,
of_get_named_gpio_flags is replaced to use AMLogic's own framework such that
GPIO will be obtained from wrapper function.

FIXME: This is not a right way to support for gpio and pinctrl.

Change-Id: I29b5a3bc99bbfa7b299c575b08e10fea81935cef

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:06:51 +09:00
ckkim
9e1bff908c ODROID:dtd Remove 'audio_spdif_pins' of SPDIF
Change-Id: Ieb5d77974bcf54feb79505aece1375efb867accd

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:06:47 +09:00
Dongjin Kim
88b2a86f5c ODROIDC:reboot: quick fix for ac5d86bb8f60cce312d0d995f5bd3c57ff232ebd
Change-Id: Iff394636b7347dc8e40ca3de9386c021b13037a5
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:06:41 +09:00
Dongjin Kim
55fe7eb568 ODROIDC:reboot: Add reboot command for fastboot & recovery
Change-Id: Ia4930eae275300df23ffdd5784b449ad42b7011b
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:06:05 +09:00
ckkim
6f3e7465e4 ODROIDC:Ethernet MAC_address using efuse data
Change-Id: I0789ff649a462e00f62705d8b3b08ef5c27a8b82

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:06:03 +09:00
Dongjin Kim
7edbfcc346 ODROIDC:config: remove kernel feature CONFIG_SECURITYKEY
Change-Id: I1e01159f21b213083be374f22c0342343e935525
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:06:00 +09:00
Dongjin Kim
50653a741d ODROIDC:dtd: Remove Securitykey device node
Change-Id: I22cd831d5586bd91d93cb32722e596eab21e60af
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:05:57 +09:00
Dongjin Kim
6747c9b70a ODROIDC:power: Add reboot condition for power-off
Since ODROID-C does not PMU, it won't stop or off completely. Hence this
reboot condition will reach to bootloader and halt the system.

Change-Id: I6bb8c5628bfbf0f9c120062fe7cb207aeb2aac2c
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:05:54 +09:00
Dongjin Kim
35643d174a ODROIDC:WiFi: Support Ralink RT2800 5GHz USB dongle
Change-Id: I4c3a7d6febeeafaf99ce26101e4a7536272fe8f1
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:05:51 +09:00
Dongjin Kim
0f6d807b5f ODROID:dts: Add to enable odroid-sysfs driver
Change-Id: Ie5b392d9f76afa8da47b0f8a8a51f0e865e468f9
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:05:48 +09:00
Dongjin Kim
d7d714d49d ODROID: Add ODROID sysfs feature enhancement driver
Change-Id: I91dedbf5c99de60f50d1f46c0f3aa973d76e24af
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:05:45 +09:00
codewalker
617357f52e ODROIDC:hdmi: Try to read proper mode before video stream out
Change-Id: I80d7bb91cc49f2cd4cdb8d961bcdea35f98ef7a1

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:05:42 +09:00
Dongjin Kim
e79967c706 ODROIDC:dtd: Managing single device tree for SDCARD or eMMC boot
In order to assign a boot media to SDHC block between SDCARD or eMMC,
different two device tree have to be maintained. But this is risky to
maintain. Hence add both properties of SDCARD and eMMC to each contoller, SDHC
and SDIO, remove one of them in U-boot. Finally Linux kernel will have proper
device tree with corresponding to boot deivce.

Change-Id: I607575123f81e85d93c0c2613738e11f53892731
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:05:39 +09:00
ckkim
a709d1d0b7 ODROIDC:dtd: Remove ADC keypad node
Change-Id: Ideaf2d3b9d887e7442a589c988bd1d2a12a951bb
Signed-off-by: Kevin Kim <ckkim@hardkernel.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:05:31 +09:00
ckkim
b14d7800f8 ODROIDC:config: Remove input devices unsupported
Change-Id: Idbe1d789c1643ad5e120739ff5e3a7c5a40cee5c
Signed-off-by: Kevin Kim <ckkim@hardkernel.com>
2014-12-16 01:04:09 +09:00
codewalker
593365a1f0 ODROIDC:config: Add xpad feature for XBOX controller.
Change-Id: Iab8c7f2b9dc00ef9449635fb7bdcd6fb34409291

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:32 +09:00
ckkim
590a9432cd ODROIDC:dtd: Add 'change-frequent-only' property to DVFS node.
Since ODROIDC does not have PMU for voltage scaling, only required to
scale the CPU frequencies.

Change-Id: I6e49d7b00fb057776e97fafc3a1dc6daa8494e1e

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:29 +09:00
ckkim
5a71d7c7e2 ODROIDC:audio: Add dummy_codec to support SPDIF
Change-Id: Ibd6374015f1d98e65e04662ae8dda08ffda18d57
Signed-off-by: Kevin Kim <ckkim@hardkernel.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:27 +09:00
Dongjin Kim
3c29693d6d mtd/nand: Fix build error since NAND feature is disabled
drivers/mtd/nand/nand_base.c:2863:12:
error: ‘nand_flash_detect_onfi’ defined but not used [-Werror=unused-function]
cc1: all warnings being treated as errors

Change-Id: I66511666e9dc561ae8adc06d73aa21b3856d3a37
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:24 +09:00
Dongjin Kim
e9295bc19e ODROIDC:mtd/nand: disable NAND features
Change-Id: I9c944a6bb4574e6b07f4d6007adaf997f1548f11
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:21 +09:00
Dongjin Kim
007786119d ODROIDC:config: Add USB dongle WiFi driver build
This patch disables WiFi modules and removes from build.

Change-Id: Id17f18fe59122c7f676cf91c647ec1af285ff107
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:18 +09:00
Dongjin Kim
5fa3789340 Revert "ODROIDC:config: Add USB dongle WiFi driver build"
This reverts commit 74552b8f39694252758a0bed425386a9592fdd46.

Change-Id: I4c1b7b4c0b3155e950742ab7a552843e9deda731

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:15 +09:00
Dongjin Kim
c19b662cdc ODROIDC:config: Add USB dongle WiFi driver build
Change-Id: I531db49387927427f7584d494d592776b274d5a6
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:12 +09:00
Dongjin Kim
0cb684827a ODROIDC:config: kernel build config clean-up
Change-Id: Ie5155d94352c4e3bf9216e3b6e25885733ac01ad
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:08 +09:00
Dongjin Kim
e9c8246f71 ODROIDC:dtd: Remove dummy PMU device nodes
Change-Id: I2cb76fb311398e36bb6f4a5aff14e9c0975d12cd
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:05 +09:00
ckkim
3bc55dd529 mmc/sdhc: Fix clk_div for maximum clock
Change-Id: I5dabc4071c2f1d2d4f4ea550097b990757c74e99
Signed-off-by: Kevin Kim <chkim@hardkernel.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:02 +09:00
Dongjin Kim
d5f5d60eb3 wifi: Remove Broadcom WiFi device driver
Change-Id: I7b64eb2c6014ab26cd46f638337958543c1b23e4
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:02:57 +09:00
Dongjin Kim
510ea38d29 ODROIDC: use generic partition tables on MBR
Change-Id: Ia8d4869ff336ad6a2deed92bff2190509507b948
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:02:53 +09:00
ckkim
7d558a4c01 ODROIDC:usb: USB Hub reset control, OTG VBUS control
Change-Id: Id5656c4f5404864d4536972beed7fa352ba77eb5
2014-12-16 00:57:07 +09:00
ckkim
35940576db ODROIDC: rtc: Supporting RTC hwclock
Change-Id: Iedf453c1bdd01bd1682ec2bce4d2e0148153ece2
2014-12-16 00:56:59 +09:00
ckkim
02b9c85af2 ODROIDC: mmc: Support UHS-1 micro sdcard
Since MESON8B has single SDHC and SDIO block, 'meson8b_odroidc.dtd' is to boot by sdcard
and 'meson8b_odroidc_emmc.dtd' by eMMC.

Change-Id: I5550197122c023d50665a3bcfc740567b99420f4
2014-12-16 00:56:50 +09:00
Dongjin Kim
e3fcce2faf config:ODROIDC: Kernel porting to ODROIDC board (rev 1.0)
Below hardware/components are deprecated
        PMU (AML1618)
        NAND
        Audio Codec

Change-Id: Ica61b729b1fc8abc8df9bb60d84279c3f0269d85
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 00:56:42 +09:00
Dongjin Kim
7ce662dd7a config:ODROIDC: Enable a sysfs interface for GPIOs.
Change-Id: If5ad26b1f2619b478f4a025db223267e2e3e69fc
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 00:56:34 +09:00
Dongjin Kim
7cde677246 ARM:config: Add new kernel config for ODROID-C
Change-Id: I8fc926f3991e83b7e50da1779fd2a5f6b73aa70f
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 00:56:24 +09:00
Dongjin Kim
db8d344dcd ARM:dts: Add new device file for ODROID-C
Change-Id: I0ef19806958742c2f4c64c97aa2695b2fe5782ea
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 00:56:14 +09:00
Dongjin Kim
2ce21f7c19 arch/arm/mach-meson8b: Add ODROID-C to Kconfig.boards
Change-Id: I46e951f4091cb4216c8fd20d71f04cdfb91f9c2f
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 00:56:06 +09:00
Dongjin Kim
e647d676f7 AMLogic's patchset of 'amlogic-20140823'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-15 21:09:17 +09:00
Greg Kroah-Hartman
6969595f01 Linux 3.10.33 v3.10.33 2014-03-06 21:58:45 -08:00
Dan Williams
e9ba61f0dd ioat: fix tasklet tear down
commit da87ca4d4c upstream.

Since commit 7787380336 "net_dma: mark broken" we no longer pin dma
engines active for the network-receive-offload use case.  As a result
the ->free_chan_resources() that occurs after the driver self test no
longer has a NET_DMA induced ->alloc_chan_resources() to back it up.  A
late firing irq can lead to ksoftirqd spinning indefinitely due to the
tasklet_disable() performed by ->free_chan_resources().  Only
->alloc_chan_resources() can clear this condition in affected kernels.

This problem has been present since commit 3e037454bc "I/OAT: Add
support for MSI and MSI-X" in 2.6.24, but is now exposed. Given the
NET_DMA use case is deprecated we can revisit moving the driver to use
threaded irqs.  For now, just tear down the irq and tasklet properly by:

1/ Disable the irq from triggering the tasklet

2/ Disable the irq from re-arming

3/ Flush inflight interrupts

4/ Flush the timer

5/ Flush inflight tasklets

References:
https://lkml.org/lkml/2014/1/27/282
https://lkml.org/lkml/2014/2/19/672

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Steven Rostedt <rostedt@goodmis.org>
Reported-by: Mike Galbraith <bitbucket@online.de>
Reported-by: Stanislav Fomichev <stfomichev@yandex-team.ru>
Tested-by: Mike Galbraith <bitbucket@online.de>
Tested-by: Stanislav Fomichev <stfomichev@yandex-team.ru>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:14 -08:00
Alex Deucher
b4cd4961cf drm/radeon: disable pll sharing for DP on DCE4.1
commit 9ef4e1d000 upstream.

Causes display problems.  We had already disabled
sharing for non-DP displays.

Based on a patch from:
Niels Ole Salscheider <niels_ole@salscheider-online.de>

bug:
https://bugzilla.kernel.org/show_bug.cgi?id=58121

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:14 -08:00
Christian König
3b82a80b1d drm/radeon: fix missing bo reservation
commit 5e386b574c upstream.

Otherwise we might get a crash here.

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:14 -08:00
Alex Deucher
6a57734917 drm/radeon: print the supported atpx function mask
commit 9f050c7f97 upstream.

Print the supported functions mask in addition to
the version.  This is useful in debugging PX
problems since we can see what functions are available.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:14 -08:00
Mike Snitzer
fe8ee730af dm thin: fix the error path for the thin device constructor
commit 1acacc0784 upstream.

dm_pool_close_thin_device() must be called if dm_set_target_max_io_len()
fails in thin_ctr().  Otherwise __pool_destroy() will fail because the
pool will still have an open thin device:

 device-mapper: thin metadata: attempt to close pmd when 1 device(s) are still open
 device-mapper: thin: __pool_destroy: dm_pool_metadata_close() failed.

Also, must establish error code if failing thin_ctr() because the pool
is in fail_io mode.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:14 -08:00
Mike Snitzer
4f48d3328e dm thin: avoid metadata commit if a pool's thin devices haven't changed
commit 4d1662a30d upstream.

Commit 905e51b ("dm thin: commit outstanding data every second")
introduced a periodic commit.  This commit occurs regardless of whether
any thin devices have made changes.

Fix the periodic commit to check if any of a pool's thin devices have
changed using dm_pool_changed_this_transaction().

Reported-by: Alexander Larsson <alexl@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:13 -08:00
Hannes Reinecke
f4124bc34f dm mpath: fix stalls when handling invalid ioctls
commit a1989b3300 upstream.

An invalid ioctl will never be valid, irrespective of whether multipath
has active paths or not.  So for invalid ioctls we do not have to wait
for multipath to activate any paths, but can rather return an error
code immediately.  This fix resolves numerous instances of:

 udevd[]: worker [] unexpectedly returned with status 0x0100

that have been seen during testing.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:13 -08:00
Linus Walleij
102544b7f1 dma: ste_dma40: don't dereference free:d descriptor
commit e9baa9d9d5 upstream.

It appears that in the DMA40 driver the DMA tasklet will very
often dereference memory for a descriptor just free:d from the
DMA40 slab. Nothing happens because no other part of the driver
has yet had a chance to claim this memory, but it's really
nasty to dereference free:d memory, so let's check the flag
before the descriptor is free and store it in a bool variable.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:13 -08:00
Jean Delvare
f7caf94294 i7300_edac: Fix device reference count
commit 75135da0d6 upstream.

pci_get_device() decrements the reference count of "from" (last
argument) so when we break off the loop successfully we have only one
device reference - and we don't know which device we have. If we want
a reference to each device, we must take them explicitly and let
the pci_get_device() walk complete to avoid duplicate references.

This is serious, as over-putting device references will cause
the device to eventually disappear. Without this fix, the kernel
crashes after a few insmod/rmmod cycles.

Tested on an Intel S7000FC4UR system with a 7300 chipset.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Link: http://lkml.kernel.org/r/20140224111656.09bbb7ed@endymion.delvare
Cc: Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:13 -08:00
Dr. Greg Wettstein
31ccf35d55 qla2xxx: Fix kernel panic on selective retransmission request
commit 6f58c780e5 upstream.

A selective retransmission request (SRR) is a fibre-channel
protocol control request which provides support for requesting
retransmission of a data sequence in response to an issue such as
frame loss or corruption.  These events are experienced
infrequently in fibre-channel based networks which makes
it difficult to test and assess codepaths which handle these
events.

We were fortunate enough, for some definition of fortunate, to
have a metro-area single-mode SAN link which, at 10 GBPS
sustained load levels, would consistently generate SRR's in
a SCST based target implementation using our SCST/in-kernel
Qlogic target interface driver.  In response to an SRR the
in-kernel Qlogic target driver immediately panics resulting
in a catastrophic storage failure for serviced initiators.

The culprit was a debug statement in the qla_target.c file which
does not verify that a pointer to the SCSI CDB is not null.
The unchecked pointer dereference results in the kernel panic
and resultant system failure.

The other two references to the SCSI CDB by the SRR handling code
use a ternary operator to verify a non-null pointer is being
acted on.  This patch simply adds a similar test to the implicated
debug statement.

This patch is a candidate for any stable kernel being maintained
since it addresses a potentially catastrophic event with
minimal downside.

Signed-off-by: Dr. Greg Wettstein <greg@enjellic.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:13 -08:00