OSDN Git Service

Revert "i2c: core: support bus regulator controlling in adapter"
authorWolfram Sang <wsa@kernel.org>
Thu, 6 Jan 2022 12:24:52 +0000 (13:24 +0100)
committerWolfram Sang <wsa@kernel.org>
Fri, 7 Jan 2022 20:27:15 +0000 (21:27 +0100)
commita19f75de73c220b4496d2aefb7a605dd032f7c01
tree6ba137d69c8dc0b151f4038296860cc4d467ef71
parent72a4a87da8f7bcf868b338615a814b6542f277f3
Revert "i2c: core: support bus regulator controlling in adapter"

This largely reverts commit 5a7b95fb993ec399c8a685552aa6a8fc995c40bd. It
breaks suspend with AMD GPUs, and we couldn't incrementally fix it. So,
let's remove the code and go back to the drawing board. We keep the
header extension to not break drivers already populating the regulator.
We expect to re-add the code handling it soon.

Fixes: 5a7b95fb993e ("i2c: core: support bus regulator controlling in adapter")
Reported-by: "Tareque Md.Hanif" <tarequemd.hanif@yahoo.com>
Link: https://lore.kernel.org/r/1295184560.182511.1639075777725@mail.yahoo.com
Reported-by: Konstantin Kharlamov <hi-angel@yandex.ru>
Link: https://lore.kernel.org/r/7143a7147978f4104171072d9f5225d2ce355ec1.camel@yandex.ru
BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1850
Tested-by: "Tareque Md.Hanif" <tarequemd.hanif@yahoo.com>
Tested-by: Konstantin Kharlamov <hi-angel@yandex.ru>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Cc: <stable@vger.kernel.org> # 5.14+
drivers/i2c/i2c-core-base.c