Merge 960167e0e0 ("RDMA/rdmavt: Delete unnecessary NULL check") into android12-5.10-lts
Steps on the way to 5.10.180 Change-Id: Iac1fc6d3dd80baecfbd51eba70a3e2b2da135e97 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -399,7 +399,7 @@ static char *__fetch_rtas_last_error(char *altbuf)
|
|||||||
buf = kmalloc(RTAS_ERROR_LOG_MAX, GFP_ATOMIC);
|
buf = kmalloc(RTAS_ERROR_LOG_MAX, GFP_ATOMIC);
|
||||||
}
|
}
|
||||||
if (buf)
|
if (buf)
|
||||||
memcpy(buf, rtas_err_buf, RTAS_ERROR_LOG_MAX);
|
memmove(buf, rtas_err_buf, RTAS_ERROR_LOG_MAX);
|
||||||
}
|
}
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
|
|||||||
@@ -984,7 +984,7 @@ static void mpc5121_clk_provide_migration_support(void)
|
|||||||
|
|
||||||
#define NODE_PREP do { \
|
#define NODE_PREP do { \
|
||||||
of_address_to_resource(np, 0, &res); \
|
of_address_to_resource(np, 0, &res); \
|
||||||
snprintf(devname, sizeof(devname), "%08x.%s", res.start, np->name); \
|
snprintf(devname, sizeof(devname), "%pa.%s", &res.start, np->name); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define NODE_CHK(clkname, clkitem, regnode, regflag) do { \
|
#define NODE_CHK(clkname, clkitem, regnode, regflag) do { \
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ static struct irq_domain * __init flipper_pic_init(struct device_node *np)
|
|||||||
}
|
}
|
||||||
io_base = ioremap(res.start, resource_size(&res));
|
io_base = ioremap(res.start, resource_size(&res));
|
||||||
|
|
||||||
pr_info("controller at 0x%08x mapped to 0x%p\n", res.start, io_base);
|
pr_info("controller at 0x%pa mapped to 0x%p\n", &res.start, io_base);
|
||||||
|
|
||||||
__flipper_quiesce(io_base);
|
__flipper_quiesce(io_base);
|
||||||
|
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ static struct irq_domain *hlwd_pic_init(struct device_node *np)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
pr_info("controller at 0x%08x mapped to 0x%p\n", res.start, io_base);
|
pr_info("controller at 0x%pa mapped to 0x%p\n", &res.start, io_base);
|
||||||
|
|
||||||
__hlwd_quiesce(io_base);
|
__hlwd_quiesce(io_base);
|
||||||
|
|
||||||
|
|||||||
@@ -89,8 +89,8 @@ static void __iomem *wii_ioremap_hw_regs(char *name, char *compatible)
|
|||||||
|
|
||||||
hw_regs = ioremap(res.start, resource_size(&res));
|
hw_regs = ioremap(res.start, resource_size(&res));
|
||||||
if (hw_regs) {
|
if (hw_regs) {
|
||||||
pr_info("%s at 0x%08x mapped to 0x%p\n", name,
|
pr_info("%s at 0x%pa mapped to 0x%p\n", name,
|
||||||
res.start, hw_regs);
|
&res.start, hw_regs);
|
||||||
}
|
}
|
||||||
|
|
||||||
out_put:
|
out_put:
|
||||||
|
|||||||
@@ -216,9 +216,8 @@ int __init tsi108_setup_pci(struct device_node *dev, u32 cfg_phys, int primary)
|
|||||||
|
|
||||||
(hose)->ops = &tsi108_direct_pci_ops;
|
(hose)->ops = &tsi108_direct_pci_ops;
|
||||||
|
|
||||||
printk(KERN_INFO "Found tsi108 PCI host bridge at 0x%08x. "
|
pr_info("Found tsi108 PCI host bridge at 0x%pa. Firmware bus number: %d->%d\n",
|
||||||
"Firmware bus number: %d->%d\n",
|
&rsrc.start, hose->first_busno, hose->last_busno);
|
||||||
rsrc.start, hose->first_busno, hose->last_busno);
|
|
||||||
|
|
||||||
/* Interpret the "ranges" property */
|
/* Interpret the "ranges" property */
|
||||||
/* This also maps the I/O region and sets isa_io/mem_base */
|
/* This also maps the I/O region and sets isa_io/mem_base */
|
||||||
|
|||||||
@@ -381,7 +381,7 @@ static int __init sq_api_init(void)
|
|||||||
if (unlikely(!sq_cache))
|
if (unlikely(!sq_cache))
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
sq_bitmap = kzalloc(size, GFP_KERNEL);
|
sq_bitmap = kcalloc(size, sizeof(long), GFP_KERNEL);
|
||||||
if (unlikely(!sq_bitmap))
|
if (unlikely(!sq_bitmap))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
|||||||
@@ -452,7 +452,7 @@ sam9x60_clk_register_frac_pll(struct regmap *regmap, spinlock_t *lock,
|
|||||||
|
|
||||||
ret = sam9x60_frac_pll_compute_mul_frac(&frac->core, FCORE_MIN,
|
ret = sam9x60_frac_pll_compute_mul_frac(&frac->core, FCORE_MIN,
|
||||||
parent_rate, true);
|
parent_rate, true);
|
||||||
if (ret <= 0) {
|
if (ret < 0) {
|
||||||
hw = ERR_PTR(ret);
|
hw = ERR_PTR(ret);
|
||||||
goto free;
|
goto free;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -989,8 +989,8 @@ static int stratix10_svc_drv_probe(struct platform_device *pdev)
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
genpool = svc_create_memory_pool(pdev, sh_memory);
|
genpool = svc_create_memory_pool(pdev, sh_memory);
|
||||||
if (!genpool)
|
if (IS_ERR(genpool))
|
||||||
return -ENOMEM;
|
return PTR_ERR(genpool);
|
||||||
|
|
||||||
/* allocate service controller and supporting channel */
|
/* allocate service controller and supporting channel */
|
||||||
controller = devm_kzalloc(dev, sizeof(*controller), GFP_KERNEL);
|
controller = devm_kzalloc(dev, sizeof(*controller), GFP_KERNEL);
|
||||||
|
|||||||
@@ -505,8 +505,6 @@ void rvt_qp_exit(struct rvt_dev_info *rdi)
|
|||||||
if (qps_inuse)
|
if (qps_inuse)
|
||||||
rvt_pr_err(rdi, "QP memory leak! %u still in use\n",
|
rvt_pr_err(rdi, "QP memory leak! %u still in use\n",
|
||||||
qps_inuse);
|
qps_inuse);
|
||||||
if (!rdi->qp_dev)
|
|
||||||
return;
|
|
||||||
|
|
||||||
kfree(rdi->qp_dev->qp_table);
|
kfree(rdi->qp_dev->qp_table);
|
||||||
free_qpn_table(&rdi->qp_dev->qpn_table);
|
free_qpn_table(&rdi->qp_dev->qpn_table);
|
||||||
|
|||||||
@@ -548,7 +548,7 @@ static int siw_tx_hdt(struct siw_iwarp_tx *c_tx, struct socket *s)
|
|||||||
data_len -= plen;
|
data_len -= plen;
|
||||||
fp_off = 0;
|
fp_off = 0;
|
||||||
|
|
||||||
if (++seg > (int)MAX_ARRAY) {
|
if (++seg >= (int)MAX_ARRAY) {
|
||||||
siw_dbg_qp(tx_qp(c_tx), "to many fragments\n");
|
siw_dbg_qp(tx_qp(c_tx), "to many fragments\n");
|
||||||
siw_unmap_pages(page_array, kmap_mask);
|
siw_unmap_pages(page_array, kmap_mask);
|
||||||
wqe->processed -= c_tx->bytes_unsent;
|
wqe->processed -= c_tx->bytes_unsent;
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ config ADB_PMU_LED
|
|||||||
|
|
||||||
config ADB_PMU_LED_DISK
|
config ADB_PMU_LED_DISK
|
||||||
bool "Use front LED as DISK LED by default"
|
bool "Use front LED as DISK LED by default"
|
||||||
|
depends on ATA
|
||||||
depends on ADB_PMU_LED
|
depends on ADB_PMU_LED
|
||||||
depends on LEDS_CLASS
|
depends on LEDS_CLASS
|
||||||
select LEDS_TRIGGERS
|
select LEDS_TRIGGERS
|
||||||
|
|||||||
@@ -171,6 +171,7 @@ static void wf_sat_release(struct kref *ref)
|
|||||||
|
|
||||||
if (sat->nr >= 0)
|
if (sat->nr >= 0)
|
||||||
sats[sat->nr] = NULL;
|
sats[sat->nr] = NULL;
|
||||||
|
of_node_put(sat->node);
|
||||||
kfree(sat);
|
kfree(sat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -348,7 +348,8 @@ static int spmi_drv_remove(struct device *dev)
|
|||||||
const struct spmi_driver *sdrv = to_spmi_driver(dev->driver);
|
const struct spmi_driver *sdrv = to_spmi_driver(dev->driver);
|
||||||
|
|
||||||
pm_runtime_get_sync(dev);
|
pm_runtime_get_sync(dev);
|
||||||
sdrv->remove(to_spmi_device(dev));
|
if (sdrv->remove)
|
||||||
|
sdrv->remove(to_spmi_device(dev));
|
||||||
pm_runtime_put_noidle(dev);
|
pm_runtime_put_noidle(dev);
|
||||||
|
|
||||||
pm_runtime_disable(dev);
|
pm_runtime_disable(dev);
|
||||||
|
|||||||
@@ -770,6 +770,7 @@ static int _rtl92e_sta_up(struct net_device *dev, bool is_silent_reset)
|
|||||||
else
|
else
|
||||||
netif_wake_queue(dev);
|
netif_wake_queue(dev);
|
||||||
|
|
||||||
|
priv->bfirst_after_down = false;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
#include <linux/moduleparam.h>
|
#include <linux/moduleparam.h>
|
||||||
#include <linux/ioport.h>
|
#include <linux/ioport.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
|
#include <linux/irq.h>
|
||||||
#include <linux/console.h>
|
#include <linux/console.h>
|
||||||
#include <linux/gpio/consumer.h>
|
#include <linux/gpio/consumer.h>
|
||||||
#include <linux/sysrq.h>
|
#include <linux/sysrq.h>
|
||||||
@@ -1888,6 +1889,7 @@ int serial8250_handle_irq(struct uart_port *port, unsigned int iir)
|
|||||||
unsigned char status;
|
unsigned char status;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
struct uart_8250_port *up = up_to_u8250p(port);
|
struct uart_8250_port *up = up_to_u8250p(port);
|
||||||
|
struct tty_port *tport = &port->state->port;
|
||||||
bool skip_rx = false;
|
bool skip_rx = false;
|
||||||
|
|
||||||
if (iir & UART_IIR_NO_INT)
|
if (iir & UART_IIR_NO_INT)
|
||||||
@@ -1911,6 +1913,8 @@ int serial8250_handle_irq(struct uart_port *port, unsigned int iir)
|
|||||||
skip_rx = true;
|
skip_rx = true;
|
||||||
|
|
||||||
if (status & (UART_LSR_DR | UART_LSR_BI) && !skip_rx) {
|
if (status & (UART_LSR_DR | UART_LSR_BI) && !skip_rx) {
|
||||||
|
if (irqd_is_wakeup_set(irq_get_irq_data(port->irq)))
|
||||||
|
pm_wakeup_event(tport->tty->dev, 0);
|
||||||
if (!up->dma || handle_rx_dma(up, iir))
|
if (!up->dma || handle_rx_dma(up, iir))
|
||||||
status = serial8250_rx_chars(up, status);
|
status = serial8250_rx_chars(up, status);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1220,7 +1220,7 @@ static inline int lpuart_start_rx_dma(struct lpuart_port *sport)
|
|||||||
* 10ms at any baud rate.
|
* 10ms at any baud rate.
|
||||||
*/
|
*/
|
||||||
sport->rx_dma_rng_buf_len = (DMA_RX_TIMEOUT * baud / bits / 1000) * 2;
|
sport->rx_dma_rng_buf_len = (DMA_RX_TIMEOUT * baud / bits / 1000) * 2;
|
||||||
sport->rx_dma_rng_buf_len = (1 << (fls(sport->rx_dma_rng_buf_len) - 1));
|
sport->rx_dma_rng_buf_len = (1 << fls(sport->rx_dma_rng_buf_len));
|
||||||
if (sport->rx_dma_rng_buf_len < 16)
|
if (sport->rx_dma_rng_buf_len < 16)
|
||||||
sport->rx_dma_rng_buf_len = 16;
|
sport->rx_dma_rng_buf_len = 16;
|
||||||
|
|
||||||
|
|||||||
@@ -1090,7 +1090,7 @@ static int ci_hdrc_probe(struct platform_device *pdev)
|
|||||||
ret = ci_usb_phy_init(ci);
|
ret = ci_usb_phy_init(ci);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(dev, "unable to init phy: %d\n", ret);
|
dev_err(dev, "unable to init phy: %d\n", ret);
|
||||||
return ret;
|
goto ulpi_exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
ci->hw_bank.phys = res->start;
|
ci->hw_bank.phys = res->start;
|
||||||
|
|||||||
@@ -2154,7 +2154,7 @@ static int tegra_xudc_gadget_vbus_draw(struct usb_gadget *gadget,
|
|||||||
|
|
||||||
dev_dbg(xudc->dev, "%s: %u mA\n", __func__, m_a);
|
dev_dbg(xudc->dev, "%s: %u mA\n", __func__, m_a);
|
||||||
|
|
||||||
if (xudc->curr_usbphy->chg_type == SDP_TYPE)
|
if (xudc->curr_usbphy && xudc->curr_usbphy->chg_type == SDP_TYPE)
|
||||||
ret = usb_phy_set_power(xudc->curr_usbphy, m_a);
|
ret = usb_phy_set_power(xudc->curr_usbphy, m_a);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
@@ -210,6 +210,7 @@ static struct qmu_gpd *advance_enq_gpd(struct mtu3_gpd_ring *ring)
|
|||||||
return ring->enqueue;
|
return ring->enqueue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @dequeue may be NULL if ring is unallocated or freed */
|
||||||
static struct qmu_gpd *advance_deq_gpd(struct mtu3_gpd_ring *ring)
|
static struct qmu_gpd *advance_deq_gpd(struct mtu3_gpd_ring *ring)
|
||||||
{
|
{
|
||||||
if (ring->dequeue < ring->end)
|
if (ring->dequeue < ring->end)
|
||||||
@@ -484,7 +485,7 @@ static void qmu_done_tx(struct mtu3 *mtu, u8 epnum)
|
|||||||
dev_dbg(mtu->dev, "%s EP%d, last=%p, current=%p, enq=%p\n",
|
dev_dbg(mtu->dev, "%s EP%d, last=%p, current=%p, enq=%p\n",
|
||||||
__func__, epnum, gpd, gpd_current, ring->enqueue);
|
__func__, epnum, gpd, gpd_current, ring->enqueue);
|
||||||
|
|
||||||
while (gpd != gpd_current && !GET_GPD_HWO(gpd)) {
|
while (gpd && gpd != gpd_current && !GET_GPD_HWO(gpd)) {
|
||||||
|
|
||||||
mreq = next_request(mep);
|
mreq = next_request(mep);
|
||||||
|
|
||||||
@@ -523,7 +524,7 @@ static void qmu_done_rx(struct mtu3 *mtu, u8 epnum)
|
|||||||
dev_dbg(mtu->dev, "%s EP%d, last=%p, current=%p, enq=%p\n",
|
dev_dbg(mtu->dev, "%s EP%d, last=%p, current=%p, enq=%p\n",
|
||||||
__func__, epnum, gpd, gpd_current, ring->enqueue);
|
__func__, epnum, gpd, gpd_current, ring->enqueue);
|
||||||
|
|
||||||
while (gpd != gpd_current && !GET_GPD_HWO(gpd)) {
|
while (gpd && gpd != gpd_current && !GET_GPD_HWO(gpd)) {
|
||||||
|
|
||||||
mreq = next_request(mep);
|
mreq = next_request(mep);
|
||||||
|
|
||||||
|
|||||||
@@ -8880,8 +8880,8 @@ __perf_event_account_interrupt(struct perf_event *event, int throttle)
|
|||||||
hwc->interrupts = 1;
|
hwc->interrupts = 1;
|
||||||
} else {
|
} else {
|
||||||
hwc->interrupts++;
|
hwc->interrupts++;
|
||||||
if (unlikely(throttle
|
if (unlikely(throttle &&
|
||||||
&& hwc->interrupts >= max_samples_per_tick)) {
|
hwc->interrupts > max_samples_per_tick)) {
|
||||||
__this_cpu_inc(perf_throttled_count);
|
__this_cpu_inc(perf_throttled_count);
|
||||||
tick_dep_set_cpu(smp_processor_id(), TICK_DEP_BIT_PERF_EVENTS);
|
tick_dep_set_cpu(smp_processor_id(), TICK_DEP_BIT_PERF_EVENTS);
|
||||||
hwc->interrupts = MAX_INTERRUPTS;
|
hwc->interrupts = MAX_INTERRUPTS;
|
||||||
|
|||||||
Reference in New Issue
Block a user