Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1388733ybk; Sat, 16 May 2020 09:43:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIiN7OiLbZAfLZcNhCkM6E2XMdu2hPAcpItqTgRAFnr32x/cT4hNkUzPiFtZzoGBI39CrW X-Received: by 2002:a17:906:17d1:: with SMTP id u17mr7388204eje.242.1589647423931; Sat, 16 May 2020 09:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589647423; cv=none; d=google.com; s=arc-20160816; b=Ey4WRUBeFiSUZsT3phc+a2EkTprY1C5UCT73RuYAw3v7WMpIe/Iei5UzSiBR5n56do pJT40wshZKe4heNK/NIsuc644k8+wASxtdRbfDEGAxz/dJjasQ86vCGMsMbr+ZPb/0IC PG5YmE1LTS7l8xC7pSFEEgoVB0pxyX+Il2o1niJGdr69gAFuGyx6bvpE78+OueTDOCel ItOdAPI1n4OGPE04eZTZAeoMNy8fDGA6IT+Dbt04z7qf7Zowxpe7uefvF3KuKAXqZ0xv 9h/fcHjf/p4Jyk3Wu6iz0FEkIPqfUuv4Y0qvJJosQN+iQB22ZBT10Z/+KuxLRaHgyQwo JwLQ== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=es9nL54eWtZHft09jub95D9GHT1PJmvu2Z8TIUZE1HE=; b=VasGWCy5eiOh4Ynzu2HBVyUceofHJrdkc3F3LOT2GeAc/+NSLVzjHIUVhwAD1tYsAG xg678b+B4fnnwoJ6R+ETy5wahQ0DXsG3zhdDQwly+pDTOAAlWIn0xtjCMh1heMHRmx3z hu84kzCCRwDZf6UlEtHdZXbNVsptnEF3hhyXG9+yE5EgvxlIBAirZCTZPs31V6StJJZt DOAz0EXibmT81D4S9fLwBfO9MHs8pEJup/pYYCtmyCcQNg6sNdDapg+hHK9kmOG7QEwX aC7BnZ8O0pxFQf7QJ9ck3LQtS63OU84TO13dUiOXbq3TlJJW1jqkDuAfulGehcAENZ/9 cH6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M1kduRrm; 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 m31si3255629ede.443.2020.05.16.09.43.08; Sat, 16 May 2020 09:43:43 -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=M1kduRrm; 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 S1726257AbgEPQnG (ORCPT + 99 others); Sat, 16 May 2020 12:43:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726226AbgEPQnG (ORCPT ); Sat, 16 May 2020 12:43:06 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A957C061A0C; Sat, 16 May 2020 09:43:06 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id j8so5953916iog.13; Sat, 16 May 2020 09:43:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=es9nL54eWtZHft09jub95D9GHT1PJmvu2Z8TIUZE1HE=; b=M1kduRrmNJ2LfBxzdNYtGyJIwFzAT8zQ07ft97xpD7bINmJeTahKoii+pK8MSBuefX jTNWAKUldm4hLlI4GQAox/u0GNKJg1Jy+PeFq9IcrjhZd9G1gtqJzJDdtYar8DmV+9X5 2JYcRhXv455Hp8H/VI9+SgmLsccCrRiTizqJmVU53PGnO7ghr2hyyy/eSERlASO6QYq4 AhiTJ25AR/74KnKmYpT05UZmPcrduy9yWJLEJMgYLw09yfoBz0adOZCl9kpW4PDVHXx7 SMQoJ51RzgphlHzkts7N9X0wVhnBeeN/KjjSJTbb69LFzZHet7JJxtlwYu2A/MENSg1u Nxvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=es9nL54eWtZHft09jub95D9GHT1PJmvu2Z8TIUZE1HE=; b=G39ej229Rbh/agbeGxMvo5taCRZMXmcriDlwRxc1k6hXgav1gvOvILt2A7rJ7vgA6O Gpn5QCn8PXi4c70WD9YOaEqPQnrj15IY6qiaMLHl+RKc2q4jPqjFzfOto2pdLEiVmPoy L2aC2UN56VJ1eIX9idEo77NJQS+rYkoA/kNqrSH03gjvsl/sB5thw6mCdMkubm7YBE2L Yz4CgEnBo2qNIU7bDKpIFj1c2HQxjMmRtSXn6N6z7fpAeJa8pl7PYxArsQDp33+f3Ea0 BpJf2WJAvmU672f+0SrTYwu75WTENmzLedKsQHNqop01D4n9onYrwl5yp1/NL4EXpp6/ a0nw== X-Gm-Message-State: AOAM533OCCGLOLw4xFsjuzGLOWGzSMATY5bkQQ6mgG7R6cQYVeh9sPk8 V48+l/DWAiKKprlHVldFQmD6/TQog6S2wUrAUY4= X-Received: by 2002:a5e:8717:: with SMTP id y23mr7822272ioj.172.1589647385473; Sat, 16 May 2020 09:43:05 -0700 (PDT) MIME-Version: 1.0 References: <20200516042303.6070-1-andrew.smirnov@gmail.com> In-Reply-To: <20200516042303.6070-1-andrew.smirnov@gmail.com> From: Chris Healy Date: Sat, 16 May 2020 09:42:51 -0700 Message-ID: Subject: Re: [PATCH] crypto: caam - make soc match data optional To: Andrey Smirnov Cc: linux-crypto@vger.kernel.org, =?UTF-8?Q?Horia_Geant=C4=83?= , Herbert Xu , Fabio Estevam , linux-imx@nxp.com, linux-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org With all four of Vybrid VF610, i.MX6q, i.MX6qp, and i.MX8M, this patch caused no regressions for me. Additionally, with the VF610 and a follow on devicetree patch, the CAAM is detected and works. Tested by: Chris Healy On Fri, May 15, 2020 at 9:23 PM Andrey Smirnov w= rote: > > 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=C4=83 > 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 =3D soc_device_match(caam_imx_soc_table); > caam_imx =3D (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 =3D init_clocks(dev, imx_soc_match->data); > if (ret) > return ret; > -- > 2.21.3