1. 23 May, 2019 1 commit
    • Peng Ma's avatar
      ata: fsl_ahci: Add sata DM support for Freescale powerpc socs · 1ee49429
      Peng Ma authored
      
      
      This patch is to support Freescale sata driver with dts initialized.
      Also resolved the following problems.
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_SCSI. Please update
      the storage controller to use CONFIG_DM_SCSI before the v2019.07 release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/MIGRATION.txt for more info.
      ====================================================
      Signed-off-by: default avatarPeng Ma <peng.ma@nxp.com>
      Reviewed-by: default avatarPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
      1ee49429
  2. 07 May, 2018 1 commit
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      Signed-off-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      83d290c5
  3. 11 Jul, 2017 1 commit
  4. 24 Jul, 2013 1 commit
  5. 04 Nov, 2012 1 commit
    • Kim Phillips's avatar
      drivers/block/: sparse fixes · 00caa7f5
      Kim Phillips authored
      
      
      sata_sil.c:371:7: warning: symbol 'sil_sata_rw_lba28' was not declared. Should it be static?
      sata_sil.c:399:7: warning: symbol 'sil_sata_rw_lba48' was not declared. Should it be static?
      sata_sil.c:429:6: warning: symbol 'sil_sata_cmd_flush_cache' was not declared. Should it be static?
      sata_sil.c:441:6: warning: symbol 'sil_sata_cmd_flush_cache_ext' was not declared. Should it be static?
      sata_sil.c:489:7: warning: symbol 'sata_read' was not declared. Should it be static?
      sata_sil.c:505:7: warning: symbol 'sata_write' was not declared. Should it be static?
      sata_sil.c:526:5: warning: symbol 'init_sata' was not declared. Should it be static?
      sata_sil.c:588:5: warning: symbol 'scan_sata' was not declared. Should it be static?
      fsl_sata.c:59:6: warning: symbol 'dprint_buffer' was not declared. Should it be static?
      fsl_sata.c:187:42: warning: incorrect type in assignment (different base types)
      fsl_sata.c:187:42:    expected unsigned int [unsigned] [usertype] cda
      fsl_sata.c:187:42:    got restricted __le32 [usertype] <noident>
      fsl_sata.c:291:6: warning: symbol 'fsl_sata_hardware_reset' was not declared. Should it be static?
      fsl_sata.c:418:27: warning: incorrect type in assignment (different base types)
      fsl_sata.c:418:27:    expected unsigned int [unsigned] [usertype] dba
      fsl_sata.c:418:27:    got restricted __le32 [usertype] <noident>
      fsl_sata.c:424:41: warning: incorrect type in assignment (different base types)
      fsl_sata.c:424:41:    expected unsigned int [unsigned] [usertype] ext_c_ddc
      fsl_sata.c:424:41:    got restricted __le32 [usertype] <noident>
      fsl_sata.c:431:41: warning: incorrect type in assignment (different base types)
      fsl_sata.c:431:41:    expected unsigned int [unsigned] [usertype] ext_c_ddc
      fsl_sata.c:431:41:    got restricted __le32 [usertype] <noident>
      fsl_sata.c:442:22: warning: incorrect type in assignment (different base types)
      fsl_sata.c:442:22:    expected unsigned int [unsigned] [usertype] cda
      fsl_sata.c:442:22:    got restricted __le32 [usertype] <noident>
      fsl_sata.c:446:31: warning: incorrect type in assignment (different base types)
      fsl_sata.c:446:31:    expected unsigned int [unsigned] [usertype] prde_fis_len
      fsl_sata.c:446:31:    got restricted __le32 [usertype] <noident>
      fsl_sata.c:448:22: warning: incorrect type in assignment (different base types)
      fsl_sata.c:448:22:    expected unsigned int [unsigned] [usertype] ttl
      fsl_sata.c:448:22:    got restricted __le32 [usertype] <noident>
      fsl_sata.c:460:28: warning: incorrect type in assignment (different base types)
      fsl_sata.c:460:28:    expected unsigned int [unsigned] [usertype] attribute
      fsl_sata.c:460:28:    got restricted __le32 [usertype] <noident>
      fsl_sata.c:623:6: warning: symbol 'fsl_sata_flush_cache' was not declared. Should it be static?
      fsl_sata.c:667:5: warning: symbol 'fsl_sata_rw_ncq_cmd' was not declared. Should it be static?
      fsl_sata.c:710:6: warning: symbol 'fsl_sata_flush_cache_ext' was not declared. Should it be static?
      fsl_sata.c:725:6: warning: symbol 'fsl_sata_software_reset' was not declared. Should it be static?
      fsl_sata.c:760:5: warning: symbol 'ata_low_level_rw_lba48' was not declared. Should it be static?
      fsl_sata.c:795:5: warning: symbol 'ata_low_level_rw_lba28' was not declared. Should it be static?
      
      the following compiler warnings show up after fixing the above, so
      remove those three functions:
      
      fsl_sata.c:59:13: warning: 'dprint_buffer' defined but not used [-Wunused-function]
      fsl_sata.c:291:13: warning: 'fsl_sata_hardware_reset' defined but not used [-Wunused-function]
      fsl_sata.c:726:13: warning: 'fsl_sata_software_reset' defined but not used [-Wunused-function]
      
      Other than that, the following are fixed by __iomem annotation:
      
      fsl_sata.c:84:39: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:84:39:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:84:39:    got unsigned int volatile *addr
      fsl_sata.c:172:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:172:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:172:26:    got unsigned int *<noident>
      fsl_sata.c:175:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:175:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:175:19:    got unsigned int *<noident>
      fsl_sata.c:181:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:181:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:181:19:    got unsigned int *<noident>
      fsl_sata.c:184:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:184:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:184:26:    got unsigned int *<noident>
      fsl_sata.c:186:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:186:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:186:19:    got unsigned int *<noident>
      fsl_sata.c:189:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:189:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:189:26:    got unsigned int *<noident>
      fsl_sata.c:191:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:191:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:191:19:    got unsigned int *<noident>
      fsl_sata.c:194:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:194:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:194:26:    got unsigned int *<noident>
      fsl_sata.c:195:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:195:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:195:19:    got unsigned int *<noident>
      fsl_sata.c:198:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:198:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:198:19:    got unsigned int *<noident>
      fsl_sata.c:201:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:201:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:201:19:    got unsigned int *<noident>
      fsl_sata.c:204:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:204:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:204:26:    got unsigned int *<noident>
      fsl_sata.c:205:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:205:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:205:19:    got unsigned int *<noident>
      fsl_sata.c:208:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:208:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:208:26:    got unsigned int *<noident>
      fsl_sata.c:209:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:209:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:209:19:    got unsigned int *<noident>
      fsl_sata.c:212:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:212:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:212:26:    got unsigned int *<noident>
      fsl_sata.c:213:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:213:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:213:19:    got unsigned int *<noident>
      fsl_sata.c:216:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:216:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:216:19:    got unsigned int *<noident>
      fsl_sata.c:219:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:219:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:219:19:    got unsigned int *<noident>
      fsl_sata.c:222:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:222:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:222:19:    got unsigned int *<noident>
      fsl_sata.c:225:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:225:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:225:26:    got unsigned int *<noident>
      fsl_sata.c:227:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:227:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:227:19:    got unsigned int *<noident>
      fsl_sata.c:242:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:242:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:242:26:    got unsigned int *<noident>
      fsl_sata.c:256:32: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:256:32:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:256:32:    got unsigned int *<noident>
      fsl_sata.c:262:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:262:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:262:26:    got unsigned int *<noident>
      fsl_sata.c:274:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:274:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:274:53:    got unsigned int *<noident>
      fsl_sata.c:275:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:275:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:275:53:    got unsigned int *<noident>
      fsl_sata.c:276:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:276:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:276:53:    got unsigned int *<noident>
      fsl_sata.c:277:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:277:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:277:53:    got unsigned int *<noident>
      fsl_sata.c:278:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:278:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:278:53:    got unsigned int *<noident>
      fsl_sata.c:279:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:279:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:279:53:    got unsigned int *<noident>
      fsl_sata.c:280:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:280:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:280:53:    got unsigned int *<noident>
      fsl_sata.c:281:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:281:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:281:53:    got unsigned int *<noident>
      fsl_sata.c:282:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:282:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:282:53:    got unsigned int *<noident>
      fsl_sata.c:283:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:283:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:283:53:    got unsigned int *<noident>
      fsl_sata.c:284:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:284:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:284:53:    got unsigned int *<noident>
      fsl_sata.c:285:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:285:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:285:53:    got unsigned int *<noident>
      fsl_sata.c:286:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:286:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:286:53:    got unsigned int *<noident>
      fsl_sata.c:287:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:287:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:287:53:    got unsigned int *<noident>
      fsl_sata.c:288:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:288:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:288:53:    got unsigned int *<noident>
      fsl_sata.c:289:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:289:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:289:53:    got unsigned int *<noident>
      fsl_sata.c:290:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:290:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:290:53:    got unsigned int *<noident>
      fsl_sata.c:291:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:291:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:291:53:    got unsigned int *<noident>
      fsl_sata.c:292:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:292:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:292:53:    got unsigned int *<noident>
      fsl_sata.c:293:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:293:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:293:53:    got unsigned int *<noident>
      fsl_sata.c:294:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:294:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:294:53:    got unsigned int *<noident>
      fsl_sata.c:295:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:295:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:295:53:    got unsigned int *<noident>
      fsl_sata.c:296:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:296:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:296:53:    got unsigned int *<noident>
      fsl_sata.c:297:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:297:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:297:53:    got unsigned int *<noident>
      fsl_sata.c:298:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:298:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:298:53:    got unsigned int *<noident>
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      00caa7f5
  6. 29 Nov, 2011 1 commit
  7. 27 Apr, 2010 1 commit
  8. 20 Jul, 2009 1 commit
    • galak's avatar
      fsl_sata: Fix compiler warnings shown by gcc-4.4 · f14d8105
      galak authored and Wolfgang Denk's avatar Wolfgang Denk committed
      
      
      Update fsl_sata to use common structures instead of casting
      back and forth between the fsl specific ones and the common ones
      (which are identical).
      
      fsl_sata.c: In function 'scan_sata':
      fsl_sata.c:550: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
      fsl_sata.c:549: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
      fsl_sata.c:548: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
      fsl_sata.c:545: note: initialized from here
      fsl_sata.c:592: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
      fsl_sata.c:590: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
      fsl_sata.c:588: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
      fsl_sata.c:586: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
      fsl_sata.c:579: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
      ...
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      f14d8105
  9. 26 Mar, 2008 1 commit