1. 25 1月, 2017 1 次提交
  2. 28 10月, 2016 1 次提交
  3. 17 10月, 2016 2 次提交
  4. 03 8月, 2016 1 次提交
  5. 21 7月, 2016 1 次提交
  6. 28 6月, 2016 1 次提交
    • D
      block: convert to device_add_disk() · 0d52c756
      Dan Williams 提交于
      For block drivers that specify a parent device, convert them to use
      device_add_disk().
      
      This conversion was done with the following semantic patch:
      
          @@
          struct gendisk *disk;
          expression E;
          @@
      
          - disk->driverfs_dev = E;
          ...
          - add_disk(disk);
          + device_add_disk(E, disk);
      
          @@
          struct gendisk *disk;
          expression E1, E2;
          @@
      
          - disk->driverfs_dev = E1;
          ...
          E2 = disk;
          ...
          - add_disk(E2);
          + device_add_disk(E1, E2);
      
      ...plus some manual fixups for a few missed conversions.
      
      Cc: Jens Axboe <axboe@fb.com>
      Cc: Keith Busch <keith.busch@intel.com>
      Cc: Michael S. Tsirkin <mst@redhat.com>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: James Bottomley <James.Bottomley@hansenpartnership.com>
      Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
      Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Cc: Martin K. Petersen <martin.petersen@oracle.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Reviewed-by: NJohannes Thumshirn <jthumshirn@suse.de>
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      0d52c756
  7. 24 5月, 2016 2 次提交
  8. 28 4月, 2016 1 次提交
  9. 26 3月, 2016 1 次提交
    • A
      drivers/memstick/host/r592.c: avoid gcc-6 warning · f419a08f
      Arnd Bergmann 提交于
      The r592 driver relies on behavior of the DMA mapping API that is
      normally observed but not guaranteed by the API.  Instead it uses a
      runtime check to fail transfers if the API ever behaves
      
      When CONFIG_NEED_SG_DMA_LENGTH is not set, one of the checks turns into a
      comparison of a variable with itself, which gcc-6.0 now warns about:
      
      drivers/memstick/host/r592.c: In function 'r592_transfer_fifo_dma':
      drivers/memstick/host/r592.c:302:31: error: self-comparison always evaluates to false [-Werror=tautological-compare]
          (sg_dma_len(&dev->req->sg) < dev->req->sg.length)) {
                                     ^
      
      The check itself is not a problem, so this patch just rephrases the
      condition in a way that gcc does not consider an indication of a mistake.
      We already know that dev->req->sg.length was initially R592_LFIFO_SIZE, so
      we can compare it to that constant again.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Maxim Levitsky <maximlevitsky@gmail.com>
      Cc: Quentin Lambert <lambert.quentin@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f419a08f
  10. 21 1月, 2016 1 次提交
  11. 01 7月, 2015 1 次提交
    • Q
      memstick: remove deprecated use of pci api · 43abdbce
      Quentin Lambert 提交于
      Replace occurences of the pci api by appropriate call to the dma api.
      
      A simplified version of the semantic patch that finds this problem is as
      follows: (http://coccinelle.lip6.fr)
      
      @deprecated@
      idexpression id;
      position p;
      @@
      
      (
        pci_dma_supported@p ( id, ...)
      |
        pci_alloc_consistent@p ( id, ...)
      )
      
      @bad1@
      idexpression id;
      position deprecated.p;
      @@
      ...when != &id->dev
         when != pci_get_drvdata ( id )
         when != pci_enable_device ( id )
      (
        pci_dma_supported@p ( id, ...)
      |
        pci_alloc_consistent@p ( id, ...)
      )
      
      @depends on !bad1@
      idexpression id;
      expression direction;
      position deprecated.p;
      @@
      
      (
      - pci_dma_supported@p ( id,
      + dma_supported ( &id->dev,
      ...
      + , GFP_ATOMIC
        )
      |
      - pci_alloc_consistent@p ( id,
      + dma_alloc_coherent ( &id->dev,
      ...
      + , GFP_ATOMIC
        )
      )
      Signed-off-by: NQuentin Lambert <lambert.quentin@gmail.com>
      Cc: Maxim Levitsky <maximlevitsky@gmail.com>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      43abdbce
  12. 17 4月, 2015 1 次提交
  13. 20 10月, 2014 1 次提交
  14. 14 10月, 2014 1 次提交
  15. 24 6月, 2014 1 次提交
  16. 28 4月, 2014 1 次提交
  17. 24 1月, 2014 1 次提交
  18. 15 11月, 2013 2 次提交
  19. 13 11月, 2013 2 次提交
  20. 17 10月, 2013 1 次提交
  21. 12 9月, 2013 2 次提交
  22. 30 8月, 2013 1 次提交
  23. 04 7月, 2013 2 次提交
  24. 07 5月, 2013 1 次提交
  25. 01 5月, 2013 1 次提交
  26. 28 2月, 2013 2 次提交
  27. 14 2月, 2013 1 次提交
    • W
      mfd: rtsx: Fix issue that booting OS with SD card inserted · c3481955
      Wei WANG 提交于
      Realtek card reader supports both SD and MS card. According to the
      settings of rtsx MFD driver, SD host will be probed before MS host.
      If we boot/reboot Linux with SD card inserted, the resetting flow of SD
      card will succeed, and the following resetting flow of MS is sure to fail.
      Then MS upper-level driver will ask rtsx driver to turn power off. This
      request leads to the result that the following SD commands fail and SD card
      can't be accessed again.
      
      In this commit, Realtek's SD and MS host driver will check whether the card
      that upper driver requesting is the one existing in the slot. If not, Realtek's
      host driver will refuse the operation to make sure the exlusive accessing
      at the same time.
      Signed-off-by: NWei WANG <wei_wang@realsil.com.cn>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      c3481955
  28. 22 1月, 2013 2 次提交
  29. 16 11月, 2012 1 次提交
  30. 08 11月, 2012 1 次提交
  31. 20 3月, 2012 1 次提交
  32. 13 1月, 2012 1 次提交