Merge 36808d5e98 ("Merge tag 'driver-core-7.2-rc1' of gitolite.kernel.org:pub/scm/linux/kernel/git/driver-core/driver-core") into android-mainline
Steps on the way to v7.2-rc1 Change-Id: Ibf3b13fe48d16fa3a71fbe0210ed42a8400943d1 Signed-off-by: Carlos Llamas <cmllamas@google.com>
This commit is contained in:
commit
99c032db6c
128 files changed
+1805
-1125
No files matched your search
+2
-2
@@ -2639,7 +2639,7 @@ static void cpuhp_offline_cpu_device(unsigned int cpu)
|
||||
{
|
||||
struct device *dev = get_cpu_device(cpu);
|
||||
|
||||
dev->offline = true;
|
||||
dev_set_offline(dev);
|
||||
/* Tell user space about the state change */
|
||||
kobject_uevent(&dev->kobj, KOBJ_OFFLINE);
|
||||
}
|
||||
@@ -2648,7 +2648,7 @@ static void cpuhp_online_cpu_device(unsigned int cpu)
|
||||
{
|
||||
struct device *dev = get_cpu_device(cpu);
|
||||
|
||||
dev->offline = false;
|
||||
dev_clear_offline(dev);
|
||||
/* Tell user space about the state change */
|
||||
kobject_uevent(&dev->kobj, KOBJ_ONLINE);
|
||||
}
|
||||
|
||||
@@ -126,11 +126,9 @@ static bool dma_go_direct(struct device *dev, dma_addr_t mask,
|
||||
if (likely(!ops))
|
||||
return true;
|
||||
|
||||
#ifdef CONFIG_DMA_OPS_BYPASS
|
||||
if (dev->dma_ops_bypass)
|
||||
if (IS_ENABLED(CONFIG_DMA_OPS_BYPASS) && dev_dma_ops_bypass(dev))
|
||||
return min_not_zero(mask, dev->bus_dma_limit) >=
|
||||
dma_direct_get_required_mask(dev);
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -472,7 +470,7 @@ bool dma_need_unmap(struct device *dev)
|
||||
{
|
||||
if (!dma_map_direct(dev, get_dma_ops(dev)))
|
||||
return true;
|
||||
if (!dev->dma_skip_sync)
|
||||
if (!dev_dma_skip_sync(dev))
|
||||
return true;
|
||||
return IS_ENABLED(CONFIG_DMA_API_DEBUG);
|
||||
}
|
||||
@@ -488,16 +486,16 @@ static void dma_setup_need_sync(struct device *dev)
|
||||
* mapping, if any. During the device initialization, it's
|
||||
* enough to check only for the DMA coherence.
|
||||
*/
|
||||
dev->dma_skip_sync = dev_is_dma_coherent(dev);
|
||||
dev_assign_dma_skip_sync(dev, dev_is_dma_coherent(dev));
|
||||
else if (!ops->sync_single_for_device && !ops->sync_single_for_cpu &&
|
||||
!ops->sync_sg_for_device && !ops->sync_sg_for_cpu)
|
||||
/*
|
||||
* Synchronization is not possible when none of DMA sync ops
|
||||
* is set.
|
||||
*/
|
||||
dev->dma_skip_sync = true;
|
||||
dev_set_dma_skip_sync(dev);
|
||||
else
|
||||
dev->dma_skip_sync = false;
|
||||
dev_clear_dma_skip_sync(dev);
|
||||
}
|
||||
#else /* !CONFIG_DMA_NEED_SYNC */
|
||||
static inline void dma_setup_need_sync(struct device *dev) { }
|
||||
|
||||
+4
-4
@@ -942,9 +942,9 @@ const struct kobj_type module_ktype = {
|
||||
/*
|
||||
* param_sysfs_init - create "module" kset
|
||||
*
|
||||
* This must be done before the initramfs is unpacked and
|
||||
* request_module() thus becomes possible, because otherwise the
|
||||
* module load would fail in mod_sysfs_init.
|
||||
* This must be done before any driver registration so that when a driver comes
|
||||
* from a built-in module, the driver core can add the module under /sys/module
|
||||
* and create the associated driver symlinks.
|
||||
*/
|
||||
static int __init param_sysfs_init(void)
|
||||
{
|
||||
@@ -957,7 +957,7 @@ static int __init param_sysfs_init(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
subsys_initcall(param_sysfs_init);
|
||||
pure_initcall(param_sysfs_init);
|
||||
|
||||
/*
|
||||
* param_sysfs_builtin_init - add sysfs version and parameter
|
||||
|
||||
Reference in new issue
Block a user