summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e2ff1ab)
raw | patch | inline | side by side (parent: e2ff1ab)
author | Tinku Mannan <tmannan@ti.com> | |
Thu, 17 Jul 2014 19:03:27 +0000 (15:03 -0400) | ||
committer | Tinku Mannan <tmannan@ti.com> | |
Thu, 17 Jul 2014 19:03:27 +0000 (15:03 -0400) |
on both k2e and k2l while it passed on alpha build
ti/drv/nwal/src/nwal_init.c | [changed mode: 0644->0755] | patch | blob | history |
if (pIhandle->rxChHnd[i] == NULL)
{
- return (nwal_ERR_CPPI);
+ continue;
+ }
+ else
+ {
+ Cppi_channelEnable (pIhandle->rxChHnd[i]);
}
- Cppi_channelEnable (pIhandle->rxChHnd[i]);
}
/* Open all tx channels. */
Cppi_txChannelOpen (pIhandle->cppiHandle, &txChCfg, &isAlloc);
if (pIhandle->txChHnd[i] == NULL) {
- return (nwal_ERR_CPPI);
+ continue;
+ }
+ else
+ {
+ Cppi_channelEnable (pIhandle->txChHnd[i]);
}
-
- Cppi_channelEnable (pIhandle->txChHnd[i]);
}
/*Disable CPPI CPDMA loopback for PASS*/
for (i = 0; i < NSS_NUM_TX_PKTDMA_CHANNELS; i++)
{
+ if(!pIhandle->txChHnd[i])
+ continue;
if ((Cppi_channelDisable (pIhandle->txChHnd[i])) != CPPI_SOK)
{
return nwal_FALSE;
for (i = 0; i < NSS_NUM_RX_PKTDMA_CHANNELS; i++)
{
+ if (!pIhandle->rxChHnd[i])
+ continue;
if ((Cppi_channelDisable (pIhandle->rxChHnd[i])) != CPPI_SOK)
{
return nwal_FALSE;