- Index: simatic-ipc-modules-lsp-v1.2.0RC1/simatic-ipc.c
- ===================================================================
- --- simatic-ipc-modules-lsp-v1.2.0RC1/simatic-ipc.c (revision 1)
- +++ simatic-ipc-modules-lsp-v1.2.0RC1/simatic-ipc.c (working copy)
- @@ -139,7 +139,7 @@
- SIMATIC_IPC_DEVICE_NONE,
- SIMATIC_IPC_DEVICE_NONE,
- SIMATIC_IPC_DEVICE_NONE,
- - SIMATIC_IPC_DEVICE_NONE},
- + SIMATIC_IPC_DEVICE_227E},
- { IPC427E, SIMATIC_IPC_DEVICE_427E,
- SIMATIC_IPC_DEVICE_427E,
- SIMATIC_IPC_DEVICE_427E,
- @@ -369,6 +369,8 @@
- {
- u32 did = 0;
- struct pci_dev *pdev;
- +
- + pr_info("check_request_uio(): XXX nvrammode=%x\n\n", (int)nvrammode);
- switch (nvrammode) {
- case SIMATIC_IPC_DEVICE_227E:
- @@ -379,15 +381,22 @@
- did = PCI_DEVICE_ID_NVRAM_OTHER;
- break;
- default:
- + pr_info("check_request_uio(): error return no nvrammode\n");
- return 0; /* nothing to do */
- }
- + pr_info("check_request_uio(): did=%lx\n", (long)did);
- pdev = pci_get_device(PCI_VENDOR_ID_SIEMENS, did, NULL);
- + pr_info("check_request_uio(): pdev=%lx\n", (long)pdev);
- if (!pdev)
- + {
- + pr_info("check_request_uio(): return no pdev\n");
- return 0;
- + }
- /* request UIO on models, which supports the NVRAM device, if it exists */
- request_module("uio");
- + pr_info("check_request_uio(): success, did=%lx\n", (long)did);
- return did;
- }
- @@ -566,6 +575,7 @@
- }
- if (nvrammode != SIMATIC_IPC_DEVICE_NONE) {
- + pr_info("# mark blabla1\n");
- nvram_did = check_request_uio(nvrammode);
- if (nvram_did) {
- platform_data.devmode = nvrammode;
- @@ -574,11 +584,16 @@
- (NULL, KBUILD_MODNAME "_nvram", PLATFORM_DEVID_NONE,
- &platform_data, sizeof(struct simatic_ipc_platform));
- if (IS_ERR(ipc_nvram_platform_device))
- + {
- + pr_info("bloody error XXX9\n");
- return PTR_ERR(ipc_nvram_platform_device);
- + }
- - pr_debug("device=%s created\n",
- + pr_info("device=%s created\n",
- ipc_nvram_platform_device->name);
- + pr_info("# mark blabla2\n");
- }
- + pr_info("# mark blabla3\n");
- }
- request_addional_modules(station_id);
- @@ -640,7 +655,7 @@
- }
- if (ipc_name)
- - pr_info("SIMATIC IPC%s detected.\n", ipc_name);
- + pr_info("SIMATIC IPC%s (modded) detected.\n", ipc_name);
- else
- pr_info("No supported SIMATIC IPC detected.\n");
- }
simatickernelmodules driver debug, try #017
Posted by Anonymous on Thu 12th Aug 2021 14:30
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.