1. 06 4月, 2016 1 次提交
    • P
      fsl: esdhc: support driver model · 96f0407b
      Peng Fan 提交于
      Support Driver Model for fsl esdhc driver.
      
      1. Introduce a new structure struct fsl_esdhc_priv
      2. Refactor fsl_esdhc_initialize which is originally used by board code.
         - Introduce fsl_esdhc_init to be common usage for DM and non-DM
         - Introduce fsl_esdhc_cfg_to_priv to build the bridge for non-DM part.
         - The original API for board code is still there, but we use
           'fsl_esdhc_cfg_to_priv' and 'fsl_esdhc_init' to serve it.
      3. All the functions are changed to use 'struct fsl_esdhc_priv', except
         fsl_esdhc_initialize.
      4. Since clk driver is not implemented, use mxc_get_clock to geth
         the clk and fill 'priv->sdhc_clk'.
      
      Has been tested on i.MX6UL 14X14 EVK board:
      "
      =>dm tree
      ....
       simple_bus  [ + ]    |   `-- aips-bus@02100000
        mmc        [ + ]    |       |-- usdhc@02190000
        mmc        [ + ]    |       |-- usdhc@02194000
      ....
      => mmc list
      FSL_SDHC: 0 (SD)
      FSL_SDHC: 1 (SD)
      "
      Signed-off-by: NPeng Fan <van.freenix@gmail.com>
      Cc: York Sun <york.sun@nxp.com>
      Cc: Yangbo Lu <yangbo.lu@nxp.com>
      Cc: Hector Palacios <hector.palacios@digi.com>
      Cc: Eric Nelson <eric@nelint.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Fabio Estevam <fabio.estevam@nxp.com>
      Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
      Cc: Simon Glass <sjg@chromium.org>
      Tested-By: NEric Nelson <eric@nelint.com>
      Reviewed-by: NYork Sun <york.sun@nxp.com>
      96f0407b
  2. 05 4月, 2016 28 次提交
  3. 04 4月, 2016 6 次提交
  4. 03 4月, 2016 1 次提交
    • K
      net: phy: Realtek RTL8211B/C PHY ID fix · 563d8d93
      Karsten Merker 提交于
      The RTL8211B_driver structure in drivers/net/phy/realtek.c contains a
      wrong PHY ID (0x1cc910 instead of 0x1cc912) in the uid field.
      
      The lowest four bits of the PHY ID encode the chip revision (B+C/D/E/F)
      of the RTL8211 and the code originally applied a mask of 0xfffff0 to
      the PHY ID, so that matching the PHY ID to the appropriate driver code
      was only done on the chip type (RTL8211), but not on a specific
      revision.
      
      After introduction of support for the RTL8211E, which needed another
      startup function than the older chip revisions, commit
      42205047 changed the mask to 0xffffff
      to make the chip revision relevant for the match, but didn't provide
      the now-relevant lower bits of the uid field for the RTL8211B/C.
      
      Fix this by setting the full PHY ID in the RTL8211B_driver uid field.
      
      Fixes: 42205047 ("net/phy: realtek: Fix the PHY ID mask to ensure the correct Realtek PHY is detected")
      Signed-off-by: NKarsten Merker <merker@debian.org>
      Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
      563d8d93
  5. 02 4月, 2016 4 次提交
    • S
      MAINTAINERS: Update Scott Wood's email address · 3ef9cdb7
      Scott Wood 提交于
      Freescale is now NXP.  I still work there, but I won't be using their
      mail system for U-Boot development.
      Signed-off-by: NScott Wood <oss@buserror.net>
      3ef9cdb7
    • E
      sata: use block layer for sata command · 96baf368
      Eric Nelson 提交于
      Call blk_dread, blk_dwrite, blk_derase to ensure that the block cache is
      used if enabled and to remove build breakage when CONFIG_BLK is enabled.
      Signed-off-by: NEric Nelson <eric@nelint.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      96baf368
    • E
      mmc: use block layer in mmc command · bcfde7ff
      Eric Nelson 提交于
      Call blk_dread, blk_dwrite, blk_derase to ensure that the block cache is
      used if enabled and to remove build breakage when CONFIG_BLK is enabled.
      Signed-off-by: NEric Nelson <eric@nelint.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      bcfde7ff
    • E
      drivers: block: add block device cache · e40cf34a
      Eric Nelson 提交于
      Add a block device cache to speed up repeated reads of block devices by
      various filesystems.
      
      This small amount of cache can dramatically speed up filesystem
      operations by skipping repeated reads of common areas of a block
      device (typically directory structures).
      
      This has shown to have some benefit on FAT filesystem operations of
      loading a kernel and RAM disk, but more dramatic benefits on ext4
      filesystems when the kernel and/or RAM disk are spread across
      multiple extent header structures as described in commit fc0fc50f.
      
      The cache is implemented through a minimal list (block_cache) maintained
      in most-recently-used order and count of the current number of entries
      (cache_count). It uses a maximum block count setting to prevent copies
      of large block reads and an upper bound on the number of cached areas.
      
      The maximum number of entries in the cache defaults to 32 and the maximum
      number of blocks per cache entry has a default of 2, which has shown to
      produce the best results on testing of ext4 and FAT filesystems.
      
      The 'blkcache' command (enabled through CONFIG_CMD_BLOCK_CACHE) allows
      changing these values and can be used to tune for a particular filesystem
      layout.
      Signed-off-by: NEric Nelson <eric@nelint.com>
      e40cf34a