Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp12448289ybl; Sat, 28 Dec 2019 12:37:33 -0800 (PST) X-Google-Smtp-Source: APXvYqzkuDRevWJYMY3fJX2VY6fjfzcgrEoeyzO3mciAB0vGtl/OPq8AIDhLHbVpKXCSiiEqXnFc X-Received: by 2002:a9d:6441:: with SMTP id m1mr47576702otl.310.1577565453132; Sat, 28 Dec 2019 12:37:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577565453; cv=none; d=google.com; s=arc-20160816; b=lgPXHO9r80WFIJc7DJc3Q/iy/kahaW4vjgWcvN+YYA050ZKWqzJAcumjWLK1RxMng/ iHKI8wRqLAh0I+vIyBI33nTbk+74l2WMeNU6v3v4o9g4tilae2T5oGfydtWZMyx6tnHi gkhtCSZSkIzs897heiE+PFf09jGQEy/lLBPONW6AXJNGwXwKb49/RTmz/4ITJDM2DUeU jMqhgJGB1rOSn/+neMtMBpIAeE96FOyXAtx4OmUXe4Pkeiok3DfxIiVuY00/y5bqWOxO 37F/3TCHJ5Atn6iJobb528x+g9/ZqE+oDOEvRpUPoh8zAm5AJyG07mX3n/z28eaXNulW GMZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RdRgeWTtviiIWS4YZZN2UoUeCEyNPX48xbOaYwnMDFE=; b=gugzDsxt0+XsJgKgBqm4nSu/LFiH4JkUyUkKZX9Z+w8lgtFUEwQskI2oQfruHuXZow 6M9hq26pmzl/4gCFIhaZioINiBVIeRigZdxtBAG1UkWasCHQ7SvlcIAs1RmiNPGw6X4N zG76FeZ2pZb9NBNwczFzJGWrSwSFJZRbuJxaYKhK8jpcN1XUUNmJzu350Cg8cLgG/bow d7NvIvBX0Ubl06wAXI8AtCIPFI/EXHWcW7e7VnJlpsCnF1mBt/XHNucSJpx4osDT5frD Z6NtNITJdGpGDMvWQVc9vFCmb+lDIklN0gQQUQFzqSmMUfuBb/DCvjDMACHBCQijN8GM JbcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BQlgvp4+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id h20si4007464otn.253.2019.12.28.12.37.21; Sat, 28 Dec 2019 12:37:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BQlgvp4+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727178AbfL1Ug0 (ORCPT + 99 others); Sat, 28 Dec 2019 15:36:26 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:42922 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727033AbfL1UgO (ORCPT ); Sat, 28 Dec 2019 15:36:14 -0500 Received: by mail-lj1-f196.google.com with SMTP id y4so15515856ljj.9; Sat, 28 Dec 2019 12:36:12 -0800 (PST) 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=RdRgeWTtviiIWS4YZZN2UoUeCEyNPX48xbOaYwnMDFE=; b=BQlgvp4+h+4P6TeNq6CG7AvdJCeEk0tHNz+NYb5Tuapc06JzLccU16f31SIzcIFO+G Toz+8EzL8hyAMTsHESfGWgcssRgw1tHMfx/1+P/slf3tjTKVOx9O3zw4c0pvHdbxzwE9 k/rxMD11e1t7v0h99RG/7szgWP2e/1vlnLtq5PM5tz5flIWy1Jw4RNjYSXmTeOqP2y78 R0k5MTzqljN8R9w+VtArs9Cum0phF0acEm3b+OhKJuPBXdu+mjJooGTynUa+LHsVTg1x piStwSqHXGdrMr9L4ISV+Qgl3IpWgNL3WiDqtSpzrnxxvoB6Mo8uyDjQ/d3+1cs5RdW9 nj8w== 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=RdRgeWTtviiIWS4YZZN2UoUeCEyNPX48xbOaYwnMDFE=; b=ZrXSZIU64BCWNweAZowoGJPaIXRU63bvJvNJivBAEdp5PZ6aCZSCY+REzJv7i+7Qem N7PEX/KuMz2uNf0WfRR8z7Pv/X0x6s/JkDqIp/EwqtEcUGk1AVqWyVCTREROsYbQrQbq aRX3JGqA/Fpqko/HILZuQIWf9AY9qkM/kPiufvWkWCJoSKPOiW7o1L9ARwSKmb5wboBC fpSwkj8ooryzaFV62as0oBj+GzUwU+gvoMvLYEcxs52TCC1+RK5xAfgkNQgZXMPT7hb8 f4qzC7unYmPdKU5p7UMKgtAKHCwVPX9xnRAFt6o2qEIRKfoTmvQq61R77wyOSa1OQRam crTQ== X-Gm-Message-State: APjAAAWq71GrJlhKzHwpjTbO7tXu824/IqEN3J+g9WplwhbAlrkPADo3 G3mot/P0qKspXCF2ArnrvSG1wx2W X-Received: by 2002:a2e:8954:: with SMTP id b20mr16099016ljk.27.1577565371815; Sat, 28 Dec 2019 12:36:11 -0800 (PST) Received: from localhost.localdomain (79-139-233-37.dynamic.spd-mgts.ru. [79.139.233.37]) by smtp.gmail.com with ESMTPSA id d9sm15162614lja.73.2019.12.28.12.36.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Dec 2019 12:36:11 -0800 (PST) From: Dmitry Osipenko To: Rob Herring , Greg Kroah-Hartman , Peter Chen , Thierry Reding , Jonathan Hunter , Felipe Balbi Cc: devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 14/16] usb: chipidea: tegra: Stop managing PHY's power Date: Sat, 28 Dec 2019 23:33:56 +0300 Message-Id: <20191228203358.23490-15-digetx@gmail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191228203358.23490-1-digetx@gmail.com> References: <20191228203358.23490-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tegra's USB PHY driver now provides generic PHY init/shutdown callbacks and thus the custom PHY management could be removed from Tegra-specific part of the ChipIdea driver. Signed-off-by: Dmitry Osipenko --- drivers/usb/chipidea/ci_hdrc_tegra.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_tegra.c b/drivers/usb/chipidea/ci_hdrc_tegra.c index 0c9911d44ee5..7455df0ede49 100644 --- a/drivers/usb/chipidea/ci_hdrc_tegra.c +++ b/drivers/usb/chipidea/ci_hdrc_tegra.c @@ -83,13 +83,6 @@ static int tegra_udc_probe(struct platform_device *pdev) return err; } - /* - * Tegra's USB PHY driver doesn't implement optional phy_init() - * hook, so we have to power on UDC controller before ChipIdea - * driver initialization kicks in. - */ - usb_phy_set_suspend(udc->phy, 0); - /* setup and register ChipIdea HDRC device */ udc->data.name = "tegra-udc"; udc->data.flags = soc->flags; @@ -109,7 +102,6 @@ static int tegra_udc_probe(struct platform_device *pdev) return 0; fail_power_off: - usb_phy_set_suspend(udc->phy, 1); clk_disable_unprepare(udc->clk); return err; } @@ -119,7 +111,6 @@ static int tegra_udc_remove(struct platform_device *pdev) struct tegra_udc *udc = platform_get_drvdata(pdev); ci_hdrc_remove_device(udc->dev); - usb_phy_set_suspend(udc->phy, 1); clk_disable_unprepare(udc->clk); return 0; -- 2.24.0