drivers: serial: stm32: Don't block PM if pinctrl sleep state is absent

When dealing with pm action 'suspend', driver applies device pinctrl sleep
state.
Using PM_DEVICE modes should allow to save more current consumption, and
applying pinctrl sleep state is one of the gains, but sleep state not being
available on a device is not a sufficient reason to block PM transition
to lower power mode.
If this pin state is not provided for the device, warn but don't block
pm transition. This will save some time to users setting up this feature
for the first time. Warning will give the opportunity to users to fine
tune their setup in a later step.

(cherry picked from commit e89e4b529eb961f41e55e0fdeeee9217334bf6f7)

Original-Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
GitOrigin-RevId: e89e4b529eb961f41e55e0fdeeee9217334bf6f7
Change-Id: I7d2ac8a564784a0a83ed6b47b1df60a8f46bbbdc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/3829403
Tested-by: CopyBot Service Account <copybot.service@gmail.com>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
1 file changed