]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/log
mirror_ubuntu-artful-kernel.git
6 years agoUBUNTU: Ubuntu-raspi2-4.11.0-1004.6 Ubuntu-raspi2-4.11.0-1004.6
Stefan Bader [Thu, 14 Sep 2017 08:57:58 +0000 (10:57 +0200)]
UBUNTU: Ubuntu-raspi2-4.11.0-1004.6

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
6 years agoUBUNTU: SAUCE: Fix net_device destructor rename
Stefan Bader [Thu, 14 Sep 2017 07:48:15 +0000 (09:48 +0200)]
UBUNTU: SAUCE: Fix net_device destructor rename

Was renamed in 4.12 from (struct net_device *)->destructor to
priv_destructor. Same change was added to stable in 4.11.9.

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
6 years agoUBUNTU: Ubuntu-raspi2-4.11.0-1004.5 Ubuntu-raspi2-4.11.0-1004.5
Andy Whitcroft [Thu, 13 Jul 2017 17:28:10 +0000 (18:28 +0100)]
UBUNTU: Ubuntu-raspi2-4.11.0-1004.5

Signed-off-by: Andy Whitcroft <apw@canonical.com>
6 years agoUBUNTU: [Packaging] fix insertchanges
Andy Whitcroft [Thu, 13 Jul 2017 17:17:10 +0000 (18:17 +0100)]
UBUNTU: [Packaging] fix insertchanges

Signed-off-by: Andy Whitcroft <apw@canonical.com>
6 years agoUBUNTU: [Config] update configs following rebase to Ubuntu-4.11.0-11.16
Andy Whitcroft [Thu, 13 Jul 2017 17:12:43 +0000 (18:12 +0100)]
UBUNTU: [Config] update configs following rebase to Ubuntu-4.11.0-11.16

Signed-off-by: Andy Whitcroft <apw@canonical.com>
6 years agoUBUNTU: rebase to Ubuntu-4.11.0-11.16
Andy Whitcroft [Thu, 13 Jul 2017 17:27:17 +0000 (18:27 +0100)]
UBUNTU: rebase to Ubuntu-4.11.0-11.16

Signed-off-by: Andy Whitcroft <apw@canonical.com>
6 years agoUBUNTU: Start new release
Andy Whitcroft [Thu, 13 Jul 2017 17:10:45 +0000 (18:10 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andy Whitcroft <apw@canonical.com>
6 years agoUBUNTU: Ubuntu-raspi2-4.11.0-1003.4
Seth Forshee [Mon, 3 Jul 2017 15:08:43 +0000 (10:08 -0500)]
UBUNTU: Ubuntu-raspi2-4.11.0-1003.4

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
6 years agoSQUASH: mmc: Apply ERASE_BROKEN quirks correctly
Phil Elwell [Tue, 27 Jun 2017 14:07:14 +0000 (15:07 +0100)]
SQUASH: mmc: Apply ERASE_BROKEN quirks correctly

Squash with: mmc: Add MMC_QUIRK_ERASE_BROKEN for some cards

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit 64b5f5825a998d745801c2682e686423e88a0e93
 https://github.com/raspberrypi/linux)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
6 years agoUBUNTU: Rebase to Ubuntu-4.11.0-10.15
Seth Forshee [Mon, 3 Jul 2017 15:00:15 +0000 (10:00 -0500)]
UBUNTU: Rebase to Ubuntu-4.11.0-10.15

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
6 years agoUBUNTU: Start new release
Seth Forshee [Mon, 3 Jul 2017 14:53:03 +0000 (09:53 -0500)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
6 years agoUBUNTU: Ubuntu-raspi2-4.11.0-1002.3
Seth Forshee [Mon, 26 Jun 2017 17:17:25 +0000 (12:17 -0500)]
UBUNTU: Ubuntu-raspi2-4.11.0-1002.3

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
6 years agoUBUNTU: [Config] Add CONFIG_CRASH_DUMP annotation for arm64
Seth Forshee [Mon, 26 Jun 2017 17:12:26 +0000 (12:12 -0500)]
UBUNTU: [Config] Add CONFIG_CRASH_DUMP annotation for arm64

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
6 years agooverlays: README: remove vestigial SDIO parameters
Phil Elwell [Sat, 20 May 2017 21:10:14 +0000 (22:10 +0100)]
overlays: README: remove vestigial SDIO parameters

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit 13a75e97dca4e3f3ca286a44162629bd32bfe4c8
 https://github.com/raspberrypi/linux)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
6 years agoBCM270X_DT: Add midi-uart1 overlay
Phil Elwell [Fri, 26 May 2017 12:03:41 +0000 (13:03 +0100)]
BCM270X_DT: Add midi-uart1 overlay

Add a scaler to the ttyS0 clock so that requesting 38400 baud results
in an approximately 31250 baud signal. This is analagous to
midi-uart0, except for ttyS0, which may be useful on Pi3 and also
may avoid an issue with ttyAMA0 failing to synchronise to an active
data stream.

See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=183860

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit d065c2ade1e284d33d1d6da4090f635cbc7310fa
 https://github.com/raspberrypi/linux)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
6 years agoserial: 8250: Fix THRE flag usage for CAP_MINI
Phil Elwell [Wed, 21 Jun 2017 16:19:04 +0000 (17:19 +0100)]
serial: 8250: Fix THRE flag usage for CAP_MINI

The BCM2835 MINI UART has non-standard THRE semantics. Conventionally
the bit means that the FIFO is empty (although there may still be a
byte in the transmit register), but on 2835 it indicates that the FIFO
is not empty. This causes interrupts after every byte is transmitted,
with the FIFO providing some interrupt latency tolerance.

A consequence of this difference is that the usual strategy of writing
multiple bytes into the TX FIFO after checking THRE once is unsafe.
In the worst case of 7 bytes in the FIFO, writing 8 bytes loses all
but the first since by then the FIFO is full.

There is an HFIFO ("Hidden FIFO") bit which is almost what is needed,
but it only adds more bytes while both THRE and TEMT are set, i.e.
when the TX side is completely idle. This is unnecessarily pessimistic.

Add a new special case, predicated on CAP_MINI, that loops until THRE
is no longer set. With this change, the FIFO fills quickly but
subsequent writes are paced by the transmission rate.

See: https://github.com/raspberrypi/linux/issues/1855

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit ae56ef5572d26a8ba0d71992f8da7c9de2b7bcff
 https://github.com/raspberrypi/linux)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
6 years agodwc_otg: fiq_fsm: Add non-periodic TT exclusivity constraints
P33M [Tue, 20 Jun 2017 12:44:01 +0000 (13:44 +0100)]
dwc_otg: fiq_fsm: Add non-periodic TT exclusivity constraints

Certain hub types do not discriminate between pipe direction (IN or OUT)
when considering non-periodic transfers. Therefore these hubs get confused
if multiple transfers are issued in different directions with the same
device address and endpoint number.

Constrain queuing non-periodic split transactions so they are performed
serially in such cases.

Related: https://github.com/raspberrypi/linux/issues/2024
(cherry picked from commit ab09430694fbda7388eee5fc37429f31d3f55cb4
 https://github.com/raspberrypi/linux)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
6 years agodwc_otg: add module parameter int_ep_interval_min
P33M [Mon, 12 Jun 2017 15:10:03 +0000 (16:10 +0100)]
dwc_otg: add module parameter int_ep_interval_min

Add a module parameter (defaulting to ignored) that clamps the polling rate
of high-speed Interrupt endpoints to a minimum microframe interval.

The parameter is modifiable at runtime as it is used when activating new
endpoints (such as on device connect).

(cherry picked from commit a0bb57725f8fd1f8f054f7e328d14acb6d1cab6a
 https://github.com/raspberrypi/linux)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
6 years agoUBUNTU: Start new release
Seth Forshee [Mon, 26 Jun 2017 16:58:18 +0000 (11:58 -0500)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
6 years agoUBUNTU: Ubuntu-raspi2-4.11.0-1001.2
Seth Forshee [Wed, 21 Jun 2017 16:58:20 +0000 (11:58 -0500)]
UBUNTU: Ubuntu-raspi2-4.11.0-1001.2

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
6 years agoUBUNTU: Start new release
Seth Forshee [Mon, 19 Jun 2017 18:35:02 +0000 (13:35 -0500)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
6 years agoUBUNTU: Ubuntu-raspi2-4.11.0-1000.1
Seth Forshee [Tue, 13 Jun 2017 19:06:46 +0000 (14:06 -0500)]
UBUNTU: Ubuntu-raspi2-4.11.0-1000.1

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
6 years agoUBUNTU: Add raspi2 packaging
Seth Forshee [Tue, 13 Jun 2017 18:06:26 +0000 (13:06 -0500)]
UBUNTU: Add raspi2 packaging

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
6 years agoconfig: Add CONFIG_CAN_GS_USB
popcornmix [Mon, 12 Jun 2017 12:05:43 +0000 (13:05 +0100)]
config: Add CONFIG_CAN_GS_USB

6 years agodwc_otg: fiq_fsm: Make isochronous compatibility checks work properly
P33M [Fri, 26 May 2017 11:50:31 +0000 (12:50 +0100)]
dwc_otg: fiq_fsm: Make isochronous compatibility checks work properly

Get rid of the spammy printk and local pointer mangling.
Also, there is a nominal benefit for using fiq_fsm for isochronous
transfers in FS mode (~1.1k IRQs per second vs 2.1k IRQs per second)
so remove the root port speed check.

6 years agoserial: 8250: Add CAP_MINI, set for bcm2835aux
Phil Elwell [Fri, 19 May 2017 15:07:23 +0000 (16:07 +0100)]
serial: 8250: Add CAP_MINI, set for bcm2835aux

commit d087e7a991f1f61ee2c07db1be7c5cc2aa373f5d upstream.

The AUX/mini-UART in the BCM2835 family of procesors is a cut-down
8250 clone. In particular it is lacking support for the following
features: CSTOPB PARENB PARODD CMSPAR CS5 CS6

Add a new capability (UART_CAP_MINI) that exposes the restrictions to
the user of the termios API by turning off the unsupported features in
the request.

N.B. It is almost possible to automatically discover the missing
features by reading back the LCR register, but the CSIZE bits don't
cooperate (contrary to the documentation, both bits are significant,
but CS5 and CS6 are mapped to CS7) and the code is much longer.

See: https://github.com/raspberrypi/linux/issues/1561

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
6 years agodwc_otg: make periodic scheduling behave properly for FS buses
P33M [Thu, 25 May 2017 15:04:53 +0000 (16:04 +0100)]
dwc_otg: make periodic scheduling behave properly for FS buses

If the root port is in full-speed mode, transfer times at 12mbit/s
would be calculated but matched against high-speed quotas.

Reinitialise hcd->frame_usecs[i] on each port enable event so that
full-speed bandwidth can be tracked sensibly.

Also, don't bother using the FIQ for transfers when in full-speed
mode - at the slower bus speed, interrupt frequency is reduced by
an order of magnitude.

Related issue: https://github.com/raspberrypi/linux/issues/2020

6 years ago[ARM64] enable drivers for GPIO expander and vcio
Bilal Amarni [Wed, 24 May 2017 08:52:50 +0000 (10:52 +0200)]
[ARM64] enable drivers for GPIO expander and vcio

6 years agoclk: bcm2835: Minimise clock jitter for PCM clock
Phil Elwell [Mon, 22 May 2017 12:56:41 +0000 (13:56 +0100)]
clk: bcm2835: Minimise clock jitter for PCM clock

Fractional clock dividers generate accurate average frequencies but
with jitter, particularly when the integer divisor is small.

Introduce a new metric of clock accuracy to penalise clocks with a good
average but worse jitter compared to clocks with an average which is no
better but with lower jitter. The metric is the ideal rate minus the
worse deviation from that ideal using the nearest integer divisors.

Use this metric for parent selection for clocks requiring low jitter
(currently just PCM).

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agoclk: bcm2835: Limit PCM clock to OSC and PLLD_PER
Phil Elwell [Wed, 26 Apr 2017 16:28:47 +0000 (17:28 +0100)]
clk: bcm2835: Limit PCM clock to OSC and PLLD_PER

It is unwise to use sources other than the oscillator and PLLD_PER for
the PCM peripheral (and perhaps others - TBD) because their rate can
change and they may even be switched off, so explicitly restrict the
choice using dummy entries in the list of potential parents (item index
is significant).

See: https://github.com/raspberrypi/linux/issues/1949

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agoconfig: Add CONFIG_I2C_ROBOTFUZZ_OSIF
popcornmix [Tue, 16 May 2017 18:34:52 +0000 (19:34 +0100)]
config: Add CONFIG_I2C_ROBOTFUZZ_OSIF

6 years agoconfig: Add CONFIG_TOUCHSCREEN_EDT_FT5X06
popcornmix [Tue, 16 May 2017 14:58:00 +0000 (15:58 +0100)]
config: Add CONFIG_TOUCHSCREEN_EDT_FT5X06

6 years agoconfig: Add FB_TFT_ST7789V module
popcornmix [Thu, 18 May 2017 10:40:43 +0000 (11:40 +0100)]
config: Add FB_TFT_ST7789V module

6 years agoconfig: Add CONFIG_TOUCHSCREEN_GOODIX
popcornmix [Mon, 15 May 2017 15:40:05 +0000 (16:40 +0100)]
config: Add CONFIG_TOUCHSCREEN_GOODIX

6 years agodwc_otg: remove unnecessary dma-mode channel halts on disconnect interrupt
P33M [Mon, 15 May 2017 13:51:42 +0000 (14:51 +0100)]
dwc_otg: remove unnecessary dma-mode channel halts on disconnect interrupt

Host channels are already halted in kill_urbs_in_qh_list() with the
subsequent interrupt processing behaving as if the URB was dequeued
via HCD callback.

There's no need to clobber the host channel registers a second time
as this exposes races between the driver and host channel resulting
in hcd->free_hc_list becoming corrupted.

6 years agodwc_otg: delete hcd->channel_lock
P33M [Mon, 15 May 2017 13:27:48 +0000 (14:27 +0100)]
dwc_otg: delete hcd->channel_lock

The lock serves no purpose as it is only held while the HCD spinlock
is already being held.

6 years agodwc_otg: fix several potential crash sources
P33M [Fri, 12 May 2017 11:24:00 +0000 (12:24 +0100)]
dwc_otg: fix several potential crash sources

On root port disconnect events, the host driver state is cleared and
in-progress host channels are forcibly stopped. This doesn't play
well with the FIQ running in the background, so:
- Guard the disconnect callback with both the host spinlock and FIQ
  spinlock
- Move qtd dereference in dwc_otg_handle_hc_fsm() after the early-out
  so we don't dereference a qtd that has gone away
- Turn catch-all BUG()s in dwc_otg_handle_hc_fsm() into warnings.

6 years agoBCM270X_DT: Tidy up mmc, sdhost, sdio overlays
Phil Elwell [Thu, 11 May 2017 15:58:16 +0000 (16:58 +0100)]
BCM270X_DT: Tidy up mmc, sdhost, sdio overlays

The mmc, sdhost, sdio and sdio-1bit overlays had a few
anachronisms and oddities which were overdue for fixing.
The new versions should be functionally equivalent.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agovc4_fkms: Apply firmware overscan offset to hardware cursor
popcornmix [Tue, 18 Apr 2017 20:43:46 +0000 (21:43 +0100)]
vc4_fkms: Apply firmware overscan offset to hardware cursor

6 years agosquash: vc4_firmware_kms fixups
popcornmix [Wed, 10 May 2017 20:39:45 +0000 (21:39 +0100)]
squash: vc4_firmware_kms fixups

6 years agodrm/vc4: Fix sending of page flip completion events in FKMS mode.
Eric Anholt [Thu, 2 Feb 2017 17:42:18 +0000 (09:42 -0800)]
drm/vc4: Fix sending of page flip completion events in FKMS mode.

In the rewrite of vc4_crtc.c for fkms, I dropped the part of the
CRTC's atomic flush handler that moved the completion event from the
proposed atomic state change to the CRTC's current state.  That meant
that when full screen pageflipping happened (glxgears -fullscreen in
X, compton, por weston), the app would end up blocked firever waiting
to draw its next frame.

Signed-off-by: Eric Anholt <eric@anholt.net>
6 years agodrm/vc4: Add DRM_DEBUG_ATOMIC for the insides of fkms.
Eric Anholt [Thu, 2 Feb 2017 01:10:09 +0000 (17:10 -0800)]
drm/vc4: Add DRM_DEBUG_ATOMIC for the insides of fkms.

Trying to debug weston on fkms involved figuring out what calls I was
making to the firmware.

Signed-off-by: Eric Anholt <eric@anholt.net>
6 years agodrm/vc4: Name the primary and cursor planes in fkms.
Eric Anholt [Thu, 2 Feb 2017 01:09:18 +0000 (17:09 -0800)]
drm/vc4: Name the primary and cursor planes in fkms.

This makes debugging nicer, compared to trying to remember what the
IDs are.

Signed-off-by: Eric Anholt <eric@anholt.net>
6 years agodrm/vc4: Add a mode for using the closed firmware for display.
Eric Anholt [Wed, 14 Sep 2016 07:39:33 +0000 (08:39 +0100)]
drm/vc4: Add a mode for using the closed firmware for display.

Signed-off-by: Eric Anholt <eric@anholt.net>
6 years agoAccording to RFC 2460, IPv6 UDP calculated checksum yields a result
Nisar Sayed [Tue, 9 May 2017 17:51:42 +0000 (18:51 +0100)]
According to RFC 2460, IPv6 UDP calculated checksum yields a result
of zero must be changed to 0xffff, however this feature is not
supported by smsc95xx family hence enable csum offload only for
IPv4 TCP/UDP packets.

Signed-off-by: Nisar Sayed <Nisar.Sayed@microchip.com>
Reported-by: popcorn mix <popcornmix@gmail.com>
6 years agobcm2708_fb: Avoid firmware mbox call in vc_mem_copy
popcornmix [Thu, 4 May 2017 16:38:22 +0000 (17:38 +0100)]
bcm2708_fb: Avoid firmware mbox call in vc_mem_copy

If firmware has locked up it is useful to get vcdbg log out without a firmware mbox response.
Issue the mbox call at probe time instead.

Signed-off-by: popcornmix <popcornmix@gmail.com>
6 years agofiq_fsm: Use correct states when starting isoc OUT transfers
P33M [Thu, 4 May 2017 11:58:11 +0000 (12:58 +0100)]
fiq_fsm: Use correct states when starting isoc OUT transfers

In fiq_fsm_start_next_periodic() if an isochronous OUT transfer
was selected, no regard was given as to whether this was a single-packet
transfer or a multi-packet staged transfer.

For single-packet transfers, this had the effect of repeatedly sending
OUT packets with bogus data and lengths.

Eventually if the channel was repeatedly enabled enough times, this
would lock up the OTG core and no further bus transfers would happen.

Set the FSM state up properly if we select a single-packet transfer.

Fixes https://github.com/raspberrypi/linux/issues/1842

6 years agovcsm: Treat EBUSY as success rather than SIGBUS
popcornmix [Tue, 2 May 2017 15:36:05 +0000 (16:36 +0100)]
vcsm: Treat EBUSY as success rather than SIGBUS

Currently if two cores access the same page concurrently one will return VM_FAULT_NOPAGE
and the other VM_FAULT_SIGBUS crashing the user code.

Also report when mapping fails.

Signed-off-by: popcornmix <popcornmix@gmail.com>
6 years agodwc_otg: fix split transaction data toggle handling around dequeues
P33M [Tue, 2 May 2017 15:31:15 +0000 (16:31 +0100)]
dwc_otg: fix split transaction data toggle handling around dequeues

See https://github.com/raspberrypi/linux/issues/1709

Fix several issues regarding endpoint state when URBs are dequeued
- If the HCD is disconnected, flush FIQ-enabled channels properly
- Save the data toggle state for bulk endpoints if the last transfer
  from an endpoint where URBs were dequeued returned a data packet
- Reset hc->start_pkt_count properly in assign_and_init_hc()

6 years agodwc_otg: make nak_holdoff work as intended with empty queues
P33M [Thu, 27 Apr 2017 15:24:34 +0000 (16:24 +0100)]
dwc_otg: make nak_holdoff work as intended with empty queues

If URBs reading from non-periodic split endpoints were dequeued and
the last transfer from the endpoint was a NAK handshake, the resulting
qh->nak_frame value was stale which would result in unnecessarily long
polling intervals for the first subsequent transfer with a fresh URB.

Fixup qh->nak_frame in dwc_otg_hcd_urb_dequeue and also guard against
a case where a single URB is submitted to the endpoint, a NAK was
received on the transfer immediately prior to receiving data and the
device subsequently resubmits another URB past the qh->nak_frame interval.

Fixes https://github.com/raspberrypi/linux/issues/1709

6 years agoBCM2708: Add Raspberry Pi TV HAT Device Tree Support
Yasunari Takiguchi [Thu, 22 Dec 2016 06:34:12 +0000 (15:34 +0900)]
BCM2708: Add Raspberry Pi TV HAT Device Tree Support

This is an EXAMPLE CODE of Raspberry Pi TV HAT device tree overlay.
Although this is not a part of our release code, it has been used to verify
CXD2880 device driver with TV HAT.

Add the following line to /boot/config.txt to enable TV HAT:

dtoverlay=rpi-tv

Reboot Raspberry Pi and check the existance of /proc/device-tree/soc/spi@7e204000/cxd2880@0.
If exists, the installation is successful.  you should be able to find the following three files.
/dev/dvb/adapter0/frontend0
/dev/dvb/adapter0/demux0
/dev/dvb/adapter0/dvr0

Signed-off-by: Yasunari Takiguchi <Yasunari.Takiguchi@sony.com>
Signed-off-by: Masayuki Yamamoto <Masayuki.Yamamoto@sony.com>
Signed-off-by: Hideki Nozawa <Hideki.Nozawa@sony.com>
Signed-off-by: Kota Yonezawa <Kota.Yonezawa@sony.com>
Signed-off-by: Toshihiko Matsumoto <Toshihiko.Matsumoto@sony.com>
Signed-off-by: Satoshi Watanabe <Satoshi.C.Watanabe@sony.com>
6 years agoThis is the driver for Sony CXD2880 DVB-T2/T tuner + demodulator.
Yasunari Takiguchi [Fri, 14 Apr 2017 09:43:57 +0000 (10:43 +0100)]
This is the driver for Sony CXD2880 DVB-T2/T tuner + demodulator.
It includes the CXD2880 driver and the CXD2880 SPI adapter.
The current CXD2880 driver version is 1.4.1 - 1.0.1 released
on April 13, 2017.

Signed-off-by: Yasunari Takiguchi <Yasunari.Takiguchi@sony.com>
Signed-off-by: Masayuki Yamamoto <Masayuki.Yamamoto@sony.com>
Signed-off-by: Hideki Nozawa <Hideki.Nozawa@sony.com>
Signed-off-by: Kota Yonezawa <Kota.Yonezawa@sony.com>
Signed-off-by: Toshihiko Matsumoto <Toshihiko.Matsumoto@sony.com>
Signed-off-by: Satoshi Watanabe <Satoshi.C.Watanabe@sony.com>
6 years agoAdd clock changes and mute gpios (#1938)
BabuSubashChandar [Fri, 31 Mar 2017 19:16:52 +0000 (00:46 +0530)]
Add clock changes and mute gpios (#1938)

Also improve code style and adhere to ALSA coding conventions.

Signed-off-by: Baswaraj K <jaikumar@cem-solutions.net>
Reviewed-by: Vijay Kumar B. <vijaykumar@zilogic.com>
Reviewed-by: Raashid Muhammed <raashidmuhammed@zilogic.com>
6 years agoAdd support for new clock rate and mute gpios.
BabuSubashChandar C [Thu, 30 Mar 2017 14:47:27 +0000 (20:17 +0530)]
Add support for new clock rate and mute gpios.

Signed-off-by: Baswaraj K <jaikumar@cem-solutions.net>
Reviewed-by: Deepak <deepak@zilogic.com>
Reviewed-by: BabuSubashChandar <babusubashchandar@zilogic.com>
6 years ago Add support for Allo Boss DAC add-on board for Raspberry Pi. (#1924)
BabuSubashChandar [Tue, 28 Mar 2017 14:34:42 +0000 (20:04 +0530)]
 Add support for Allo Boss DAC add-on board for Raspberry Pi.  (#1924)

Signed-off-by: Baswaraj K <jaikumar@cem-solutions.net>
Reviewed-by: Deepak <deepak@zilogic.com>
Reviewed-by: BabuSubashChandar <babusubashchandar@zilogic.com>
6 years agoAdd support for Allo Piano DAC 2.1 plus add-on board for Raspberry Pi.
Raashid Muhammed [Mon, 27 Mar 2017 07:05:00 +0000 (12:35 +0530)]
Add support for Allo Piano DAC 2.1 plus add-on board for Raspberry Pi.

The Piano DAC 2.1 has support for 4 channels with subwoofer.

Signed-off-by: Baswaraj K <jaikumar@cem-solutions.net>
Reviewed-by: Vijay Kumar B. <vijaykumar@zilogic.com>
Reviewed-by: Raashid Muhammed <raashidmuhammed@zilogic.com>
6 years agoDriver support for Google voiceHAT soundcard.
Peter Malkin [Mon, 27 Mar 2017 23:38:21 +0000 (16:38 -0700)]
Driver support for Google voiceHAT soundcard.

6 years agoAudioInjector Octo: sample rates, regulators, reset
Matt Flax [Mon, 27 Mar 2017 11:26:49 +0000 (22:26 +1100)]
AudioInjector Octo: sample rates, regulators, reset

This patch adds new sample rates to the Audioinjector Octo sound card. The
new supported rates are (in kHz) :
96, 48, 32, 24, 16, 8, 88.2, 44.1, 29.4, 22.05, 14.7

Reference the bcm270x DT regulators in the overlay.

This patch adds a reset GPIO for the AudioInjector.net octo sound card.

6 years agoconfig: Add back MMC_BCM2835_DMA
popcornmix [Wed, 29 Mar 2017 16:41:04 +0000 (17:41 +0100)]
config: Add back MMC_BCM2835_DMA

6 years agoleds-gpio: Remove stray assignment to brightness_set
Phil Elwell [Tue, 28 Mar 2017 16:41:30 +0000 (17:41 +0100)]
leds-gpio: Remove stray assignment to brightness_set

The brightness_set method is intended for use cases that must not
block, and can only be used if the GPIO provider can never sleep.
Remove an accidental initialisation (a copy-and-paste error) that
sets it regardless, which has been seen to cause crashes with the
gpio expander driver.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agoBCM270X_DT: Allow multiple instances of w1-gpio overlays
Phil Elwell [Tue, 28 Mar 2017 13:22:20 +0000 (14:22 +0100)]
BCM270X_DT: Allow multiple instances of w1-gpio overlays

Upcoming firmware will modify the address portion of node names when
their "reg" property is written by a dtparam. Modify the w1-gpio
overlays to write the gpiopin parameter value to "reg" properties, so
that multiple instances can be loaded simultaneously.

Note: The value of the "address" is unimportant - the w1 subsystem
assigns instance numbers to buses sequentially from 1, and it is
not necessary to know which bus a device is on in order to find it.

6 years agoBCM270X_DT: Add lm75 to i2c-sensor overlay
Phil Elwell [Tue, 14 Mar 2017 09:10:05 +0000 (09:10 +0000)]
BCM270X_DT: Add lm75 to i2c-sensor overlay

See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=177236

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agoMatch dwc2 device-tree fifo sizes to the hardware values.
John Greb [Wed, 8 Mar 2017 15:12:29 +0000 (15:12 +0000)]
Match dwc2 device-tree fifo sizes to the hardware values.

Since commit aa381a7259c3f53727bcaa8c5f9359e940a0e3fd was reverted with 3fa9538539ac737096c81f3315a14670b1609092 the g-tx-fifo-size array in the device-tree needs to match the preset values in the bcm2835.

Resolves https://github.com/raspberrypi/linux/issues/1876

6 years agothermal: Compatible strings for bcm2836, bcm2837
Phil Elwell [Mon, 13 Mar 2017 12:30:37 +0000 (12:30 +0000)]
thermal: Compatible strings for bcm2836, bcm2837

The upstream dt-bindings documentation for bcm2835-thermal (which
exists even though the driver isn't upstreamed) says to use
dedicated compatible strings on bcm2836 and bcm2837, even though
the downstream driver doesn't support them. The Pi2 DTB uses
"brcm,bcm2836-thermal", so the driver doesn't load. The Pi3 DTB
doesn't override the base value, but the arm64 Pi3 support uses "brcm,bcm2837-thermal".

Solve the documentation problem by adding "brcm,bcm2836-thermal" and
"brcm,bcm2837-thermal" as alternative compatible strings for the
bcm2835-thermal driver.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agobcm2835-sdhost: mmc_card_blockaddr fix
Phil Elwell [Wed, 29 Mar 2017 15:08:29 +0000 (16:08 +0100)]
bcm2835-sdhost: mmc_card_blockaddr fix

Get the definition of mmc_card_blockaddr from drivers/mmc/core/card.h.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agommc: Add MMC_QUIRK_ERASE_BROKEN for some cards
Phil Elwell [Wed, 11 May 2016 11:50:33 +0000 (12:50 +0100)]
mmc: Add MMC_QUIRK_ERASE_BROKEN for some cards

Some SD cards have been found that corrupt data when small blocks
are erased. Add a quirk to indicate that ERASE should not be used,
and set it for cards of that type.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
mmc: Apply QUIRK_BROKEN_ERASE to other capacities

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
mmc: Add card_quirks module parameter, log quirks

Use mmc_block.card_quirks to override the quirks for all SD or MMC
cards. The value is a bitfield using the bit positions defined in
include/linux/mmc/card.h. If the module parameter is placed in the
kernel command line (or bootargs) stored on the card then, assuming the
device only has one SD card interface, the override effectively becomes
card-specific.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agoconfig: Re-enable the bcm2835-mmc driver
Phil Elwell [Wed, 29 Mar 2017 13:28:53 +0000 (14:28 +0100)]
config: Re-enable the bcm2835-mmc driver

With the patch to assign mmc device IDs based on DT aliases and
appropriate aliases in the rpi DTBs, it is now safe to re-enable
the bcm2835-mmc driver.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agoBCM270X_DT: Add numbered aliases for SD/MMC devices
Phil Elwell [Wed, 29 Mar 2017 13:30:42 +0000 (14:30 +0100)]
BCM270X_DT: Add numbered aliases for SD/MMC devices

In order to force a specific ID assignment to SD/MMC devices, add
numbered aliases to the DT: sdhost -> mmc0, mmc -> mmc1

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agommc: read mmc alias from device tree
Stefan Agner [Fri, 29 Apr 2016 17:32:17 +0000 (10:32 -0700)]
mmc: read mmc alias from device tree

To get the SD/MMC host device ID, read the alias from the device
tree.

This is useful in case a SoC has multipe SD/MMC host controllers while
the second controller should logically be the first device (e.g. if
the second controller is connected to an internal eMMC). Combined
with block device numbering using MMC/SD host device ID, this
results in predictable name assignment of the internal eMMC block
device.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
[dianders: rebase + roll in http://crosreview.com/259916]
Signed-off-by: Douglas Anderson <dianders@chromium.org>
6 years agomkknlimg: Find some more downstream-only strings
Phil Elwell [Mon, 27 Mar 2017 16:40:45 +0000 (17:40 +0100)]
mkknlimg: Find some more downstream-only strings

See: https://github.com/raspberrypi/linux/issues/1920

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agoBCM270X_DT: Enable AUX interrupt controller in DT
Phil Elwell [Thu, 23 Mar 2017 17:08:44 +0000 (17:08 +0000)]
BCM270X_DT: Enable AUX interrupt controller in DT

See: https://github.com/raspberrypi/linux/issues/1484
     https://github.com/raspberrypi/linux/issues/1573

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agobcm2835-aux: Add aux interrupt controller
Phil Elwell [Thu, 23 Mar 2017 16:34:46 +0000 (16:34 +0000)]
bcm2835-aux: Add aux interrupt controller

The AUX block has a shared interrupt line with a register indicating
which devices have active IRQs. Expose this as a nested interrupt
controller to avoid sharing problems.

See: https://github.com/raspberrypi/linux/issues/1484
     https://github.com/raspberrypi/linux/issues/1573

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agoASoC: Add prompt for ICS43432 codec
Phil Elwell [Thu, 23 Mar 2017 10:06:56 +0000 (10:06 +0000)]
ASoC: Add prompt for ICS43432 codec

Without a prompt string, a config setting can't be included in a
defconfig. Give CONFIG_SND_SOC_ICS43432 a prompt so that Pi soundcards
can use the driver.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agoconfig: Make spidev a loadable module
Phil Elwell [Fri, 17 Mar 2017 12:24:41 +0000 (12:24 +0000)]
config: Make spidev a loadable module

spidev isn't required early in the boot process, and not all users
need it (spi_bcm2835 is a module), so make it a loadable module.

See: https://github.com/raspberrypi/linux/issues/1897

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agoconfig: disable MMC driver temporarily for now.
popcornmix [Fri, 17 Mar 2017 13:40:41 +0000 (13:40 +0000)]
config: disable MMC driver temporarily for now.

Currently causes a breakage to sdhost driver. However when MMC is disabled Pi3 wifi will not work

6 years agobcm2835-gpio-exp: Copy/paste error adding base twice
Dave Stevenson [Tue, 14 Mar 2017 14:23:06 +0000 (14:23 +0000)]
bcm2835-gpio-exp: Copy/paste error adding base twice

brcmexp_gpio_set was adding gpio->gc.base to the offset
twice, so passing an invalid number to the mailbox service.
The firmware treated it modulo-8 anyway, but was logging an
assert every time.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
6 years agoBCM270X_DT: Invert Pi3 power LED to match fw change
Dave Stevenson [Tue, 7 Mar 2017 12:18:20 +0000 (12:18 +0000)]
BCM270X_DT: Invert Pi3 power LED to match fw change

Firmware expgpio driver reworked due to complaint over
hotplug detect.
Requires power LED to change sense as firmware is no longer
inverting the read value.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
6 years agopinctrl-bcm2835: Fix interrupt handling for GPIOs 28-31 and 46-53
Phil Elwell [Tue, 24 Feb 2015 13:40:50 +0000 (13:40 +0000)]
pinctrl-bcm2835: Fix interrupt handling for GPIOs 28-31 and 46-53

Contrary to the documentation, the BCM2835 GPIO controller actually has
four interrupt lines - one each for the three IRQ groups and one common. Rather
confusingly, the GPIO interrupt groups don't correspond directly with the GPIO
control banks. Instead, GPIOs 0-27 generate IRQ GPIO0, 28-45 GPIO1 and
46-53 GPIO2.

Awkwardly, the GPIOS for IRQ GPIO1 straddle two 32-entry GPIO banks, so it is
cleaner to split out a function to process the interrupts for a single GPIO
bank.

This bug has only just been observed because GPIOs above 27 can only be
accessed on an old Raspberry Pi with the optional P5 header fitted, where
the pins are often used for I2S instead.

6 years agoclk: bcm2835: Mark GPIO clocks enabled at boot as critical.
Eric Anholt [Tue, 10 May 2016 00:28:18 +0000 (17:28 -0700)]
clk: bcm2835: Mark GPIO clocks enabled at boot as critical.

These divide off of PLLD_PER and are used for the ethernet and wifi
PHYs source PLLs.  Neither of them is currently represented by a phy
device that would grab the clock for us.

This keeps other drivers from killing the networking PHYs when they
disable their own clocks and trigger PLLD_PER's refcount going to 0.

v2: Skip marking as critical if they aren't on at boot.

Signed-off-by: Eric Anholt <eric@anholt.net>
6 years agobuild/arm64: Add rules for .dtbo files for dts overlays
Khem Raj [Sat, 11 Feb 2017 01:57:08 +0000 (17:57 -0800)]
build/arm64: Add rules for .dtbo files for dts overlays

We now create overlays as .dtbo files.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
6 years agoARM64: Force hardware emulation of deprecated instructions.
Michael Zoran [Sat, 11 Feb 2017 09:18:31 +0000 (01:18 -0800)]
ARM64: Force hardware emulation of deprecated instructions.

6 years agoARM64: Enable DWC_OTG Driver In ARM64 Build Config(bcmrpi3_defconfig)
Michael Zoran [Sun, 15 Jan 2017 05:45:03 +0000 (21:45 -0800)]
ARM64: Enable DWC_OTG Driver In ARM64 Build Config(bcmrpi3_defconfig)

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
6 years agoARM64: Round-Robin dispatch IRQs between CPUs.
Michael Zoran [Sun, 15 Jan 2017 05:43:57 +0000 (21:43 -0800)]
ARM64: Round-Robin dispatch IRQs between CPUs.

IRQ-CPU mapping is round robined on ARM64 to increase
concurrency and allow multiple interrupts to be serviced
at a time.  This reduces the need for FIQ.

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
6 years agoARM64/DWC_OTG: Port dwc_otg driver to ARM64
Michael Zoran [Sun, 15 Jan 2017 05:33:51 +0000 (21:33 -0800)]
ARM64/DWC_OTG: Port dwc_otg driver to ARM64

In ARM64, the FIQ mechanism used by this driver is not current
implemented.   As a workaround, reqular IRQ is used instead
of FIQ.

In a separate change, the IRQ-CPU mapping is round robined
on ARM64 to increase concurrency and allow multiple interrupts
to be serviced at a time.  This reduces the need for FIQ.

Tests Run:

This mechanism is most likely to break when multiple USB devices
are attached at the same time.  So the system was tested under
stress.

Devices:

1. USB Speakers playing back a FLAC audio through VLC
   at 96KHz.(Higher then typically, but supported on my speakers).

2. sftp transferring large files through the buildin ethernet
   connection which is connected through USB.

3. Keyboard and mouse attached and being used.

Although I do occasionally hear some glitches, the music seems to
play quite well.

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
6 years agoARM64: Enable RTL8187/RTL8192CU wifi in build config
Michael Zoran [Sun, 15 Jan 2017 15:31:59 +0000 (07:31 -0800)]
ARM64: Enable RTL8187/RTL8192CU wifi in build config

These drivers build now, so they can be enabled back
in the build configuration just like they are for
32 bit.

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
6 years agoARM64: Fix build break for RTL8187/RTL8192CU wifi
Michael Zoran [Sun, 15 Jan 2017 15:25:18 +0000 (07:25 -0800)]
ARM64: Fix build break for RTL8187/RTL8192CU wifi

These drivers use an ASM function from the base
system to compute the ipv6 checksum.  These functions
are not available on ARM64, probably because nobody
has bother to write them.  The base system does have
a generic "C" version, so a simple fix is to include
the header to use the generic version on ARM64 only.

A longer term solution would be to submit the necessary
ASM function to the upstream source.

With this change, these drivers now compile without
any errors on ARM64.

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
6 years agoARM64: Enable Kernel Address Space Randomization (#1792)
Electron752 [Sat, 14 Jan 2017 10:54:26 +0000 (02:54 -0800)]
ARM64: Enable Kernel Address Space Randomization (#1792)

Randomization allows the mapping between virtual addresses and physical
address to be different on each boot.  This makes it more difficult
to exploit security vulnerabilities that require knowledge of fixed
hardware addresses.

The firmware generates a 8 byte random number during bootup and stores
it in the device tree under chosen/kaslr-seed. This number is used
to randomize the address mapping.

This change enables this feature in the build configuration for ARM64.

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
6 years agoARM64: Run bcmrpi3_defconfig through savedefconfig.
Michael Zoran [Fri, 13 Jan 2017 03:14:03 +0000 (19:14 -0800)]
ARM64: Run bcmrpi3_defconfig through savedefconfig.

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
6 years agoARM64: Enable HDMI audio and vc04_services in bcmrpi3_defconfig
Michael Zoran [Fri, 13 Jan 2017 03:10:07 +0000 (19:10 -0800)]
ARM64: Enable HDMI audio and vc04_services in bcmrpi3_defconfig

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
6 years agoARM64: Make it work again on 4.9 (#1790)
Electron752 [Thu, 12 Jan 2017 15:07:08 +0000 (07:07 -0800)]
ARM64: Make it work again on 4.9 (#1790)

* Invoke the dtc compiler with the same options used in arm mode.
* ARM64 now uses the bcm2835 platform just like ARM32.
* ARM64: Update bcmrpi3_defconfig

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
6 years agoraspberrypi-firmware: Export the general transaction function.
Eric Anholt [Wed, 14 Sep 2016 08:16:19 +0000 (09:16 +0100)]
raspberrypi-firmware: Export the general transaction function.

The vc4-firmware-kms module is going to be doing the MBOX FB call.

Signed-off-by: Eric Anholt <eric@anholt.net>
6 years agoraspberrypi-firmware: Define the MBOX channel in the header.
Eric Anholt [Wed, 14 Sep 2016 08:18:09 +0000 (09:18 +0100)]
raspberrypi-firmware: Define the MBOX channel in the header.

Signed-off-by: Eric Anholt <eric@anholt.net>
6 years agoAdd arm64 configuration and device tree differences.
Michael Zoran [Wed, 24 Aug 2016 10:35:56 +0000 (03:35 -0700)]
Add arm64 configuration and device tree differences.
Disable MMC_BCM2835_SDHOST and MMC_BCM2835 since these drivers are crashing at the moment.

ARM64: Modify default config to get raspbian to boot (#1686)

1. Enable emulation of deprecated instructions.
2. Enable ARM 8.1 and 8.2 features which are not detected at runtime.
3. Switch the default governer to powersave.
4. Include the watchdog timer driver in the kernel image rather then a module.

Tested with raspbian-jessie 2016-09-23.

6 years agoconfig: Add default configs
popcornmix [Mon, 13 Apr 2015 16:16:29 +0000 (17:16 +0100)]
config: Add default configs

6 years agohci_h5: Don't send conf_req when ACTIVE
Phil Elwell [Thu, 17 Dec 2015 13:37:07 +0000 (13:37 +0000)]
hci_h5: Don't send conf_req when ACTIVE

Without this patch, a modem and kernel can continuously bombard each
other with conf_req and conf_rsp messages, in a demented game of tag.

6 years agobrcmfmac: Mute expected startup 'errors'
Phil Elwell [Fri, 17 Feb 2017 15:26:13 +0000 (15:26 +0000)]
brcmfmac: Mute expected startup 'errors'

The brcmfmac WiFi driver always complains about the '00' country code
and the firmware version is reported as an error. Modify the driver to
ignore '00' silently and display firmware version at INFO level.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agobrcm: adds support for BCM43341 wifi
Cheong2K [Fri, 26 Feb 2016 10:20:10 +0000 (18:20 +0800)]
brcm: adds support for BCM43341 wifi

brcmfmac: Disable power management

Disable wireless power saving in the brcmfmac WLAN driver. This is a
temporary measure until the connectivity loss resulting from power
saving is resolved.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
brcmfmac: Use original country code as a fallback

Commit 73345fd212980d2e28a5c6d83801c903bd773680:

    brcmfmac: Configure country code using device specific settings

prevents region codes from working on devices that lack a region code
translation table. In the event of an absent table, preserve the old
behaviour of using the provided code as-is.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
brcmfmac: Plug memory leak in brcmf_fill_bss_param

See: https://github.com/raspberrypi/linux/issues/1471

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
brcmfmac: do not use internal roaming engine by default

Some evidence of curing disconnects with this disabled, so make it a default.
Can be overridden with module parameter roamoff=0
See: http://projectable.me/optimize-my-pi-wi-fi/

brcmfmac: Change stop_ap sequence

Patch from Broadcom/Cypress to resolve a customer error

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
6 years agoOF: DT-Overlay configfs interface
Pantelis Antoniou [Wed, 3 Dec 2014 11:23:28 +0000 (13:23 +0200)]
OF: DT-Overlay configfs interface

This is a port of Pantelis Antoniou's v3 port that makes use of the
new upstreamed configfs support for binary attributes.

Original commit message:

Add a runtime interface to using configfs for generic device tree overlay
usage. With it its possible to use device tree overlays without having
to use a per-platform overlay manager.

Please see Documentation/devicetree/configfs-overlays.txt for more info.

Changes since v2:
- Removed ifdef CONFIG_OF_OVERLAY (since for now it's required)
- Created a documentation entry
- Slight rewording in Kconfig

Changes since v1:
- of_resolve() -> of_resolve_phandles().

Originally-signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
DT configfs: Fix build errors on other platforms

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
DT configfs: fix build error

There is an error when compiling rpi-4.6.y branch:
  CC      drivers/of/configfs.o
drivers/of/configfs.c:291:21: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
   .default_groups = of_cfs_def_groups,
                     ^
drivers/of/configfs.c:291:21: note: (near initialization for 'of_cfs_subsys.su_group.default_groups.next')

The .default_groups is linked list since commit
1ae1602de028acaa42a0f6ff18d19756f8e825c6.
This commit uses configfs_add_default_group to fix this problem.

Signed-off-by: Slawomir Stepien <sst@poczta.fm>
6 years agonet: Fix rtl8192cu build errors on other platforms
Phil Elwell [Wed, 23 Mar 2016 17:20:58 +0000 (17:20 +0000)]
net: Fix rtl8192cu build errors on other platforms

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
suppress spurious messages

Add #if for 3.14 kernel change (#87)

Fixes compiling after changes in https://github.com/torvalds/linux/commit/f663dd9aaf9ed124f25f0f8452edf238f087ad50 and https://github.com/torvalds/linux/commit/99932d4fc03a13bb3e94938fe25458fabc8f2fc3

Fixes #86

Set dev_type to wlan

Fixes #23

Tentatively added support for more 8188CUS based devices.

Add support for more 8188CUS and 8192CUS devices

Add ProductId for the Netgear N150 - WNA1000M

Fixes CONFIG_CONCURRENT_MODE CONFIG_MULTI_VIR_IFACES

Fixes compatibility with 3.13

Enables warning in the compiler and fixes some issues, reference => https://github.com/diederikdehaas/rtl8812AU

Starts device in station mode instead of monitor, fixes NetworkManager issues

Enable cfg80211 support

Fix cfg80211 for kernel >= 4.7

Fixes rtl8192cu for kernel >= 4.8

6 years agonet: Add non-mainline source for rtl8192cu wlan
popcornmix [Mon, 3 Sep 2012 16:10:23 +0000 (17:10 +0100)]
net: Add non-mainline source for rtl8192cu wlan

Add non-mainline source for rtl8192cu wireless driver version v4.0.2_9000 as
this is widely used. Disable older rtlwifi driver.

8192cu needs old wireless extensions

The obsolete WIRELESS_EXT configuration is used
by the old Realtek code and is needed for AP support.

8192cu: CONFIG_AP_MODE hardcoded in autoconf.h

rtl8192c_rf6052: PHY_RFShadowRefresh(): fix off-by-one

Signed-off-by: Marc Kleine-Budde <mkl@blackshift.org>
rtl8192cu: Add PID for D-Link DWA 131