Merge branch '2019-05-03-master-imports'
- Various btrfs fixes - Various TI platform fixes - Other fixes (cross build, taurus update, Kconfig help text)
This commit is contained in:
@@ -575,14 +575,6 @@ static int udma_get_tchan(struct udma_chan *uc)
|
||||
|
||||
pr_debug("chan%d: got tchan%d\n", uc->id, uc->tchan->id);
|
||||
|
||||
if (udma_is_chan_running(uc)) {
|
||||
dev_warn(ud->dev, "chan%d: tchan%d is running!\n", uc->id,
|
||||
uc->tchan->id);
|
||||
udma_stop(uc);
|
||||
if (udma_is_chan_running(uc))
|
||||
dev_err(ud->dev, "chan%d: won't stop!\n", uc->id);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -602,14 +594,6 @@ static int udma_get_rchan(struct udma_chan *uc)
|
||||
|
||||
pr_debug("chan%d: got rchan%d\n", uc->id, uc->rchan->id);
|
||||
|
||||
if (udma_is_chan_running(uc)) {
|
||||
dev_warn(ud->dev, "chan%d: rchan%d is running!\n", uc->id,
|
||||
uc->rchan->id);
|
||||
udma_stop(uc);
|
||||
if (udma_is_chan_running(uc))
|
||||
dev_err(ud->dev, "chan%d: won't stop!\n", uc->id);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -652,14 +636,6 @@ static int udma_get_chan_pair(struct udma_chan *uc)
|
||||
|
||||
pr_debug("chan%d: got t/rchan%d pair\n", uc->id, chan_id);
|
||||
|
||||
if (udma_is_chan_running(uc)) {
|
||||
dev_warn(ud->dev, "chan%d: t/rchan%d pair is running!\n",
|
||||
uc->id, chan_id);
|
||||
udma_stop(uc);
|
||||
if (udma_is_chan_running(uc))
|
||||
dev_err(ud->dev, "chan%d: won't stop!\n", uc->id);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1071,6 +1047,15 @@ static int udma_alloc_chan_resources(struct udma_chan *uc)
|
||||
}
|
||||
}
|
||||
|
||||
if (udma_is_chan_running(uc)) {
|
||||
dev_warn(ud->dev, "chan%d: is running!\n", uc->id);
|
||||
udma_stop(uc);
|
||||
if (udma_is_chan_running(uc)) {
|
||||
dev_err(ud->dev, "chan%d: won't stop!\n", uc->id);
|
||||
goto err_free_res;
|
||||
}
|
||||
}
|
||||
|
||||
/* PSI-L pairing */
|
||||
ret = udma_navss_psil_pair(ud, uc->src_thread, uc->dst_thread);
|
||||
if (ret) {
|
||||
@@ -1492,7 +1477,7 @@ static int udma_send(struct dma *dma, void *src, size_t len, void *metadata)
|
||||
u32 tc_ring_id;
|
||||
int ret;
|
||||
|
||||
if (!metadata)
|
||||
if (metadata)
|
||||
packet_data = *((struct ti_udma_drv_packet_data *)metadata);
|
||||
|
||||
if (dma->id >= (ud->rchan_cnt + ud->tchan_cnt)) {
|
||||
|
||||
@@ -158,7 +158,7 @@ static inline int ti_sci_get_response(struct ti_sci_info *info,
|
||||
int ret;
|
||||
|
||||
/* Receive the response */
|
||||
ret = mbox_recv(chan, msg, info->desc->max_rx_timeout_ms);
|
||||
ret = mbox_recv(chan, msg, info->desc->max_rx_timeout_ms * 1000);
|
||||
if (ret) {
|
||||
dev_err(info->dev, "%s: Message receive failed. ret = %d\n",
|
||||
__func__, ret);
|
||||
@@ -257,7 +257,8 @@ static int ti_sci_cmd_get_revision(struct ti_sci_handle *handle)
|
||||
|
||||
info = handle_to_ti_sci_info(handle);
|
||||
|
||||
xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_VERSION, 0x0,
|
||||
xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_VERSION,
|
||||
TI_SCI_FLAG_REQ_ACK_ON_PROCESSED,
|
||||
(u32 *)&hdr, sizeof(struct ti_sci_msg_hdr),
|
||||
sizeof(*rev_info));
|
||||
if (IS_ERR(xfer)) {
|
||||
@@ -499,8 +500,8 @@ static int ti_sci_get_device_state(const struct ti_sci_handle *handle,
|
||||
|
||||
info = handle_to_ti_sci_info(handle);
|
||||
|
||||
/* Response is expected, so need of any flags */
|
||||
xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_GET_DEVICE_STATE, 0,
|
||||
xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_GET_DEVICE_STATE,
|
||||
TI_SCI_FLAG_REQ_ACK_ON_PROCESSED,
|
||||
(u32 *)&req, sizeof(req), sizeof(*resp));
|
||||
if (IS_ERR(xfer)) {
|
||||
ret = PTR_ERR(xfer);
|
||||
@@ -2574,8 +2575,8 @@ static int ti_sci_cmd_change_fwl_owner(const struct ti_sci_handle *handle,
|
||||
|
||||
info = handle_to_ti_sci_info(handle);
|
||||
|
||||
xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_FWL_GET,
|
||||
TISCI_MSG_FWL_CHANGE_OWNER,
|
||||
xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_FWL_CHANGE_OWNER,
|
||||
TI_SCI_FLAG_REQ_ACK_ON_PROCESSED,
|
||||
(u32 *)&req, sizeof(req), sizeof(*resp));
|
||||
if (IS_ERR(xfer)) {
|
||||
ret = PTR_ERR(xfer);
|
||||
|
||||
@@ -55,7 +55,7 @@ config WDT
|
||||
help
|
||||
Enable driver model for watchdog timer. At the moment the API
|
||||
is very simple and only supports four operations:
|
||||
start, restart, stop and reset (expire immediately).
|
||||
start, stop, reset and expire_now (expire immediately).
|
||||
What exactly happens when the timer expires is up to a particular
|
||||
device/driver.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user