Commit e65b6e3
committed
char: tpm: cr50: Move i2c locking to request/relinquish locality ops
JIRA: https://issues.redhat.com/browse/RHEL-72764
Upstream Status: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
commit 44637b0
Author: Jan Dabros <jsd@semihalf.com>
Date: Thu Oct 10 09:15:59 2024 +0000
char: tpm: cr50: Move i2c locking to request/relinquish locality ops
Move i2c locking primitives to request_locality and relinquish_locality
callbacks, what effectively blocks TPM bus for the whole duration of
logical TPM operation.
With this in place, cr50-equipped TPM may be shared with external CPUs -
assuming that underneath i2c controller driver is aware of this setup
(see i2c-designware-amdpsp as an example).
Signed-off-by: Jan Dabros <jsd@semihalf.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Štěpán Horáček <shoracek@redhat.com>1 parent 344fada commit e65b6e3
1 file changed
+13
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | | - | |
206 | 204 | | |
207 | 205 | | |
208 | 206 | | |
| |||
221 | 219 | | |
222 | 220 | | |
223 | 221 | | |
224 | | - | |
225 | 222 | | |
226 | 223 | | |
227 | 224 | | |
| |||
263 | 260 | | |
264 | 261 | | |
265 | 262 | | |
266 | | - | |
267 | | - | |
268 | 263 | | |
269 | 264 | | |
270 | 265 | | |
| |||
278 | 273 | | |
279 | 274 | | |
280 | 275 | | |
281 | | - | |
282 | 276 | | |
283 | 277 | | |
284 | 278 | | |
| |||
322 | 316 | | |
323 | 317 | | |
324 | 318 | | |
| 319 | + | |
325 | 320 | | |
326 | 321 | | |
327 | 322 | | |
328 | 323 | | |
329 | 324 | | |
330 | 325 | | |
331 | 326 | | |
332 | | - | |
| 327 | + | |
333 | 328 | | |
334 | 329 | | |
335 | 330 | | |
336 | 331 | | |
337 | 332 | | |
338 | 333 | | |
| 334 | + | |
| 335 | + | |
339 | 336 | | |
340 | 337 | | |
341 | 338 | | |
| |||
350 | 347 | | |
351 | 348 | | |
352 | 349 | | |
| 350 | + | |
353 | 351 | | |
354 | 352 | | |
355 | 353 | | |
356 | 354 | | |
| 355 | + | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
373 | 377 | | |
374 | 378 | | |
375 | 379 | | |
| |||
0 commit comments