Commit Graph

613747 Commits

Author SHA1 Message Date
Wyon Bi
74ff2ba980 drm/rockchip: lvds: Fix encoder and connector type
Change-Id: I35c06179306502859e1d1a01f95c5cb1d688baae
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-26 21:16:13 +08:00
Wyon Bi
da0896f658 drm/rockchip: rgb: Fix encoder and connector type
Change-Id: Iebe61f16f4348a605289dae3be447324c6478267
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-26 21:16:13 +08:00
Eric Anholt
bfd253e111 BACKPORT: drm: Add an encoder and connector type enum for DPI.
Right now exynos is exposing DPI as a TMDS encoder and VGA connector,
which seems rather misleading.  This isn't just an internal detail,
since xrandr actually exposes "VGA" as the output name.  Define some
new enums so that vc4's DPI can have a more informative name.

I considered other names for the connector as well.  For VC4, the
Adafruit DPI kippah takes the 28 GPIO pins and routes them to a
standard-ish 40-pin FPC connector, but "40-pin FPC" doesn't uniquely
identify an ordering of pins (apparently some other orderings exist),
doesn't explain things as well for the user (who, if anything, knows
their product is a DPI kippah/panel combo), and actually doesn't have
to exist (one could connect the 28 GPIOs directly to something else).
Simply "DPI" seems like a good compromise name to distinguish from the
HDMI, DSI, and TV connectors .

Change-Id: Ic7b79c2e50f3629f56bc78c432834e2c58938cd9
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit 0b27c02a7f)
2018-11-26 21:16:13 +08:00
Shixiang Zheng
2c9beff6a3 video/rockchip: rga2: fix stuck problem on rk3368
Change-Id: Ic7a3d693c526857959a96607a68b490e56897be5
Signed-off-by: Shixiang Zheng <shixiang.zheng@rock-chips.com>
2018-11-26 17:27:36 +08:00
Elaine Zhang
bfc67611a9 clk: rockchip: rk1808: fix up the mac clk setting
Change-Id: I589f86a629ac8607fa24025cc90dd9bf21b414d5
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-11-23 19:54:42 +08:00
Hu Kejun
5aa0e68cf3 arm64: dts: rockchip: px30: add grf for rkisp1
when connect to dvp camera, we need grf to config cif data width

Change-Id: I798d841149e1fd9f7c3fb58bd39d1706bf85ee5d
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-11-23 19:50:14 +08:00
Weixin Zhou
62cd4c439b arm64: dts: rockchip: rk3399pro-evb: adjust sdmmc gpio drive strength
Change-Id: I8c33804715300fbbc0fc7782b26323d870eb6408
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-11-23 17:47:35 +08:00
Weixin Zhou
959beb17c8 arm64: dts: rockchip: rk3399: add gpio drive strength 10ma
Change-Id: Iff6303af2e87425b0509fd962b9e6b2fca8eb896
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-11-23 17:47:05 +08:00
Zhangbin Tong
c83f890fe9 arm64: dts: rockchip: rk3328-box-liantong: Add sleep mode configuration
The board is adjusted with pwm regulator for logic and arm voltage.

The regulator sleep mode is notified by the GPIO pin issued by the soc
The pwm regulator has no pin control for sleep switching, and needs to
notify the soc pmu special processing.

Change-Id: Id2c22f26abcdae427a8e30716afbcaab471ea183
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-11-23 17:46:03 +08:00
XiaoDong Huang
f466d1ed8f arm64: dts: rockchip: rk3328: initialize sleep_mode_config
Change-Id: I7e54b5b4ba55a85f967a03bc990640c5d3bdf2e1
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2018-11-23 17:45:10 +08:00
XiaoDong Huang
62e6d82613 dt-bindings: suspend: rk3328: add sleep mode config defines
Change-Id: Idb7c031061f5fe115b3a206ce82830e8c024a4c2
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2018-11-23 17:44:13 +08:00
Weixin Zhou
f85d9e08a3 arm64: dts: rockchip: rk3399pro-evb-v10: add sdcrad uhs config
Change-Id: I22ba12a1562be3635769894324c84db282ff6568
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-11-23 11:17:48 +08:00
Mathias Nyman
a2dc6f6438 UPSTREAM: xhci: fix endpoint context tracer output
Fix incorrent values showed for max Primary stream and
Linear stream array (LSA) values in the endpoint context
decoder.

Change-Id: I05bffa3801f2ff5919d5434c9bbc93711806d424
Fixes: 19a7d0d65c ("usb: host: xhci: add Slot and EP Context tracers")
Cc: <stable@vger.kernel.org> # v4.12+
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 97ef0faf57)
2018-11-22 17:06:59 +08:00
Mathias Nyman
75223156e9 UPSTREAM: xhci: trace slot context when calling xhci_configure_endpoint()
Add trace showing content of input slot context for
configure endpoint and evaluate context commands

Change-Id: I0c6af9e1528edd5d8c36629a28a7969190a2a572
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit e3a78ff022)
2018-11-22 17:06:59 +08:00
Lu Baolu
fca1672f58 UPSTREAM: usb: xhci: Add debugfs interface for xHCI driver
This adds debugfs consumer for xHCI driver. The debugfs entries
read all host registers, device/endpoint contexts, command ring,
event ring and various endpoint rings. With these entries, users
can check the registers and memory spaces used by a host during
run time, or save all the information with a simple 'cp -r' for
post-mortem programs.

The file hierarchy looks like this.

[root of debugfs]
|__usb
|____[e,u,o]hci                 <---------[root for other HCIs]
|____xhci                       <---------------[root for xHCI]
|______0000:00:14.0             <--------------[xHCI host name]
|________reg-cap                <--------[capability registers]
|________reg-op                 <-------[operational registers]
|________reg-runtime            <-----------[runtime registers]
|________reg-ext-#cap_name      <----[extended capability regs]
|________command-ring           <-------[root for command ring]
|__________cycle                <------------------[ring cycle]
|__________dequeue              <--------[ring dequeue pointer]
|__________enqueue              <--------[ring enqueue pointer]
|__________trbs                 <-------------------[ring trbs]
|________event-ring             <---------[root for event ring]
|__________cycle                <------------------[ring cycle]
|__________dequeue              <--------[ring dequeue pointer]
|__________enqueue              <--------[ring enqueue pointer]
|__________trbs                 <-------------------[ring trbs]
|________devices                <------------[root for devices]
|__________#slot_id             <-----------[root for a device]
|____________name               <-----------------[device name]
|____________slot-context       <----------------[slot context]
|____________ep-context         <-----------[endpoint contexts]
|____________ep#ep_index        <--------[root for an endpoint]
|______________cycle            <------------------[ring cycle]
|______________dequeue          <--------[ring dequeue pointer]
|______________enqueue          <--------[ring enqueue pointer]
|______________trbs             <-------------------[ring trbs]

Change-Id: I61b412883e547a257bffc1234ee42fd221b940a6
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 02b6fdc2a1)
2018-11-22 17:06:59 +08:00
Mathias Nyman
0ccd5573b8 UPSTREAM: xhci: add port status tracing
Track the port status in a human readble way each time we get a
port status change event

Change-Id: I14ac1a720e0faca54c694d3b0eb52eac42bccd5d
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 8ca1358bd9)
2018-11-22 17:06:59 +08:00
Mathias Nyman
6ef65af130 UPSTREAM: xhci: Add port status decoder for tracing purposes
Add PORTSC Port status and control register decoder to
show human readable tracing of portsc register

Change-Id: I617493712e58546197748c01eea3f6b33b6dd377
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 2e77a8253d)
2018-11-22 17:06:59 +08:00
Mathias Nyman
70bbbbfe94 UPSTREAM: xhci: add definitions for all port link states
Add definitions for all port link states defined in xhci
specification for PORTSC register.

Will be needed for human readable port status tracing

Change-Id: I1de382f7e45c0a6a5481b92eabb2cf3b3fc68419
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 7344ee328c)
2018-11-22 17:06:59 +08:00
Mathias Nyman
f5137e89e0 UPSTREAM: xhci: rename temp and temp1 variables
temp and temp1 variables are used for port status (portsc) and
command register. Give them more descriptive names

No functional changes

Change-Id: Ic278965bbf21910b36404c90da955c74df69fc95
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 76a0f32b28)
2018-11-22 17:06:58 +08:00
Lu Baolu
57877a9606 UPSTREAM: usb: xhci: refine xhci_decode_trb()
Replace 'TRB_FIELD_TO_TYPE(field3)' with 'type' to simplify
code.

Change-Id: I0553a13c372bf130c195706e597701c691885093
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit d2561626b9)
2018-11-22 17:06:58 +08:00
Lu Baolu
3a3260b23f UPSTREAM: usb: xhci: fix link trb decoding
xhci_decode_trb() treats a link trb in the same way as that for
an event trb. This patch fixes this by decoding the link trb
according to the spec.

Change-Id: Ia582395d828b0823c6279c45247fdcec89a19680
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 96d9a6eb97)
2018-11-22 17:06:58 +08:00
Lu Baolu
b733c7bbe4 UPSTREAM: usb: xhci: remove xhci_dbg_ctx()
XHCI context changes have already been traced by the trace
events. It's unnecessary to put the same message in kernel
log. This patch removes the use of xhci_dbg_ctx().

Change-Id: I0279d03a772ee06965b146b42937ca74f74ffb75
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit c8844f2ddb)
2018-11-22 17:06:58 +08:00
Lu Baolu
b63494bd47 UPSTREAM: usb: xhci: remove xhci_debug_trb()
Every XHCI TRB has already been traced by the trb trace events.
It is unnecessary to put the same message in kernel log. This
patch removes xhci_debug_trb().

Change-Id: I0e5c452f2c133fb4cb8ec62bd5a9c3ef4163a1f2
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 8c10152ec5)
2018-11-22 17:06:58 +08:00
Lu Baolu
b7529e9a64 UPSTREAM: usb: xhci: remove ring debugging code
XHCI ring changes have already been traced by the ring trace
events. It's unnecessary to put the same messages in kernel
log. This patch removes the debugging code for a ring.

Change-Id: Ie15a464c9e82e61adf2e18167c145e78fb1d1fe8
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 121dcf1190)
2018-11-22 17:06:58 +08:00
Lu Baolu
7478583db7 UPSTREAM: usb: xhci: remove xhci_dbg_ep_rings()
xhci_dbg_ep_rings() isn't used in xhci driver anymore. Remove
it to reduce the module binary size.

Change-Id: Ib6c0bf47e60f643f2219c6b01d14ab13f6f6c726
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit b7d09fe863)
2018-11-22 17:06:58 +08:00
Lu Baolu
4423e25cae UPSTREAM: usb: xhci: add xhci_log_ring trace events
This patch creates a new event class called xhci_log_ring, and
defines the events used for tracing the change of all kinds of
rings used by an xhci host. An xHCI ring is basically a memory
block shared between software and hardware. By tracing changes
of rings, it makes the life easier for debugging hardware or
software problems.

This info can be used, later, to print, in a human readable way,
the life cycle of an xHCI ring using the trace-cmd tool and the
appropriate plugin.

Change-Id: Ib5934eed68e044054305b1f15925751a870b93a8
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit b2d6edbb95)
2018-11-22 17:06:58 +08:00
Zhengjun Xing
0da0fff6c6 UPSTREAM: xhci: add slot and endpoint numbers to debug messages in handle_tx_event
There's one annoyance in how xhci prints debug messages, we often
get logs with messages but it's hard to say from which device and
endpoint the message originates. Add slot_id, ep_index messages
in handle_tx_event.

Change-Id: I0d4fd42e95d8f85a5ba7de0a7ad45d4a2858a78a
Signed-off-by: Zhengjun Xing <zhengjun.xing@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit b7f769ae1b)
2018-11-22 17:06:58 +08:00
Felipe Balbi
034f4bd85b UPSTREAM: usb: host: xhci: fix up Control Transfer TRB decoder
Format for each TRB in each control transfer stage differs. Let's make
sure we correctly pretty print these fields to avoid confusion.

Change-Id: I643c3f5ada8c36d5ef972fb821f971fe81168bd2
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 5d062aba0d)
2018-11-22 17:06:58 +08:00
Felipe Balbi
e104a0dd63 UPSTREAM: usb: host: xhci: add Slot and EP Context tracers
With these, we can track what's happening with the HW while executing
each and every command. It will give us visibility into how the
different contexts are being modified by xHC which can bring insight
into problems while debugging.

Change-Id: I0d38de2b751416414fcd0feb85c163e0b24c3014
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 19a7d0d65c)
2018-11-22 17:06:58 +08:00
Felipe Balbi
e2fcb9338b UPSTREAM: usb: host: xhci: extract xhci_slot_state_string()
By extracting and exposing xhci_slot_state_string() in a header file, we
can re-use it to print Slot Context State from our tracepoints, which
can aid in tracking down problems related to command execution.

Change-Id: I65d812e5d1137a56da74bde0b846f9ad03ff2234
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 52407729fb)
2018-11-22 17:06:58 +08:00
Felipe Balbi
ea71b9c501 UPSTREAM: usb: host: xhci: print device slot from URB tracers
This will help us figuring out which device $this URB belongs to while
debugging.

Change-Id: Ie77b613a633ded54b6b14b291138a3b3274155e7
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit eaa9eb71a2)
2018-11-22 17:06:58 +08:00
Felipe Balbi
70721b95ba UPSTREAM: usb: host: xhci: add xhci_virt_device tracer
Let's start tracing at least part of an xhci_virt_device lifetime. We
might want to extend this tracepoint class later, but for now it already
exposes quite a bit of valuable information.

Change-Id: I9cf4b89292d5062c64bc96045692691f90834fe2
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit a711edeeb1)
2018-11-22 17:06:58 +08:00
Felipe Balbi
e0805af00c UPSTREAM: usb: host: xhci: remove newline from tracer
If we add that newline, the output will look like the following:

     kworker/2:1-42    [002] ....   169.811435: xhci_address_ctx:
ctx_64=0, ctx_type=2, ctx_dma=@153fbd000, ctx_va=@ffff880153fbd000

We would rather have that in a single line.

Change-Id: Ic01adda02391f919de3dcb8e9835f16acf41d7d0
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit d4d93e6c55)
2018-11-22 17:06:58 +08:00
Felipe Balbi
fad8c73d79 UPSTREAM: usb: host: xhci: add urb_enqueue/dequeue/giveback tracers
These three new tracers will help us tie TRBs into URBs by *also*
looking into URB lifetime.

Change-Id: I50f1ce0ade0d03a777d58992a933fdb7e4343ebb
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 5abdc2e6e1)
2018-11-22 17:06:58 +08:00
Felipe Balbi
3c08139536 UPSTREAM: usb: host: xhci: make a generic TRB tracer
instead of having a tracer that can only trace command completions,
let's promote this tracer so it can trace and decode any TRB.

With that, it will be easier to extrapolate the lifetime of any TRB
which might help debugging certain issues.

Change-Id: I9cbb163b1198893c1028f3c10a694efb3748f86a
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit a37c3f76e6)
2018-11-22 17:06:57 +08:00
Alexandr Ivanov
ca76ce6147 UPSTREAM: usb: xhci: remove duplicate function xhci_urb_to_transfer_ring
Remove duplicate function xhci_urb_to_transfer_ring from xhci.c.
We have same function in xhci-ring.c.

Change-Id: I1638a4d3be9d65a16ef59ce979619a7bf54e93e9
Signed-off-by: Alexandr Ivanov <alexandr.sky@gmail.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 75b040ec60)
2018-11-22 17:06:57 +08:00
Felipe Balbi
aad0548d6a UPSTREAM: usb: host: xhci: combine event TRB completion debugging messages
If we just provide a helper to convert completion code to string, we can
combine all debugging messages into a single print.

[keep the old debug messages, for warn and grep -Mathias]
Change-Id: Ie147da78006f5d244bd5f65a8011bf38e748bd34
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit ed6d643b14)
2018-11-22 17:06:57 +08:00
Felipe Balbi
0eeed4c5f7 UPSTREAM: usb: host: xhci: rename completion codes to match spec
Cleanup only. This patch is a mechaninal rename to make sure our macros
for TRB completion codes match what the specification uses to refer to
such errors. The idea behind this is that it makes it far easier to grep
the specification and match it with implementation.

Change-Id: I3f04cc262f5ecc8a6b36463070243511b1e14129
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 0b7c105a04)
2018-11-22 17:06:57 +08:00
Felipe Balbi
22d69adf78 UPSTREAM: usb: host: xhci: convert to list_for_each_entry_safe()
instead of using while(!list_empty()) followed by list_first_entry(), we
can actually use list_for_each_entry_safe().

Change-Id: Ib116234c6653f6700e6aea1fb1af3d08c83890c0
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit a54cfae3c7)
2018-11-22 17:06:57 +08:00
Bian Jin chen
66a9647b1a arm64: dts: rockchip: rk3326-evb-lp3-v10: Separate android firmware
Split DT source files to separate out android firmware for Android Pie & Oreo

Change-Id: I202f2350a3d8dcf8ef6762dd39784472a4ce7281
Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
2018-11-22 16:58:06 +08:00
Chen Jinsen
44f0f5a15c ARM: dts: rk3288-evb-android-rk808-edp: modified compatible of edp_panel
Change-Id: I39fe3fa6cd277ef3b8d0a651b6dfe08985bf68f1
Signed-off-by: Chen Jinsen <kevin.chen@rock-chips.com>
2018-11-22 16:57:07 +08:00
Simon Xue
0b3009d751 arm64: dts: rockchip: rk1808: Add pmugrf to pcie0 node
To avoid PRSTN being drived when PCIe is working,switch to
PCIe_PRSTNm0 as a workaround.

Change-Id: I094be7a873d0bff301792edea6929e1199cc52a2
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2018-11-21 16:32:33 +08:00
Simon Xue
7cca3e263b PCI: rockchip: Add Rockchip DW PCIe controller support
Add support for DW PCIe controller found on RK1808 SoC platform

Change-Id: Ic6d638782d1f55f965d663f73eee14bafa392740
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2018-11-21 16:32:09 +08:00
Zheng Yang
0d5631a67b drm/edid: support parsing Hybrid Log-Gamma EOTF
Change-Id: Ia017bbd341dbd5e895336a98abe65bee3694085b
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2018-11-21 10:57:53 +08:00
Caesar Wang
51a94209b8 net/rfkill: bt: improve to set the bt power
There is a bt power issue on Debian OS, the blueman app
will callback to enable the bluetooth power during the bringup.

As below log the system bringup about 10s.
[BT_RFKILL]: rfkill_rk_set_power: set bt wake_host pin output high!
[BT_RFKILL]: rfkill_rk_set_power: enable bt reset pin!
[BT_RFKILL]: ENABLE UART_RTS
[BT_RFKILL]: DISABLE UART_RTS
[BT_RFKILL]: bt turn on power
...

So the rfkill-bt driver should judge the power status, otherwise the
blueman app will cause the bluetoolth timeout error. e.g:
root@linaro-alip:/# bluetoothctl
[NEW] Controller 3B:A0:90:48:46:40 linaro-alip [default]
[bluetooth]# scan on
Discovery started
[   33.076522] Bluetooth: hci0 command 0x2005 tx timeout
[   35.080473] Bluetooth: hci0 command 0x200b tx timeout
[   37.084505] Bluetooth: hci0 command 0x200c tx timeout

Change-Id: Ib0dd99a83c64dbaf469c3eb7a9226a2d83c53e6f
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2018-11-21 10:31:11 +08:00
Shunqing Chen
e96d623993 arm64: dts: rockchip: rk3399pro-evb: add hdmi phy table
Change-Id: I8f1308ab2cf37c60c14f15939a5270b75819a475
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
2018-11-21 10:29:55 +08:00
Weixin Zhou
0c8c4b452a arm64: dts: rockchip: rk3399pro-evb: disable hdmiin/pcie/i2c5 by default
Change-Id: I0609cc2a3ad24a0c4dd8f201de8958eda36650c7
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-11-20 18:30:10 +08:00
Cody Xie
1c3bf032dd arm64: dts: rockchip: Add l2 cache topology for rk3308
Commit 5d425c1865 ("arm64: kernel: add support for cpu cache
information") adds cacheinfo support for ARM64. Since there's no
architectural way of detecting the cpus that share particular cache,
device tree can be used and the core cacheinfo already supports the
same.

This patch adds the l2 cache topology on RK3308 SoC based boards.

Change-Id: Iaa0ddb11d02ba9cd42aea59406e02160affd32bf
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2018-11-20 16:18:00 +08:00
Cody Xie
de5746740f ARM64: dts: rockchip: rk3308-evb-dmic-pdm-v11: Enable rk_timer_rtc
Change-Id: Ica312ae075cd81130a26ebe44f8d031f62d8fe48
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2018-11-20 14:26:37 +08:00
Cody Xie
3c62410331 ARM64: configs: rk3308_linux: Enable RTC_DRV_RK_TIMER
Change-Id: Id4eda9e9b00313bdb74580836c396a32cc4159d5
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2018-11-20 14:26:26 +08:00