All of lore.kernel.org
 help / color / mirror / Atom feed
  • [parent not found: <1416237576-21542-3-git-send-email-arul.ramasamy@imgtec.com>]
  • * RE: [PATCH v1 1/2] efuse: IMG Pistachio eFuse Controller
    @ 2014-11-19  6:15 Arul Ramasamy
      0 siblings, 0 replies; 16+ messages in thread
    From: Arul Ramasamy @ 2014-11-19  6:15 UTC (permalink / raw)
      To: James Hogan, Naidu Tellapati, Ezequiel Garcia
      Cc: arnd-r2nGTMty4D4@public.gmane.org,
    	olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org,
    	treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org,
    	swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org,
    	gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org,
    	abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org, James Hartley,
    	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jude Abraham
    
    Hi James,
    
    [...]
    
    >>> +    if (offset >= efuse_dev->size)
    >>> +            return 0;
    >>> +
    >>> +    data = readl(efuse_dev->base + round_down(offset, 4));
    >> +    data >>= (offset % 4) * 8;
    >>> +
    >>> +    return data; /* Only return the last byte */
    
    >>  The last byte? You mean the least significant byte?
    
    > Yes, it returns the least significant byte.
    
    Since the return type is u8 the function returns last byte in the resultant data after the right shift operation.
    If the user space asks for nth byte (offset = n, where  n = 0 to 15) we will return nth byte from the eFuse shadow RAM.
    
    There are total 128 Bits (16 bytes) of Shadow RAM reserved for eFuse status.
    
    [...]
    
    Regards,
    R.Arul Raj
    
    --
    To unsubscribe from this list: send the line "unsubscribe devicetree" in
    the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    
    ^ permalink raw reply	[flat|nested] 16+ messages in thread

    end of thread, other threads:[~2014-11-19  6:15 UTC | newest]
    
    Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <1416237576-21542-1-git-send-email-arul.ramasamy@imgtec.com>
         [not found] ` <1416237576-21542-2-git-send-email-arul.ramasamy@imgtec.com>
         [not found]   ` <1416237576-21542-2-git-send-email-arul.ramasamy-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
    2014-11-17 15:47     ` [PATCH v1 1/2] efuse: IMG Pistachio eFuse Controller James Hogan
         [not found]       ` <546A189B.3090202-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
    2014-11-17 20:02         ` Ezequiel Garcia
         [not found]           ` <546A5445.3020905-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
    2014-11-17 21:29             ` James Hogan
         [not found]               ` <20141117212917.GH1739-4bYivNCBEGTR3KXKvIWQxtm+Uo4AYnCiHZ5vskTnxNA@public.gmane.org>
    2014-11-17 21:29                 ` Ezequiel Garcia
    2014-11-18  0:12         ` Naidu Tellapati
         [not found]           ` <27E62D98F903554192E3C13AFCC91C3C2F506FE2-C8yLA94LPOy3snIXRfWIHVBRoQTxkR7k@public.gmane.org>
    2014-11-18  0:26             ` Andrew Bresticker
         [not found]               ` <CAL1qeaHSevOJ-o=nFqgze8utMgTk-Mh7Y9uRMa6wnjeofji98w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
    2014-11-18  9:45                 ` James Hogan
         [not found]                   ` <546B152D.1010804-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
    2014-11-18 10:03                     ` Arnd Bergmann
    2014-11-18 10:32                       ` James Hogan
    2014-11-18 12:05                     ` James Hartley
    2014-11-17 19:21     ` Andrew Bresticker
         [not found]       ` <CAL1qeaF+Y8gPFFkAXq+CnKpXmpFQQoC_6T+tJuXq2yGS1STH-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
    2014-11-17 23:39         ` Naidu Tellapati
         [not found] ` <1416237576-21542-3-git-send-email-arul.ramasamy@imgtec.com>
         [not found]   ` <1416237576-21542-3-git-send-email-arul.ramasamy-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
    2014-11-17 19:13     ` [PATCH v1 2/2] DT: eFuse: Add binding document for " Andrew Bresticker
         [not found]       ` <CAL1qeaF47Xwq5eS17D_rS4QBP12eJ3F0N-RNx+_o0kr-H1ropw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
    2014-11-17 23:34         ` Naidu Tellapati
         [not found]           ` <27E62D98F903554192E3C13AFCC91C3C2F506F94-C8yLA94LPOy3snIXRfWIHVBRoQTxkR7k@public.gmane.org>
    2014-11-17 23:57             ` Andrew Bresticker
    2014-11-19  6:15 [PATCH v1 1/2] efuse: " Arul Ramasamy
    

    This is an external index of several public inboxes,
    see mirroring instructions on how to clone and mirror
    all data and code used by this external index.