From patchwork Thu Jul 1 02:23:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 12353485 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DE42C11F6B for ; Thu, 1 Jul 2021 02:24:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7DE99613D9 for ; Thu, 1 Jul 2021 02:24:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238677AbhGAC1X (ORCPT ); Wed, 30 Jun 2021 22:27:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238624AbhGAC1S (ORCPT ); Wed, 30 Jun 2021 22:27:18 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4612AC0617AD; Wed, 30 Jun 2021 19:24:48 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id u20so6115307ljo.12; Wed, 30 Jun 2021 19:24:48 -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=RCwohtIz3sCtyYyXBVentwmefpHY5XVxUVHIc+3K8pk=; b=XxV2PXccub5gL4UFzOEf2lkunHDZ6JDQIsv3Pkr16ah73RBm7xcGYlqWEolys4Ur+r 3tkygAmQYHm+q3gdEMA1GrL7qb7Tjrz8jupGkjQDhPIv5lqWZ1qIaVhwCzNbLeHVjj7u AFxRblkyWF6IYcT446qkn4INxKWeqJBcccZCppYkka6l4qRdbuA7Kf9bx414LlK7elB7 dcXySBbrzNaOFCLFlqWZTweNHtgMqjDsvpEs1b5dJlspMqUkHN3/d+ilqcd+d+fJwB3J IpsK1ZNI3jpOF3+QYzoPDNMbZnH1kW844FlAb5CbFD8ufqKfxQkfaCd5u/xDerBT7Gg4 zR/g== 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=RCwohtIz3sCtyYyXBVentwmefpHY5XVxUVHIc+3K8pk=; b=tIXyyCcASkC/SYoibNhB+c37Vx08yDcDiLQS7vthfnyIX7Fd60bPIzIrNDfbYvrueg EMnrXhweo+EIr401AxbFzTtX6gefIdqqVyjj99no56y7+SANiH2zZZoQU4X58B2ZYjIb Llab23CC9xmS+fFRVBA6eDkLcJhY/4h2f6jyLa2ZnQogHVv3eUSwR52EPZ+Hrxhhgbqe V+4J3QioUcIMMJ06keDhyk9MNc5uq+MHG/uhZq2Fg+3hkJWPqPgPaxyA0yB9RCzkhrD0 ZhDIG6OTDFha3PHwFAA/AtDzSr1UMsDeTeO1EHvDfAvUmCnXcXlc25OJ5gmyR7gWVXse 6+OQ== X-Gm-Message-State: AOAM532H99JMaHWkqLux5ucHkSZuyGUTn1JiFXB1GMXIEOiRwe1KJHLh YaVgBR7S3iWyuyZQsgr9kBI= X-Google-Smtp-Source: ABdhPJyMARDiyQ+EZ9AIx/bYIcUlMrTrOT7a1tX7E9FK7PHW8cPpFgduAmN2JM1n/Pjyuh6AKkUB6g== X-Received: by 2002:a2e:502:: with SMTP id 2mr10228083ljf.36.1625106286623; Wed, 30 Jun 2021 19:24:46 -0700 (PDT) Received: from localhost.localdomain (94-29-37-113.dynamic.spd-mgts.ru. [94.29.37.113]) by smtp.gmail.com with ESMTPSA id v7sm2407262ljn.14.2021.06.30.19.24.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 19:24:46 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Mark Brown , Rob Herring , Sebastian Reichel , Peter Chen , Greg Kroah-Hartman , Felipe Balbi , David Heidelberg Cc: devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v1 03/12] soc/tegra: pmc: Expose USB regmap to all SoCs Date: Thu, 1 Jul 2021 05:23:56 +0300 Message-Id: <20210701022405.10817-4-digetx@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210701022405.10817-1-digetx@gmail.com> References: <20210701022405.10817-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org All Tegra SoCs prior to Tegra186 have USB power controls within the Power Management controller. These controls need to be configured by USB driver. Expose the regmap to these SoCs. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/pmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c index b5a924baef4e..f8fcfc9750f9 100644 --- a/drivers/soc/tegra/pmc.c +++ b/drivers/soc/tegra/pmc.c @@ -3212,7 +3212,7 @@ static const struct tegra_pmc_soc tegra20_pmc_soc = { .pmc_clks_data = NULL, .num_pmc_clks = 0, .has_blink_output = true, - .has_usb_sleepwalk = false, + .has_usb_sleepwalk = true, }; static const char * const tegra30_powergates[] = { @@ -3273,7 +3273,7 @@ static const struct tegra_pmc_soc tegra30_pmc_soc = { .pmc_clks_data = tegra_pmc_clks_data, .num_pmc_clks = ARRAY_SIZE(tegra_pmc_clks_data), .has_blink_output = true, - .has_usb_sleepwalk = false, + .has_usb_sleepwalk = true, }; static const char * const tegra114_powergates[] = { @@ -3330,7 +3330,7 @@ static const struct tegra_pmc_soc tegra114_pmc_soc = { .pmc_clks_data = tegra_pmc_clks_data, .num_pmc_clks = ARRAY_SIZE(tegra_pmc_clks_data), .has_blink_output = true, - .has_usb_sleepwalk = false, + .has_usb_sleepwalk = true, }; static const char * const tegra124_powergates[] = {