[FE training-materials-updates] kernel i2c lab: use only msleep(1), not udelay(1000)

Michael Opdenacker michael.opdenacker at free-electrons.com
Tue Nov 29 13:56:39 CET 2016


Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=3acd68032cfc017fe384bae2e365f34203b14853

>---------------------------------------------------------------

commit 3acd68032cfc017fe384bae2e365f34203b14853
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Tue Nov 29 13:56:39 2016 +0100

    kernel i2c lab: use only msleep(1), not udelay(1000)
    
    - Tested on Linux 4.9
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


>---------------------------------------------------------------

3acd68032cfc017fe384bae2e365f34203b14853
 labs/kernel-i2c-communication/kernel-i2c-communication.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/labs/kernel-i2c-communication/kernel-i2c-communication.tex b/labs/kernel-i2c-communication/kernel-i2c-communication.tex
index 8cae025..87f531c 100644
--- a/labs/kernel-i2c-communication/kernel-i2c-communication.tex
+++ b/labs/kernel-i2c-communication/kernel-i2c-communication.tex
@@ -190,7 +190,7 @@ In the probe routine (run every time a matching device is found):
       using. This could reveal communication issues.  Using LXR, find
       examples of how to handle failures properly using the same
       function.
-\item Let the CPU wait for 1 ms by using the \code{udelay()} routine.
+\item Let the CPU wait for 1 ms by using the \code{msleep()} routine.
       You may need to use LXR again to find the right C headers to
       include.
 \item In the same way, send the \code{0xfb} and \code{0x00} bytes now.




More information about the training-materials-updates mailing list