Re: [PATCH] spi: bcm2835: enable dma modes for transfers meeting certain conditions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/11/2015 01:38 PM, Martin Sperl wrote:
> 
>> On 11.05.2015, at 20:24, Mark Brown <broonie@xxxxxxxxxx> wrote:
>>
>> Applied, thanks.
> 
> Found one typo with the logic - it only does one specific
> check for TX twice instead of for rx_buf and tx_buf:
> 	if (((u32)tfr->tx_buf % 4 == 0) && ((u32)tfr->tx_buf % 4 == 0))
> 
> On top there have been some build-reports about SZ_4K not being defined
> so I guess that there is an include <linux/sizes.h> missing.
> 
> as well as a warning about a pointer cast to u32 on 64 bit systems.
> 	if (((u32)tfr->tx_buf % 4 == 0) && ((u32)tfr->tx_buf % 4 == 0))
> 	if (((u32)tfr->rx_buf % SZ_4K) + tfr->len > SZ_4K) {
> I assume fixable by using size_t instead of u32.
> 
> Do you want me to send a patch to fix those, or shall I resend the full
> patch with those issues fixed?

Since the patch has been applied, you'll need to send an incremental patch.

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux