pci_event.c (bcb5d6c769039c8358a2359e7c3ea5d97ce93108) | pci_event.c (d0c8fd21006777b3952263973237fcd82e049ec4) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright IBM Corp. 2012 4 * 5 * Author(s): 6 * Jan Glauber <jang@linux.vnet.ibm.com> 7 */ 8 --- 341 unchanged lines hidden (view full) --- 350 case 0x0302: /* Reserved -> Standby */ 351 if (!zdev) 352 zpci_create_device(ccdf->fid, ccdf->fh, ZPCI_FN_STATE_STANDBY); 353 else 354 zpci_update_fh(zdev, ccdf->fh); 355 break; 356 case 0x0303: /* Deconfiguration requested */ 357 if (zdev) { | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright IBM Corp. 2012 4 * 5 * Author(s): 6 * Jan Glauber <jang@linux.vnet.ibm.com> 7 */ 8 --- 341 unchanged lines hidden (view full) --- 350 case 0x0302: /* Reserved -> Standby */ 351 if (!zdev) 352 zpci_create_device(ccdf->fid, ccdf->fh, ZPCI_FN_STATE_STANDBY); 353 else 354 zpci_update_fh(zdev, ccdf->fh); 355 break; 356 case 0x0303: /* Deconfiguration requested */ 357 if (zdev) { |
358 /* The event may have been queued before we confirgured | 358 /* The event may have been queued before we configured |
359 * the device. 360 */ 361 if (zdev->state != ZPCI_FN_STATE_CONFIGURED) 362 break; 363 zpci_update_fh(zdev, ccdf->fh); 364 zpci_deconfigure_device(zdev); 365 } 366 break; 367 case 0x0304: /* Configured -> Standby|Reserved */ 368 if (zdev) { | 359 * the device. 360 */ 361 if (zdev->state != ZPCI_FN_STATE_CONFIGURED) 362 break; 363 zpci_update_fh(zdev, ccdf->fh); 364 zpci_deconfigure_device(zdev); 365 } 366 break; 367 case 0x0304: /* Configured -> Standby|Reserved */ 368 if (zdev) { |
369 /* The event may have been queued before we confirgured | 369 /* The event may have been queued before we configured |
370 * the device.: 371 */ 372 if (zdev->state == ZPCI_FN_STATE_CONFIGURED) 373 zpci_event_hard_deconfigured(zdev, ccdf->fh); 374 /* The 0x0304 event may immediately reserve the device */ 375 if (!clp_get_state(zdev->fid, &state) && 376 state == ZPCI_FN_STATE_RESERVED) { 377 zpci_device_reserved(zdev); --- 26 unchanged lines hidden --- | 370 * the device.: 371 */ 372 if (zdev->state == ZPCI_FN_STATE_CONFIGURED) 373 zpci_event_hard_deconfigured(zdev, ccdf->fh); 374 /* The 0x0304 event may immediately reserve the device */ 375 if (!clp_get_state(zdev->fid, &state) && 376 state == ZPCI_FN_STATE_RESERVED) { 377 zpci_device_reserved(zdev); --- 26 unchanged lines hidden --- |