Commit ffa51fe
FROMLIST: v4l: async: Ensure only unique fwnodes are registered to notifiers
While registering a notifier, check that each newly added fwnode is
unique, and return an error if it is not. Also check that a newly added
notifier does not have the same fwnodes twice.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
(cherry picked from commit cbd39508810ec530137a0c631d16e8a772d315b8)
https://git.linuxtv.org/sailus/media_tree.git/log/?h=010f7f4393fd
http://www.spinics.net/lists/linux-media/msg122688.html
Signed-off-by: Marc Herbert <marc.herbert@intel.com>
BUG=b:64133998
TEST=media device topology shows subdevs registered successfully
TEST=no camera regression
Change-Id: I02fe494594780d57a7bd536d4132ed633069351c
Reviewed-on: https://chromium-review.googlesource.com/693696
Commit-Ready: Tomasz Figa <tfiga@chromium.org>
Tested-by: Hyungwoo Yang <hyungwoo.yang@intel.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>1 parent 276604c commit ffa51fe
1 file changed
Lines changed: 80 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
314 | 375 | | |
315 | 376 | | |
| 377 | + | |
| 378 | + | |
316 | 379 | | |
317 | 380 | | |
318 | 381 | | |
| |||
333 | 396 | | |
334 | 397 | | |
335 | 398 | | |
| 399 | + | |
| 400 | + | |
336 | 401 | | |
337 | 402 | | |
338 | 403 | | |
339 | 404 | | |
340 | 405 | | |
341 | 406 | | |
342 | 407 | | |
| 408 | + | |
343 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
344 | 417 | | |
345 | 418 | | |
346 | | - | |
347 | | - | |
| 419 | + | |
348 | 420 | | |
349 | | - | |
| 421 | + | |
| 422 | + | |
350 | 423 | | |
351 | 424 | | |
352 | 425 | | |
353 | 426 | | |
354 | | - | |
355 | | - | |
356 | 427 | | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
| 428 | + | |
| 429 | + | |
361 | 430 | | |
362 | 431 | | |
363 | 432 | | |
364 | 433 | | |
365 | 434 | | |
366 | 435 | | |
| 436 | + | |
367 | 437 | | |
368 | 438 | | |
369 | | - | |
| 439 | + | |
370 | 440 | | |
371 | 441 | | |
372 | 442 | | |
| |||
0 commit comments