Changeset 654 for GPL/branches/uniaud32-next/lib32/regmap.c
- Timestamp:
- Jan 24, 2021, 9:18:35 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/lib32/regmap.c
r652 r654 460 460 static void regmap_lock_hwlock(void *__map) 461 461 { 462 #ifndef TARGET_OS2 462 463 struct regmap *map = __map; 463 464 464 // hwspin_lock_timeout(map->hwlock, UINT_MAX); 465 hwspin_lock_timeout(map->hwlock, UINT_MAX); 466 #endif 465 467 } 466 468 467 469 static void regmap_lock_hwlock_irq(void *__map) 468 470 { 471 #ifndef TARGET_OS2 469 472 struct regmap *map = __map; 470 473 471 // hwspin_lock_timeout_irq(map->hwlock, UINT_MAX); 474 hwspin_lock_timeout_irq(map->hwlock, UINT_MAX); 475 #endif 472 476 } 473 477 474 478 static void regmap_lock_hwlock_irqsave(void *__map) 475 479 { 480 #ifndef TARGET_OS2 476 481 struct regmap *map = __map; 477 482 478 // hwspin_lock_timeout_irqsave(map->hwlock, UINT_MAX, 479 // &map->spinlock_flags); 483 hwspin_lock_timeout_irqsave(map->hwlock, UINT_MAX, 484 &map->spinlock_flags); 485 #endif 480 486 } 481 487 482 488 static void regmap_unlock_hwlock(void *__map) 483 489 { 490 #ifndef TARGET_OS2 484 491 struct regmap *map = __map; 485 492 486 // hwspin_unlock(map->hwlock); 493 hwspin_unlock(map->hwlock); 494 #endif 487 495 } 488 496 489 497 static void regmap_unlock_hwlock_irq(void *__map) 490 498 { 499 #ifndef TARGET_OS2 491 500 struct regmap *map = __map; 492 501 493 // hwspin_unlock_irq(map->hwlock); 502 hwspin_unlock_irq(map->hwlock); 503 #endif 494 504 } 495 505 496 506 static void regmap_unlock_hwlock_irqrestore(void *__map) 497 507 { 508 #ifndef TARGET_OS2 498 509 struct regmap *map = __map; 499 510 500 // hwspin_unlock_irqrestore(map->hwlock, &map->spinlock_flags); 511 hwspin_unlock_irqrestore(map->hwlock, &map->spinlock_flags); 512 #endif 501 513 } 502 514 … … 685 697 #ifndef TARGET_OS2 686 698 struct fwnode_handle *fwnode = dev ? dev_fwnode(dev) : NULL; 687 #else688 struct fwnode_handle *fwnode = NULL;689 699 #endif 690 700 enum regmap_endian endian; … … 1230 1240 if (map->hwlock) 1231 1241 hwspin_lock_free(map->hwlock); 1232 #endif1233 1242 err_name: 1234 #ifndef TARGET_OS21235 1243 kfree_const(map->name); 1236 #else1237 kfree(map->name);1238 1244 #endif 1239 1245 err_map: … … 2359 2365 kfree(buf); 2360 2366 2367 #ifndef TARGET_OS2 2361 2368 for (i = 0; i < num_regs; i++) { 2362 2369 int reg = regs[i].reg; 2363 } 2370 trace_regmap_hw_write_done(map, reg, 1); 2371 } 2372 #endif 2364 2373 return ret; 2365 2374 } … … 3171 3180 EXPORT_SYMBOL_GPL(regmap_async_complete_cb); 3172 3181 3182 #ifndef TARGET_OS2 3173 3183 static int regmap_async_is_done(struct regmap *map) 3174 3184 { … … 3182 3192 return ret; 3183 3193 } 3194 #endif 3184 3195 3185 3196 /**
Note:
See TracChangeset
for help on using the changeset viewer.