Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp490813pxb; Thu, 21 Oct 2021 03:47:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzualvG0ecG9iP4RZx2cjOVXmisDK545ke8hGXujcaDNDsabSt4C81quU4nJpYbcy2A6/sH X-Received: by 2002:a63:fb18:: with SMTP id o24mr3831635pgh.8.1634813233754; Thu, 21 Oct 2021 03:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634813233; cv=none; d=google.com; s=arc-20160816; b=X9oHYCkgHJ0l09q6+WIgOFvv4ZbZjiyYVpfOiErFiGY4cLVfOglGqJZoBPO8noCpvW Nv4iQYyDdhEmS5vv5WCLYkQtCJG6+Gn+c/+StExFi517AJsN/k0lCqEv4m4DHF6dDmql 6IJfnAplFr6z/QUJFLoci7xeK6RZ8Rj5V7W2D8HL2ICzuyj2qzN1ZtTQThCmIHz+GfmF m5GlARDVZnwpmrkKkd/QbwrdthXkpoAZ40cG4w+GIYDZZexccO/tBNE/lsahn6FOA2R1 ysDS4mVAnNI9tMawXBw7MZlToBrjGS9082V7Z4rozHtOa+OtzZnh3E3/O5C6nuPkF8Td IHfQ== 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=vHQjQsVPMkAfMpNgEImoqJu9/PBzxFEgwyaIVTvFZto=; b=sDoF6g8hi74QkA4H5xus7XHdDhyRM9Da4eRFk1FcaiqzbUGdrp24ddLOvtW29yXnFF R4Oou9I1SXsr/L77HJy8Qcs+AEuFuxfjGzlvxZSQYKOAih7shvqBXEsJny0qG5csCG6V 0MIc0lB/KTpk/2Fe6emxpBqxJiC7bDhYMhkXX8DGrXI8r3yzBrzhEWE7am+CurkBhzHb eWW/lNUnckXOaYFVw3Wiw35du4ePDKIBhpMNHN2TZYQmkHy/Dx5u5XDGyFmhLZP/4gVl 85FuKu6eTm1yUb4Q3hdvF8MY2eUe/eJsU7A8H1cgL+S3ludenrL/6ZwyO7MdxuOaoR+i vOmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u7GLPKmU; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id om17si12592860pjb.113.2021.10.21.03.47.00; Thu, 21 Oct 2021 03:47:13 -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=@kernel.org header.s=k20201202 header.b=u7GLPKmU; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230502AbhJUKrx (ORCPT + 99 others); Thu, 21 Oct 2021 06:47:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:57776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230376AbhJUKrt (ORCPT ); Thu, 21 Oct 2021 06:47:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D2B2460F9E; Thu, 21 Oct 2021 10:45:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634813133; bh=1MK9BXA7JWARnl0O9y6KyH5YzDwUZkQB6sHYmBqTrdA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u7GLPKmUv3zdswlYOSlvmYa40RNIcOtr84teq9XxEE53NzvQf2HIipaM5mhYHqYpM Eh/i9uEuFKaCMqx+1/M8gstuWRX3yry5ho4pTubUNB3TvkB+RQocFMHloYsco0kE3J RJ9+f51wJWL0UXXwQ7L/OIg13bwwr7m1fGw8LU1kIM+hNPZ7EOUXUnA3KI9ncIh3zn G6EUtOhCUGH/HQBKRhlyN36T3rQvEy7MWFVYrvQJwQCOdpKh0vcmPWU8sMuKeN0R8C vLydU4uumpcjm93bi/ZZvjug/utCRYr26L/ApnIG9mPGLTIgClEUk1xpFSVE+TNDV8 nbI3C4yK9iacQ== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mdVZj-002z5K-6h; Thu, 21 Oct 2021 11:45:31 +0100 From: Mauro Carvalho Chehab To: Lorenzo Pieralisi Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Binghui Wang , Bjorn Helgaas , Rob Herring , Xiaowei Song , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v15 11/13] PCI: kirin: Disable clkreq during poweroff sequence Date: Thu, 21 Oct 2021 11:45:18 +0100 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The logic at kirin_pcie_gpio_request() enables some clkreq GPIO lines. Disable them during power-off. Acked-by: Xiaowei Song Signed-off-by: Mauro Carvalho Chehab --- To mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v15 00/13] at: https://lore.kernel.org/all/cover.1634812676.git.mchehab+huawei@kernel.org/ drivers/pci/controller/dwc/pcie-kirin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/controller/dwc/pcie-kirin.c b/drivers/pci/controller/dwc/pcie-kirin.c index f4ea27b37968..4c3fa02b7108 100644 --- a/drivers/pci/controller/dwc/pcie-kirin.c +++ b/drivers/pci/controller/dwc/pcie-kirin.c @@ -687,6 +687,9 @@ static int kirin_pcie_power_off(struct kirin_pcie *kirin_pcie) if (kirin_pcie->type == PCIE_KIRIN_INTERNAL_PHY) return hi3660_pcie_phy_power_off(kirin_pcie); + for (i = 0; i < kirin_pcie->n_gpio_clkreq; i++) + gpio_direction_output(kirin_pcie->gpio_id_clkreq[i], 1); + phy_power_off(kirin_pcie->phy); phy_exit(kirin_pcie->phy); -- 2.31.1