Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1615339rdb; Mon, 2 Oct 2023 15:40:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFFXnsrrskQAThY/ZkXlyLvxgUrdxcEATqYy+A8A7/PBoa6xNVYgQ0/1h2pjJ+Bt+iC7rWY X-Received: by 2002:a05:6358:9992:b0:133:595:1c with SMTP id j18-20020a056358999200b001330595001cmr10648802rwb.31.1696286431520; Mon, 02 Oct 2023 15:40:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696286431; cv=none; d=google.com; s=arc-20160816; b=JWagF2f+ePAbwqYCynQXZ2VMmPvAErlMDrp9rthCzWggfjgIAFf52sZxod8lcTuYvK gs34kjOAhdMP0pac0e1dx+z2Krs1izkCS7wBp1uJ1LLrIzzDll6mPfsvC4GGjbuoXewi 2QQz9/9RwNPd2aK+TRLRagyGanGzPhEFECNdPczW73EgVJaDClHvN+wShPBWAh/rDzxT Hu/umuBylQ4deuKOL7aGditqvg24oDAPTr9vDX7VtsSKFXuIh7ea2cZyxOCWQ58tJn18 gCDMDWNMuRMEWy98oxCtIyGkZUt9JghhkLnniP/bhz8p78GYSi1jJfql/YRisVegUTXY dUmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=jfENVpQuZdv1PgXfltbR7B/XTb+JunRgWdUE5rSAEv0=; fh=bgMwE4yt8W6rm5l6yr8AM9Icfd3qkP+LfFpGax82O/k=; b=Js4bRcehIHRZAwv5sVX+r0l7Umbmg9LFgFIKY0vEHY1mbFj6GF0jqYy1lTKu1GJnZm rCcQfvS4O2RX7fcp8S892eTOG6np3CKjL9Z4O5zUtq3X3Q5fheGAE7/UfjPYUQ6Cqn8j dCbdnl5nB1tysl6KHYbwjERfY7c4CIr1nmRiAmBzHgAipwiBiF9D/YAA7MpG5lXH9Vry P3QnP9MGYzJ7QzAQ/eapyKPu9GZqvhgiQV2ZDs2uyt6gR/ooxdCtrxDM60rHyT1e8088 u8s5BOO3t/N15bSQTINo+pQfuUvR0GtXPUVVameu5jxndRvDOFVDFybK10/XHpgVAzTh SjLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cp84VvZV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id bz41-20020a056a02062900b00578cbee11easi11276262pgb.9.2023.10.02.15.40.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 15:40:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cp84VvZV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 423DB80A432F; Mon, 2 Oct 2023 11:22:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237928AbjJBSWJ (ORCPT + 99 others); Mon, 2 Oct 2023 14:22:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbjJBSWI (ORCPT ); Mon, 2 Oct 2023 14:22:08 -0400 Received: from mail-oo1-xc32.google.com (mail-oo1-xc32.google.com [IPv6:2607:f8b0:4864:20::c32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18AACAB; Mon, 2 Oct 2023 11:22:05 -0700 (PDT) Received: by mail-oo1-xc32.google.com with SMTP id 006d021491bc7-57e40f0189aso26179eaf.1; Mon, 02 Oct 2023 11:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696270924; x=1696875724; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=jfENVpQuZdv1PgXfltbR7B/XTb+JunRgWdUE5rSAEv0=; b=cp84VvZVpK+OWorzyB+1nvLycbuGqyGLH+7a9wSCxz5piVk2fn0EXVYBWH1bDTKUzG WyQJyO45VJr2v6pHjvNaCgRZ50b2jt0NdanhJg4irIAxVVS5yJIkcv+WOG21IjEBzAbI KERJ23hsx+SasG+nE/GA878CjZnyylZse3WbSNQacdKmdbgL8WjpQyuk8gjeTftdb6q+ GdpWMQSXLhiZRWdsJeRojhwfXYpicYaa7FuXzulH5oITnVJd5ARaelb9YlJoEAWWU6N0 sgc4KOHmiPC9le7RTLZvF/h/ECCR6u+Dng7BKSbsy01pW661wh607pHw9L2ySYQLTLEz 9X2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696270924; x=1696875724; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jfENVpQuZdv1PgXfltbR7B/XTb+JunRgWdUE5rSAEv0=; b=f0y6xQsnr+FcwjPNE0NnbDr8auYQ7vFqRKC69c3DqdfAClWI7gb5i0uvBMUisko8tT YaYDgWyJHbr8IjnMVOcQmTWrdibliyGFVv5NbOL0ULwZiZN78Pl1fHXpNWcAeJ87OABp QwQKDsTdSam4cPl6Z/FhjCRpvK51SAMoi96BGKfbWIKLU3hxC0em28PlbYfA74/QR1I2 W44L1vy+6dZY7qoBfpNi7lKC5Aa/jvqyDBc5yn+osc80yhtzw3a3qMTFd7kuGVM+iJEu /Rorn/KUVDbhHUU1bjJ6TcodF/qyB5tZNzE8KifSb5ew+MQiTa/6a6THQs0zhPoRQly3 CC3A== X-Gm-Message-State: AOJu0YzNoEZl0lURxzEGB5lRLNzJwxbvFC+ZPqQf//Iqdma6Uz5sSvea OMxsabfOPTlkFlxjK5FbKmlZjSCgz4aMglWCKn0= X-Received: by 2002:a4a:3459:0:b0:57b:7b1b:108a with SMTP id n25-20020a4a3459000000b0057b7b1b108amr11529642oof.8.1696270924335; Mon, 02 Oct 2023 11:22:04 -0700 (PDT) MIME-Version: 1.0 References: <20231002175052.112406-1-tmaimon77@gmail.com> <20231002175052.112406-3-tmaimon77@gmail.com> In-Reply-To: <20231002175052.112406-3-tmaimon77@gmail.com> From: Andy Shevchenko Date: Mon, 2 Oct 2023 21:21:28 +0300 Message-ID: Subject: Re: [PATCH v3 2/2] mmc: sdhci-npcm: Add NPCM SDHCI driver To: Tomer Maimon Cc: ulf.hansson@linaro.org, avifishman70@gmail.com, tali.perry1@gmail.com, joel@jms.id.au, venture@google.com, yuenn@google.com, benjaminfair@google.com, adrian.hunter@intel.com, skhan@linuxfoundation.org, davidgow@google.com, pbrobinson@gmail.com, gsomlo@gmail.com, briannorris@chromium.org, arnd@arndb.de, krakoczy@antmicro.com, openbmc@lists.ozlabs.org, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 02 Oct 2023 11:22:16 -0700 (PDT) On Mon, Oct 2, 2023 at 8:51=E2=80=AFPM Tomer Maimon w= rote: > > Add Nuvoton NPCM BMC sdhci-pltfm controller driver. ... > +/* > + * NPCM SDHC MMC host controller driver. > + * > + * Copyright (c) 2020 Nuvoton Technology corporation. Shouldn't it be at least 2020,2023 ? > + */ ... > +#include > +#include > +#include > +#include > +#include + mod_devicetable.h > +#include > +#include ... > + pltfm_host->clk =3D devm_clk_get_optional(&pdev->dev, NULL); > + if (IS_ERR(pltfm_host->clk)) { > + ret =3D PTR_ERR(pltfm_host->clk); > + goto err_sdhci; > + } > + > + ret =3D clk_prepare_enable(pltfm_host->clk); > + if (ret) > + goto err_sdhci; Why not use devm_clk_get_optional_enabled()? --=20 With Best Regards, Andy Shevchenko