Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149298244
D52048.1789835939.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
698 B
Referenced Files
None
Subscribers
None
D52048.1789835939.diff
View Options
diff --git a/sys/dev/tpm/tpm_tis_core.c b/sys/dev/tpm/tpm_tis_core.c
--- a/sys/dev/tpm/tpm_tis_core.c
+++ b/sys/dev/tpm/tpm_tis_core.c
@@ -97,6 +97,7 @@
{
struct tpm_sc *sc;
int result;
+ int poll = 0;
sc = device_get_softc(dev);
sc->dev = dev;
@@ -105,6 +106,12 @@
sx_init(&sc->dev_lock, "TPM driver lock");
sc->buf = malloc(TPM_BUFSIZE, M_TPM20, M_WAITOK);
+ resource_int_value("tpm", device_get_unit(dev), "use_polling", &poll);
+ if (poll != 0) {
+ device_printf(dev, "Using poll method to get TPM operation status \n");
+ goto skip_irq;
+ }
+
sc->irq_rid = 0;
sc->irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->irq_rid,
RF_ACTIVE | RF_SHAREABLE);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 19, 4:38 PM (4 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29772800
Default Alt Text
D52048.1789835939.diff (698 B)
Attached To
Mode
D52048: TPM: Add hint check to skip TPM IRQ configuration
Attached
Detach File
Event Timeline
Log In to Comment