Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1184339pxv; Fri, 16 Jul 2021 03:40:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwn0O0/37zGXTmPifGJOns+zQLWLTULT/rVHUU9FygdbFmn9YC33ovFnikPjeYY1HG4OsBs X-Received: by 2002:a05:6e02:cf:: with SMTP id r15mr6049061ilq.58.1626432051317; Fri, 16 Jul 2021 03:40:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626432051; cv=none; d=google.com; s=arc-20160816; b=lraO/YEZkGmbeVJ2uSrG0/00mbc5mZNVjc2gXz0LQutSuTOPsrEqf0A5UdAuGGZSor fOdGv0UYL/2sDEw+rFyyI3jNgHlnuk/HWkXcrAkseNm98pzQG2bMa21E6ZUt4IgladTk +9eqnFJiU0aueXxowI7J7cKTreFOWxJK/duuIR2/vxgr4EEMJPft+nBcwopHprO+MdUe IEECuvJO75qT0puM6twwQdNi1vBHL6Rps750RSoUKRa+PD7xJXPsydqORXH8INKPANiP 1q9inNNGQQLia8BpS9cAP1PpQarlHuEdTtqRjg8l8pravVcxS7ircjkcE9oyKEaATOFI dqpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ijibuOn1o/zyXxVK7//BA8fe5lpTivScoHePVnxddFU=; b=wZP4qMnbFUg2NufOHZsMxuJfIiwHPVcv1LkSL+QoNBsl0s0vz/t5VPO2ent0xmHJ0z vaKuEkgfuQiCAa69gGSvEUl170VFfnZdf50uNlkx75N8Vqu5oT5R4v2HqDAnRMS1I91W 4+Mf68kZC5oowlDS9h9z2vpD942gdJV98crd0ztGpCbqRMWftbs49Fspc35+2mDUO5b2 EUXUsgH39JCGUy4G0oBJBR6QR7mVccuSGa/81hmhegFzyivzEdPQTxFG/q4LY/DGcZZ4 NxPRYPMPGOEf4nYegfIvkJ7+N6i/xPD9gEA+8E/Z7je2GIMvppco/96gAeZXOwJeIE97 smnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qf9SOx6Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si9063995ilv.18.2021.07.16.03.40.38; Fri, 16 Jul 2021 03:40:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qf9SOx6Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239305AbhGPKlS (ORCPT + 99 others); Fri, 16 Jul 2021 06:41:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237344AbhGPKlR (ORCPT ); Fri, 16 Jul 2021 06:41:17 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63FBDC06175F; Fri, 16 Jul 2021 03:38:22 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id b12so8580231pfv.6; Fri, 16 Jul 2021 03:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ijibuOn1o/zyXxVK7//BA8fe5lpTivScoHePVnxddFU=; b=Qf9SOx6QD4X/slJCbBN3lWyDjpm8rnJYlFnSC/XJk+r2LL92hc6zo+WOtnP91fFVP9 tBS4WjcJvji4dkub0v6NU6k/wBh9Cz1PvNCFuH0oHzKURPH9YDtjlVPtskhmeYbMTej1 WuohWqOG/YtBzDZ3TZqFHj7G8FRZ23T682i3tQ3v1OCnl/E2ttkFVxvaipcM16pADatb dvdawIST8n+R8jieSnYb0y9oCqZUgwthwXXuEQnnF9nKqtfeSWdihPHE815Dfmrn8Pnv noafRwT/Ncmk3Ct4XeXxNL+ONmErwWKEEqs4a/TxDBib2LoSjDIWnCG4pRXMRbPWJVFU QDpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ijibuOn1o/zyXxVK7//BA8fe5lpTivScoHePVnxddFU=; b=soAC5wqo70dtM+nNzmelH9fw/ZtwObsY0zjtFEUTilT+S11j98MaLK+xkMpf3unyYd jua8t6qEpzdV2eGLYgBUO3xbTKhJAm2g3rdQioTa/lTnu/+9/0s/xjy9GQFUKg2SR77c ZXkODjzyRbfew2deBH7TekyHCwyC+682qd5QwpjqDtAbfOIs1DvcSyosOpip1wHyRq/9 7xx4H+zKBb4W4k0vYBt0fmExJQrRAQLa9osGI3+hN0Du1ytDU7oosUON7XlRPUR0mlQv zNqBMb/Ws3kCvQ8IY5sfIjEJOqamu86/Vgcvu7gndR2EjLlLjaatENRj1QMe5TPEiA6S Nz9Q== X-Gm-Message-State: AOAM533z+/BXjsL/x+Qj2KSUqB0G4fIJFcv09soVEIwWTl/Ohwp22JXL bLC9KTGB8RKux++fv/rTuVs= X-Received: by 2002:a05:6a00:7d7:b029:32c:b12a:d65d with SMTP id n23-20020a056a0007d7b029032cb12ad65dmr9602132pfu.44.1626431902028; Fri, 16 Jul 2021 03:38:22 -0700 (PDT) Received: from archl-c2lm.. ([103.51.72.31]) by smtp.gmail.com with ESMTPSA id d29sm10070111pfq.193.2021.07.16.03.38.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jul 2021 03:38:21 -0700 (PDT) From: Anand Moon To: linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Anand Moon , Matt Corallo , Martin Blumenstingl , Rob Herring , Neil Armstrong , Kevin Hilman , Jerome Brunet , Kishon Vijay Abraham I , Vinod Koul , Emiliano Ingrassia , Brian Kim , devicetree@vger.kernel.org Subject: [PATCHv2 3/4] phy: amlogic: meson8b-usb2: Power off the PHY by putting it into reset mode Date: Fri, 16 Jul 2021 10:36:35 +0000 Message-Id: <20210716103651.1455-4-linux.amoon@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210716103651.1455-1-linux.amoon@gmail.com> References: <20210716103651.1455-1-linux.amoon@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Power off the PHY by putting it into reset mode. Cc: Martin Blumenstingl Acked-by: Martin Blumenstingl Signed-off-by: Anand Moon --- None: Added Martin's Ack --- drivers/phy/amlogic/phy-meson8b-usb2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/phy/amlogic/phy-meson8b-usb2.c b/drivers/phy/amlogic/phy-meson8b-usb2.c index 03c061dd5f0d..2aad45c55494 100644 --- a/drivers/phy/amlogic/phy-meson8b-usb2.c +++ b/drivers/phy/amlogic/phy-meson8b-usb2.c @@ -219,6 +219,10 @@ static int phy_meson8b_usb2_power_off(struct phy *phy) clk_disable_unprepare(priv->clk_usb); clk_disable_unprepare(priv->clk_usb_general); + /* power off the PHY by putting it into reset mode */ + regmap_update_bits(priv->regmap, REG_CTRL, REG_CTRL_POWER_ON_RESET, + REG_CTRL_POWER_ON_RESET); + return 0; } -- 2.32.0