Attention is currently required from: Paul Menzel, Werner Zeh.
1 comment:
File src/device/pciexp_device.c:
Patch Set #1, Line 205: printk(BIOS_INFO, "Common Clock Configuration already enabled\n");
Hey Subrata, any response to my question from your side?
Yeah, something like below code ?
WDYT?
```
static bool is_ccc_enabled(struct device *root, unsigned int root_cap,
struct device *endp, unsigned int endp_cap)
{
uint16_t root_ccc, endp_ccc;
/* No need to enable common clock if it is already active. */
root_ccc = pci_read_config16(root, root_cap + PCI_EXP_LNKCTL) & PCI_EXP_LNKCTL_CCC;
endp_ccc = pci_read_config16(endp, endp_cap + PCI_EXP_LNKCTL) & PCI_EXP_LNKCTL_CCC;
if (root_ccc && endp_ccc) {
printk(BIOS_INFO, "Common Clock Configuration already enabled\n");
return true;
}
return false;
}
```
```
static void pciexp_enable_common_clock(struct device *root, unsigned int root_cap,
struct device *endp, unsigned int endp_cap)
{
if (is_ccc_enabled(....))
return;
....
}
```
To view, visit change 73310. To unsubscribe, or for help writing mail filters, visit settings.