mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
nvethernet: use raw_spin_lock_* for RT kernel
Issue: raw_spin_lock* should be used with RT kernel Fix: update code to use raw_spin_lock* APIs instead of spin_lock* Bug 200671160 Change-Id: I5a1d187d2ead6394d97bbdcb41533852b4708afe Signed-off-by: rakesh goyal <rgoyal@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2493350 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Revanth Kumar Uppala
parent
8363bf6e9d
commit
9f61b817f7
@@ -541,9 +541,9 @@ static irqreturn_t ether_tx_chan_isr(int irq, void *data)
|
||||
unsigned long flags;
|
||||
unsigned long val;
|
||||
|
||||
spin_lock_irqsave(&pdata->rlock, flags);
|
||||
raw_spin_lock_irqsave(&pdata->rlock, flags);
|
||||
osi_disable_chan_tx_intr(osi_dma, chan);
|
||||
spin_unlock_irqrestore(&pdata->rlock, flags);
|
||||
raw_spin_unlock_irqrestore(&pdata->rlock, flags);
|
||||
|
||||
val = osi_core->xstats.tx_normal_irq_n[chan];
|
||||
osi_core->xstats.tx_normal_irq_n[chan] =
|
||||
@@ -587,9 +587,9 @@ static irqreturn_t ether_rx_chan_isr(int irq, void *data)
|
||||
unsigned int chan = rx_napi->chan;
|
||||
unsigned long val, flags;
|
||||
|
||||
spin_lock_irqsave(&pdata->rlock, flags);
|
||||
raw_spin_lock_irqsave(&pdata->rlock, flags);
|
||||
osi_disable_chan_rx_intr(osi_dma, chan);
|
||||
spin_unlock_irqrestore(&pdata->rlock, flags);
|
||||
raw_spin_unlock_irqrestore(&pdata->rlock, flags);
|
||||
|
||||
val = osi_core->xstats.rx_normal_irq_n[chan];
|
||||
osi_core->xstats.rx_normal_irq_n[chan] =
|
||||
@@ -728,7 +728,7 @@ static void ether_start_ivc(struct ether_priv_data *pdata)
|
||||
}
|
||||
ictxt->ivc_state = 1;
|
||||
// initialize
|
||||
spin_lock_init(&ictxt->ivck_lock);
|
||||
raw_spin_lock_init(&ictxt->ivck_lock);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2828,9 +2828,9 @@ static int ether_napi_poll_rx(struct napi_struct *napi, int budget)
|
||||
&more_data_avail);
|
||||
if (received < budget) {
|
||||
napi_complete(napi);
|
||||
spin_lock_irqsave(&pdata->rlock, flags);
|
||||
raw_spin_lock_irqsave(&pdata->rlock, flags);
|
||||
osi_enable_chan_rx_intr(osi_dma, chan);
|
||||
spin_unlock_irqrestore(&pdata->rlock, flags);
|
||||
raw_spin_unlock_irqrestore(&pdata->rlock, flags);
|
||||
}
|
||||
|
||||
return received;
|
||||
@@ -2873,9 +2873,9 @@ static int ether_napi_poll_tx(struct napi_struct *napi, int budget)
|
||||
|
||||
if (processed < budget) {
|
||||
napi_complete(napi);
|
||||
spin_lock_irqsave(&pdata->rlock, flags);
|
||||
raw_spin_lock_irqsave(&pdata->rlock, flags);
|
||||
osi_enable_chan_tx_intr(osi_dma, chan);
|
||||
spin_unlock_irqrestore(&pdata->rlock, flags);
|
||||
raw_spin_unlock_irqrestore(&pdata->rlock, flags);
|
||||
}
|
||||
|
||||
return processed;
|
||||
@@ -4386,7 +4386,7 @@ static int ether_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
|
||||
spin_lock_init(&pdata->rlock);
|
||||
raw_spin_lock_init(&pdata->rlock);
|
||||
init_filter_values(pdata);
|
||||
/* Disable Clocks */
|
||||
ether_disable_clks(pdata);
|
||||
|
||||
Reference in New Issue
Block a user