Skip to content

Unloading the driver doesn't disable interrupts

Administrator requested to merge MAIN_PR007849 into master

Created by: gvarlet

When the driver is unloaded, the interrupts were not disabled because some functions still relied to a direct access on info structure instead for flags of using the Z055_STRUCT_flags() macro which is independent of the kernel version. It prevented to run the shutdown() function which is called on close() and which disable all interrupts at this time;

The old remaining info->flags direct data access are replaced by a call to Z055_STRUCT_flags(info) to solve the issue

Resolves: MAIN_PR007849

Merge request reports