]> Git Repo - linux.git/commitdiff
Merge 5.10-rc7 into char-misc-next
authorGreg Kroah-Hartman <[email protected]>
Mon, 7 Dec 2020 09:08:14 +0000 (10:08 +0100)
committerGreg Kroah-Hartman <[email protected]>
Mon, 7 Dec 2020 09:08:14 +0000 (10:08 +0100)
We want the fixes in here, and this resolves a merge issue with
drivers/misc/habanalabs/common/memory.c.

Signed-off-by: Greg Kroah-Hartman <[email protected]>
1  2 
MAINTAINERS
drivers/misc/habanalabs/common/device.c

diff --cc MAINTAINERS
Simple merge
index c9011541c64763ff4fd66b2f9655c26214879939,783bbdcb1e6183f48c2370dd4efe239ef481a15e..5871162a84425ef895852296a1b7b44b02ef166b
@@@ -252,28 -237,12 +248,32 @@@ static void device_cdev_sysfs_del(struc
        hl_sysfs_fini(hdev);
        cdev_device_del(&hdev->cdev_ctrl, hdev->dev_ctrl);
        cdev_device_del(&hdev->cdev, hdev->dev);
+ put_devices:
+       put_device(hdev->dev);
+       put_device(hdev->dev_ctrl);
  }
  
 +static void device_hard_reset_pending(struct work_struct *work)
 +{
 +      struct hl_device_reset_work *device_reset_work =
 +              container_of(work, struct hl_device_reset_work,
 +                              reset_work.work);
 +      struct hl_device *hdev = device_reset_work->hdev;
 +      int rc;
 +
 +      rc = hl_device_reset(hdev, true, true);
 +      if ((rc == -EBUSY) && !hdev->device_fini_pending) {
 +              dev_info(hdev->dev,
 +                      "Could not reset device. will try again in %u seconds",
 +                      HL_PENDING_RESET_PER_SEC);
 +
 +              queue_delayed_work(device_reset_work->wq,
 +                      &device_reset_work->reset_work,
 +                      msecs_to_jiffies(HL_PENDING_RESET_PER_SEC * 1000));
 +      }
 +}
 +
  /*
   * device_early_init - do some early initialization for the habanalabs device
   *
This page took 0.14889 seconds and 4 git commands to generate.