Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1504921pxb; Fri, 6 Nov 2020 11:19:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzx4K9zy0I4v6Nh41sKpIpUVASV0gABOectblH8DTjk3Urk/2+MpgNtuS5Kr6ZaeGl9qCJO X-Received: by 2002:a17:906:b0f:: with SMTP id u15mr3499387ejg.109.1604690394449; Fri, 06 Nov 2020 11:19:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604690394; cv=none; d=google.com; s=arc-20160816; b=n5zP0E/+DbcJ7VX1qvJE1gfnmyDbL1CzpRZ8E5PivTGw+9LPTqQU/mNWfzkFweF/6g G+jR/LCwdETokAxxVKRZ6w3BT05kp3Dv7dD8RdtZn/1m7v3qySKOapmcq6CUc6lMKW5o bF/Hobpi26PCymiWno2A5XaxYAbWw3CPbvLKf+fDkEq3iQ5Q9NJHQ9vv7tOViJwYIY7D 9ykK8el/pIBm4jdRV6ej4N6NnQ6Tx6dkbthQYOw2Alzm2npMwIt6eXEAHABq3/HghrhV FZhPreckuFyNJ5rX+iInTTtCLQw/gvgJAzqdNh+a43QVQ53D8K0LkRrcPFN00jm+3YxM HJqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=yTSBMnvTUdNU/En2dMzfLQm1xdFO1GNYopwkwqFqkPU=; b=lKLnQoCEgl92U7kFmgjuQs1lfJ7kbYZ78AMd1SehO/XhYVnKEOWgBS2mkNPlyczi+j O3DuhN2sj7AK87fUtRWjnq5/ZYHdcYpNTinogF0MTqLr1ULPwAS1dOGHajfb9DrZNVpB eEA4KSrvhM0Fzy1pDQd7D2gWM/KGKGcF4hxlRVUfsMhb2643rCqIdua77kNlD3Yh8TUP QVsPVYC7KztWHXuXKzFi9YXV6uoBj7zjGvXeX7MpVeAwQ1s7QupYtW8vx8eywjoDjNEd eH936m066Ik8rX0MCWEJojcREHFM5JkyKDFBNwNq46Y8K6maHpEd5e2/mEIMWOkKcY3F rliA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=aL7zLPcN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 21si1644584edx.390.2020.11.06.11.19.31; Fri, 06 Nov 2020 11:19:54 -0800 (PST) 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=@broadcom.com header.s=google header.b=aL7zLPcN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728171AbgKFTRw (ORCPT + 99 others); Fri, 6 Nov 2020 14:17:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728001AbgKFTRv (ORCPT ); Fri, 6 Nov 2020 14:17:51 -0500 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E41ECC0613CF for ; Fri, 6 Nov 2020 11:17:50 -0800 (PST) Received: by mail-pl1-x642.google.com with SMTP id z1so1091654plo.12 for ; Fri, 06 Nov 2020 11:17:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yTSBMnvTUdNU/En2dMzfLQm1xdFO1GNYopwkwqFqkPU=; b=aL7zLPcNNpSFKIvIBZhHTLgcEIEdWXyOzB0mMtlzgnZa/SP9wTyXsWv/WP//Nvv4Z9 xAAvSAwr5EuAa7KT9wU1lcYPKuAs7VqyH8PMzzedLtOuIBRU7yyZdC2lv0ZLb31CCbtm bQsSdlJAIDdQHk4WzBZBb73KRBiUfFgx1qF4w= 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; bh=yTSBMnvTUdNU/En2dMzfLQm1xdFO1GNYopwkwqFqkPU=; b=ExJ+EyhErTarlXsq7CAra/bpzxw+3E3Fi1dfgTNC3zUl1GAeC9QAwubMR3dbwkfGhD JGX+kOQ2VeKfk3P1NMcE10U7rrzPt5z15y8BoHv2+iZKwL9945gzFITfxdwHcxXTk7md PI0M+DrpNzF7hb3F8uzkC50YP1Njw15+ZY8QeXEaDVRwOaJcBjpLMTD0eCmqejXE3Wt7 ZCgGuXwgc6QgG3PIclh43f4rVyvWDN7cag6cRilt/shd/q516QJU7e+HPpBzZSWxWkIj jWalG3cjOUmutNBfoQCINObFByiG9Q7oJzhaqzUqYo9coZi2MM8Hj1Mt8F7bGj7/YB1y Ukwg== X-Gm-Message-State: AOAM532qwaDKPZypEejnk1RbWs7YP8LVLBYvrgZ9XuthEFXyjfxuknxw GhbbN/IZaybeL11EJU6Ig03h+w== X-Received: by 2002:a17:902:748a:b029:d6:9d17:44f3 with SMTP id h10-20020a170902748ab02900d69d1744f3mr2977960pll.45.1604690270429; Fri, 06 Nov 2020 11:17:50 -0800 (PST) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id m3sm3302207pjv.52.2020.11.06.11.17.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 11:17:49 -0800 (PST) From: Jim Quinlan To: Philipp Zabel , Hans de Goede , Jens Axboe , bcm-kernel-feedback-list@broadcom.com, james.quinlan@broadcom.com Cc: Florian Fainelli , linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2 1/2] reset: brcmstb rescal: implement {de}assert() instead of reset() Date: Fri, 6 Nov 2020 14:17:42 -0500 Message-Id: <20201106191743.40457-2-james.quinlan@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201106191743.40457-1-james.quinlan@broadcom.com> References: <20201106191743.40457-1-james.quinlan@broadcom.com> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000008fb27505b3751152" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0000000000008fb27505b3751152 Before, only control_reset() was implemented. However, the reset core only invokes control_reset() once in its lifetime. Because we need it to invoke control_reset() again after resume out of S2 or S3, we have switched to putting the reset functionality into the control_deassert() method and having an empty control_assert() method. Signed-off-by: Jim Quinlan --- drivers/reset/reset-brcmstb-rescal.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/reset/reset-brcmstb-rescal.c b/drivers/reset/reset-brcmstb-rescal.c index b6f074d6a65f..1f54ae4f91fe 100644 --- a/drivers/reset/reset-brcmstb-rescal.c +++ b/drivers/reset/reset-brcmstb-rescal.c @@ -20,8 +20,8 @@ struct brcm_rescal_reset { struct reset_controller_dev rcdev; }; -static int brcm_rescal_reset_set(struct reset_controller_dev *rcdev, - unsigned long id) +static int brcm_rescal_reset_deassert(struct reset_controller_dev *rcdev, + unsigned long id) { struct brcm_rescal_reset *data = container_of(rcdev, struct brcm_rescal_reset, rcdev); @@ -52,6 +52,12 @@ static int brcm_rescal_reset_set(struct reset_controller_dev *rcdev, return 0; } +static int brcm_rescal_reset_assert(struct reset_controller_dev *rcdev, + unsigned long id) +{ + return 0; +} + static int brcm_rescal_reset_xlate(struct reset_controller_dev *rcdev, const struct of_phandle_args *reset_spec) { @@ -60,7 +66,8 @@ static int brcm_rescal_reset_xlate(struct reset_controller_dev *rcdev, } static const struct reset_control_ops brcm_rescal_reset_ops = { - .reset = brcm_rescal_reset_set, + .deassert = brcm_rescal_reset_deassert, + .assert = brcm_rescal_reset_assert, }; static int brcm_rescal_reset_probe(struct platform_device *pdev) -- 2.17.1 --0000000000008fb27505b3751152 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQQwYJKoZIhvcNAQcCoIIQNDCCEDACAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg2YMIIE6DCCA9CgAwIBAgIOSBtqCRO9gCTKXSLwFPMwDQYJKoZIhvcNAQELBQAwTDEgMB4GA1UE CxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMT Ckdsb2JhbFNpZ24wHhcNMTYwNjE1MDAwMDAwWhcNMjQwNjE1MDAwMDAwWjBdMQswCQYDVQQGEwJC RTEZMBcGA1UEChMQR2xvYmFsU2lnbiBudi1zYTEzMDEGA1UEAxMqR2xvYmFsU2lnbiBQZXJzb25h bFNpZ24gMiBDQSAtIFNIQTI1NiAtIEczMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA tpZok2X9LAHsYqMNVL+Ly6RDkaKar7GD8rVtb9nw6tzPFnvXGeOEA4X5xh9wjx9sScVpGR5wkTg1 fgJIXTlrGESmaqXIdPRd9YQ+Yx9xRIIIPu3Jp/bpbiZBKYDJSbr/2Xago7sb9nnfSyjTSnucUcIP ZVChn6hKneVGBI2DT9yyyD3PmCEJmEzA8Y96qT83JmVH2GaPSSbCw0C+Zj1s/zqtKUbwE5zh8uuZ p4vC019QbaIOb8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