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

When dealing with pm action 'suspend', driver applies device pinctrl sleep
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 <>
GitOrigin-RevId: e89e4b529eb961f41e55e0fdeeee9217334bf6f7
Change-Id: I7d2ac8a564784a0a83ed6b47b1df60a8f46bbbdc
Tested-by: CopyBot Service Account <>
Commit-Queue: Jack Rosenthal <>
Reviewed-by: Jack Rosenthal <>
1 file changed