MEN-Mikro-Elektronik / 13MD05-90

MDIS5 System Package for Linux (including drivers)
Other
4 stars 4 forks source link

Bb smb2 kernel spam #251

Closed mad-jsanjuan closed 1 year ago

mad-jsanjuan commented 1 year ago

The MDIS SMB2 BBIS driver has some Linux specific implementations around the i2c driver. The Linux native i2c implementation has some callbacks that cannot see the MDIS specific handles needed to use its Debug library.

Instead of using printk for the linux specific callbacks, make use of a macro that lets us enable/disable debug messages at build time. This solves this issue: https://github.com/MEN-Mikro-Elektronik/13MD05-90/issues/234

This pull request also removes deprecated code so it solves issue https://github.com/MEN-Mikro-Elektronik/13MD05-90/issues/245 for this driver.

NOTE: Indentation of these driver mixes different styles of tabs vs. spaces and 2 spaces vs. 4 spaces width. This will need fixing but I did not want to include this here for better traceability.