From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] driver:net:stmmac: Disable DMA store and forward mode if platform data force_sf_dma_mode is negative. Date: Thu, 15 Aug 2013 14:20:05 -0700 (PDT) Message-ID: <20130815.142005.816948927496553829.davem@davemloft.net> References: <1376552256-7421-1-git-send-email-sonic.adi@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: peppe.cavallaro@st.com, netdev@vger.kernel.org, adi-buildroot-devel@lists.sourceforge.net, sonic.zhang@analog.com To: sonic.adi@gmail.com Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:46209 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751133Ab3HOVUH (ORCPT ); Thu, 15 Aug 2013 17:20:07 -0400 In-Reply-To: <1376552256-7421-1-git-send-email-sonic.adi@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Sonic Zhang Date: Thu, 15 Aug 2013 15:37:36 +0800 > @@ -1157,7 +1157,9 @@ static void free_dma_desc_resources(struct stmmac_priv *priv) > */ > static void stmmac_dma_operation_mode(struct stmmac_priv *priv) > { > - if (likely(priv->plat->force_sf_dma_mode || > + if (priv->plat->force_sf_dma_mode < 0) > + priv->hw->dma->dma_mode(priv->ioaddr, tc, tc); > + else if (likely(priv->plat->force_sf_dma_mode > 0 || > ((priv->plat->tx_coe) && (!priv->no_csum_insertion)))) { You need to properly re-indent the last line here so that the openning parenthesis lines up with the first column after the openning parenthesis on the "else if" line.