-
由 Wolfram Sang 提交于
There are two problems with dev_err() here. One: It is not ratelimited. Two: We don't see which driver tried to transfer something with a suspended adapter. Switch to dev_WARN_ONCE to fix both issues. Drawback is that we don't see if multiple drivers are trying to transfer while suspended. They need to be discovered one after the other now. This is better than a high CPU load because a really broken driver might try to resend endlessly. Link: https://bugs.archlinux.org/task/62391 Fixes: 27515415 ("i2c: designware: Do not allow i2c_dw_xfer() calls while suspended") Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Reported-by: Nskidnik <skidnik@gmail.com> Acked-by: NJarkko Nikula <jarkko.nikula@linux.intel.com> Reviewed-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Tested-by: Nskidnik <skidnik@gmail.com> Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
6bac9bc2