Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1014087ybk; Fri, 15 May 2020 21:23:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+OVmqURRxb/2y8A5HCdxjgDurvntlDysNv1WFFIgcsciIOqk64ZBRdF4QZRkTw2TfZ2Ea X-Received: by 2002:a50:b961:: with SMTP id m88mr5722496ede.4.1589603033877; Fri, 15 May 2020 21:23:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589603033; cv=none; d=google.com; s=arc-20160816; b=KtedJqsVCVF0mLKtV7VbSPA3auH6NSkGDI4QyqyU9txAI5Zk03psOXWXx9Z1DxrvO8 JGhm9L59wcIw30GCcsitgMBC7FlAzaSnG3vgX/5a+rvmqzo2qVyT5yDi6vQnGFNG0Lp6 wfp9thhLYCBKl+/CX350l4XtDAqMe1mZR/Xogrjeba1lR4cMgrZ2awUHawf7GmjP+wCI ySOLpas8QBXSaRipgO+eNhkD9dD0mBt0Zo9Aoqd5wuZnYU3r1xSZAMWglNvrlcLMu24y H/Dx7asAVGuv5arzhPEWl5GrsAf+d/gxCIbQbYagWlwwgWVAy2deEQ20wPBMCjcjAkgn K27w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=OEbwsoaIcCQ4y8nX9CNRFLXSvzUNmbajCyzAAZz+JCQ=; b=EWmImfgTkmln91jyrTGEHD0zkVUQuQWLJKmrp3SaSSWDBWaq+7yjz2R0AVyE8cxJud xw6xq5X2xLzHer2jQ/ya5sw3lOeAyY2KnLNpSYJ8Uy0gj0oXbqbMRDNwFRNFhtEZuyTT jGOTIkA30rS1QENrRnGZ43ig9F9Vdu+6MrJJUAmOxqmjVKhxfiHokDkzMJLF2pFOgY8Y xk8WRvDk783ZzAmedQx/Yraip23n/3MY6SfGlu82XDOxS2tmPpNaWtmnefuzT0KzU/x+ m+exKCzIQlD7GN9kVGiyckfjdjSm0RFEL6X1D3p3b6ItzuWK2jSPqox4gay2ufl4iuy3 XK6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pQwc7OQZ; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 g2si1493235edf.29.2020.05.15.21.23.15; Fri, 15 May 2020 21:23:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=pQwc7OQZ; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 S1725797AbgEPEXO (ORCPT + 99 others); Sat, 16 May 2020 00:23:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725275AbgEPEXN (ORCPT ); Sat, 16 May 2020 00:23:13 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A9A0C061A0C; Fri, 15 May 2020 21:23:12 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id t16so1752047plo.7; Fri, 15 May 2020 21:23:12 -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:mime-version :content-transfer-encoding; bh=OEbwsoaIcCQ4y8nX9CNRFLXSvzUNmbajCyzAAZz+JCQ=; b=pQwc7OQZ3rtpfftGLFLVGY4y3q033b7NvjPTHqTWGp38v5/q+pSlYTxQ+94qxbdP5b Zd70wtp902/pB3pzBoWRiPty2nvL7PCf8tiLh4pUhdav2+ELgKksaRc5v3dr8GggRrsj 1RF3XFvOhQfAiCvyydbYIbqv+gJBwpL7YspXlUirnbR3gQ/qSA801ZBE78iXr6MDqMqY 6nRJSUqFJm7iVGEz7geJmTmYpZuWfpQIIUaqiH4HK9a8LLX/F4jNBb1zmbV0Ctq+Ip1D zdnFxprUWamkRp/43Aof9bRkdeyiWtsb5NfjcHywsNH1diI+rt6GSwQEtIzKBsMveh0O QFMA== 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:mime-version :content-transfer-encoding; bh=OEbwsoaIcCQ4y8nX9CNRFLXSvzUNmbajCyzAAZz+JCQ=; b=ktBECvp/740AQNl+aeWKMHXU0tg7ltcWFaZ+uG4L3vVGe7bxHaIpCbPfrx56pTc3qN kgOz1rzub4Bt4ELAalV4PBuugiK6aGyoMjyGdsW0sN09Jd821Asb7wX/C9FAkLTZdJ3T vCT4/26jX06MBnffMpwilOS2NuowaN3HRFcDeTyTiLEKDtzyPPkF+dB0JhkA4aQ6mFM5 Q6wnXJZ/zra5/Ea2Bel/sFC4pNi43zJ6kGYmfN+BwB/OZhyk+2ZNLuHd0LpLPYHvS0PB kkWTeKJe6YoEb3zknEQoUI+OnrnwDpcidei/R4ziFDW7l+Ss3njCk2TMwAYHpffX3Y2g FXxg== X-Gm-Message-State: AOAM533v4wjFyEbf4Rpu8Bly8ixs6f2OGCafuL87W+5MVeWnVaSvR00N xLEBa4VF8tpEddOaxsdkZblTfmA3 X-Received: by 2002:a17:902:bd87:: with SMTP id q7mr6582092pls.92.1589602991273; Fri, 15 May 2020 21:23:11 -0700 (PDT) Received: from squirtle.lan (c-67-165-113-11.hsd1.wa.comcast.net. [67.165.113.11]) by smtp.gmail.com with ESMTPSA id 196sm2862590pfx.105.2020.05.15.21.23.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2020 21:23:10 -0700 (PDT) From: Andrey Smirnov To: linux-crypto@vger.kernel.org Cc: Andrey Smirnov , Chris Healy , =?UTF-8?q?Horia=20Geant=C4=83?= , Herbert Xu , Fabio Estevam , linux-imx@nxp.com, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: caam - make soc match data optional Date: Fri, 15 May 2020 21:23:03 -0700 Message-Id: <20200516042303.6070-1-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Vyrbrid devices don't have any clock that need to be taken care of, so make clock data optional on i.MX. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Horia Geantă Cc: Herbert Xu Cc: Fabio Estevam Cc: linux-imx@nxp.com Cc: linux-crypto@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/crypto/caam/ctrl.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index 4fcdd262e581..6aba430793cc 100644 --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c @@ -630,12 +630,7 @@ static int caam_probe(struct platform_device *pdev) imx_soc_match = soc_device_match(caam_imx_soc_table); caam_imx = (bool)imx_soc_match; - if (imx_soc_match) { - if (!imx_soc_match->data) { - dev_err(dev, "No clock data provided for i.MX SoC"); - return -EINVAL; - } - + if (imx_soc_match && imx_soc_match->data) { ret = init_clocks(dev, imx_soc_match->data); if (ret) return ret; -- 2.21.3