Re: Does the Community use Coverity ?

2015-12-20 Thread Ruben Safir
In 2006, the Coverity Scan service was initiated with the U.S. Department of Homeland Security leaves a warm and fuzzy feeling On Tue, Dec 15, 2015 at 07:02:42PM +, Jeff Haran wrote: > >-Original Message- > >From: kernelnewbies-bounces+jharan=bytemobile@kernelnewbies.org > >[

Re: [PATCH] mmc: core: Enable tuning according to the actual timing

2015-12-20 Thread Carlo Caione
On Fri, Dec 18, 2015 at 10:34 PM, Carlo Caione wrote: > From: Carlo Caione > > While in sdhci_execute_tuning() the choice whether or not to enable the > tuning is done on the actual timing, in the mmc_sdio_init_uhs_card() the > check is done on the capability of the card. > > This difference is c

[PATCH 20/17] mmc: sdhci: fix data timeout (part 2)

2015-12-20 Thread Russell King
The calculation for the timeout based on the number of card clocks is incorrect. The calculation assumed: timeout in microseconds = clock cycles / clock in Hz which is clearly a several orders of magnitude wrong. Fix this by multiplying the clock cycles by 100 prior to dividing by t

[PATCH 19/17] mmc: sdhci: fix data timeout (part 1)

2015-12-20 Thread Russell King
The data timeout gives the minimum amount of time that should be waited before timing out if no data is received from the card. Simply dividing the nanosecond part by 1000 does not give this required guarantee, since such a division rounds down. Use DIV_ROUND_UP() to give the desired timeout. Sig