Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 88AEBEB64D9 for ; Sun, 2 Jul 2023 12:41:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E42F886261; Sun, 2 Jul 2023 14:41:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kwiboo.se header.i=@kwiboo.se header.b="ZUQSV4Rc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7928086202; Sun, 2 Jul 2023 14:41:18 +0200 (CEST) Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C30B486202 for ; Sun, 2 Jul 2023 14:41:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:mime-version:to:cc:content-transfer-encoding: content-type:cc:content-type:from:subject:to; s=s1; bh=CTgpWj4ExGKk0JS15hBDsXqTMzNLOrwHt3pYMuryu8E=; b=ZUQSV4Rcq02LupY+wb2qDc6btBmdUG3uyOY1ImofNw0loqhjeb0UUSr/h+AbabXVTqP0 k7cvbyhPVcnIlPWt7eL/b7kx/Z0/liWCx/fcb7bgYW2Lr5FAmSKftqJolVhR8qbX2Q4thd NSWZl0XamFnDMtj3R77bZ4XwT245OS+JXs8yIRBGIM9Ljbj+NyCyTJwcsPSDUrI5gTS+bn 4H1uc7MSOTZHRjsrYe3Bnfgp5doWQuw37Z64Q3QsjDA8WX87Toe3d/iOOU0HKcgKcNvdLs ZKIumVlxMSnGT3L3wb/87yLzdobO+IKDnIjgjQ9ducn7QpXHxoNpw2z82JcwRTYQ== Received: by filterdrecv-84b96456cb-24m7s with SMTP id filterdrecv-84b96456cb-24m7s-1-64A17069-17 2023-07-02 12:41:13.542598912 +0000 UTC m=+4539741.775300278 Received: from bionic.localdomain (unknown) by geopod-ismtpd-canary-0 (SG) with ESMTP id boNrHB_RRvWHtd0fRjPpFw Sun, 02 Jul 2023 12:41:12.934 +0000 (UTC) From: Jonas Karlman Subject: [PATCH 0/2] power: regulator: rk8xx: Add 500us delay after LDO regulator is enabled Date: Sun, 02 Jul 2023 12:41:13 +0000 (UTC) Message-ID: <20230702124110.3709566-1-jonas@kwiboo.se> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0hyYScmfIggdCRsRUl?= =?us-ascii?Q?AH5hQ5xTR8qhZT7uHS+Y2tnxkonvm5zbprW0OoY?= =?us-ascii?Q?kZ7FZ3nSzMeX4bMmghKsyt6HxzjEIhwEwGDpF4v?= =?us-ascii?Q?e0aPXYO3mI7adRMxOijQvdosxU3za6bdqYLg7TE?= =?us-ascii?Q?swh51AfE+4aeEQ68PIQJlMhHbKrtyxb9iHmyB1?= To: Kever Yang , Elaine Zhang Cc: Jaehoon Chung , Peng Fan , u-boot@lists.denx.de, Jonas Karlman X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean With the series "regulator: implement basic reference counter" [1], keeping regulator enablement in balance become more important. A quick power cycle of a LDO regulator during dw-mmc signal voltage change, see patch 1, has shown that SD-card does not always get recognized after the vqmmc-supply is re-enabled. Patch 2 fix this issue by applying a similar 400us enable_time delay the linux driver use. Patch 1 is marked as DO NOT MERGE because it may have unintended affects like this and should be considered together with the "regulator: implement basic reference counter" series. [1] https://patchwork.ozlabs.org/project/uboot/list/?series=351536 Jonas Karlman (2): DO NOT MERGE: mmc: dw_mmc: Keep vqmmc-supply enable count in balance power: regulator: rk8xx: Add 500us delay after LDO regulator is enabled drivers/mmc/dw_mmc.c | 4 ++++ drivers/power/regulator/rk8xx.c | 4 ++++ 2 files changed, 8 insertions(+) -- 2.41.0