fixup.c in linux kernel

radolfyr at web.de radolfyr at web.de
Mon Jul 4 16:57:48 CEST 2016


Hi,

in the linux kernel there is an interesding file:
./arch/x86/pci/fixup.c
It contains some interresting fixup code for toshiba notebooks ("in some cases, the device will generate an interrupt on the wrong IRQ line...")
Don't know if the click has a TI TSB43AB22/A. 
I would like to add the toshiba click mini to the list and test what happens. However I don't know what value for DMI_PRODUCT_VERSION I have to use.
Sadly I have no knowlede in kernel development so just trying out something.
Does somebody know the correct DMI_PRODUCT_VERSION value?
thanks in advance
best regards
Stefan


/*
 * Some Toshiba laptops need extra code to enable their TI TSB43AB22/A.
 *
 * We pretend to bring them out of full D3 state, and restore the proper
 * IRQ, PCI cache line size, and BARs, otherwise the device won't function
 * properly.  In some cases, the device will generate an interrupt on
 * the wrong IRQ line, causing any devices sharing the line it's
 * *supposed* to use to be disabled by the kernel's IRQ debug code.
 */
static u16 toshiba_line_size;
static const struct dmi_system_id toshiba_ohci1394_dmi_table[] = {
    {
        .ident = "Toshiba PS5 based laptop",
        .matches = {
            DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
            DMI_MATCH(DMI_PRODUCT_VERSION, "PS5"),
        },
    },
    {
        .ident = "Toshiba PSM4 based laptop",
        .matches = {
            DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
            DMI_MATCH(DMI_PRODUCT_VERSION, "PSM4"),
        },
    },
    {
        .ident = "Toshiba A40 based laptop",
        .matches = {
            DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
            DMI_MATCH(DMI_PRODUCT_VERSION, "PSA40U"),
        },
    },
    { }
};


More information about the click mailing list