Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1606461rdb; Mon, 2 Oct 2023 15:15:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHbJMgmhoeFqFzJ0ggEh4Zyudq+zf0gCow5LYCFGiQjyzXL8wsUAU4kZQCEhF50WnEjy/nJ X-Received: by 2002:a17:902:e74f:b0:1c6:112f:5cff with SMTP id p15-20020a170902e74f00b001c6112f5cffmr13486416plf.61.1696284953892; Mon, 02 Oct 2023 15:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696284953; cv=none; d=google.com; s=arc-20160816; b=OSQ63TU0u6GpaFELOBzxXcxjizpujdioBOowdfhC4c/s0XcxSFyIvsV/GgaomV8M9i YaF1havoURR+n3hLq79A7IZdUZ7gjqv02XukSB3bz8UcyauMh9qli1NwgA1AeSSAUlq2 BffgmL7XP4venAVEvcLA4mUSclB3cmKUvxM2KTtzJXOG0u4wlBqRHAkYxU/unKfO0Qh+ Xy1m2QU8OENiINehIEBhFpsdNbGX3xtfhGFcioX62RQwSZm9hs7PRfOXnGXEul4GCgTC pA+WQMPEmpBUGRsbEUKax4N4aQSiX00vHBSjek/bn7vnmVtDaUrMp4G0bd1Z4gISRmxj O5Kw== 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=qmLeKYNGSecYfl9ikGzmRlf+uP/RUxaBYTCk9xIy0Aw=; fh=Qan2Z3BI0tJcCY/Ql+WJILj3Z4L+0uTdT2YQKN6DEPk=; b=BDSS4WTsV87T7wT7llcVl44V7byUr9uG8rsF0yNXeoqNKduYgKtUmlgI6rJ3QyTgEv P+PL//EzM3zOvrgHBMIrkhgQWIKEZMCdhcuXTA8bPb/16GzL379/BDYcVqZascym5rG/ HMY8PJuv9aGEsGLMXqV2w7DLfcm0D4Ki3IuDT2fEYddFPI3F4pEIvvee++0cKAi/ArqU FB6hUINypX/vtD4SXGzX0ht6c3R3pg3646b1Di+wSr2662zehK1yaqLYtT4/bGRYTcev CRcu/fM/Zg7ktqlQa+ZUZL5C98auTOH7wMsV83QpVrTHiC7NTbHa6ZYY1K5mbV4/wnoc d5RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DbSbo9wI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id o1-20020a170902d4c100b001bf741231f7si21205068plg.570.2023.10.02.15.15.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 15:15:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DbSbo9wI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 0072780658CE; Mon, 2 Oct 2023 11:29:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238764AbjJBS35 (ORCPT + 99 others); Mon, 2 Oct 2023 14:29:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbjJBS34 (ORCPT ); Mon, 2 Oct 2023 14:29:56 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 619A29B; Mon, 2 Oct 2023 11:29:53 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2bffa8578feso397971fa.2; Mon, 02 Oct 2023 11:29:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696271391; x=1696876191; 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=qmLeKYNGSecYfl9ikGzmRlf+uP/RUxaBYTCk9xIy0Aw=; b=DbSbo9wIoSd8VXWJK7J3XtQeAdMShrZRAb3e+r3PYbUQ8Swm4rEBvB0iKrErKFgijQ DB8WACJA5ysGKg/1wVDConn84bQ8q7Eb40mbEPZIglN9TMumvQoAoAIPBlvXfZVlSzxU gwgQt5fub2i8EJ0ER4D+FZ3qOoOsjPryM58bj6QVEBzuIuaz3cD2VyBxvuq9l/l6sM60 ok1MNR/Kx9Yn+5k8OCvzbJ8LEi4BE5ujFNqx6+PiezqvL1EvLci0BkEXVmJBIj4NNdK7 h8rc9h0KLX/6Lfi+f5tyLl57pkPZbVMnvW4sIyJR6BSVcjEFKAqNEhbk9a6cXetSeDbV YlUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696271391; x=1696876191; 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=qmLeKYNGSecYfl9ikGzmRlf+uP/RUxaBYTCk9xIy0Aw=; b=OiUK+Q7M8LkdKEy3H+rg+WAsRTVnc5wHxz6kfkRY+y+CTk65ibyB9XFmqzuwFIrejb cdm0PHszCx5xyZji/b8bjLd0T3eEZWAnrqgnCsjbVPDgZwryYvu4XSv3p0uUSNfb7qTX 06hVhbi49XRqDNSjtyJsjky55pqcUKawSJUeKaccmPRNh9N8NYHA55jv4I2B2WSjLurl tFQqul9VfvreqexB0Ju9BN6y89TTGaEVg/S6TGK+8b+HWemPtNlqihkSXUrXF52OevUT DzP5nwT00s9BAn9hwg6/Yur/Xf/NDapMDTnMWO6H/G9unL/y0POdhg7pn33zp+FjnHvr 6AWA== X-Gm-Message-State: AOJu0YxT2RmQNVPCqXHFYlJHarUFXuD2KcXn8awiUBnXpfokp/lDi+T3 7cyL989jaxQ8E6nvsL6dTxGoiRNjQPH95Hrv05k= X-Received: by 2002:a2e:97c9:0:b0:2bc:cc1a:139c with SMTP id m9-20020a2e97c9000000b002bccc1a139cmr9686291ljj.11.1696271391296; Mon, 02 Oct 2023 11:29:51 -0700 (PDT) MIME-Version: 1.0 References: <20231002175052.112406-1-tmaimon77@gmail.com> <20231002175052.112406-3-tmaimon77@gmail.com> In-Reply-To: From: Tomer Maimon Date: Mon, 2 Oct 2023 21:29:40 +0300 Message-ID: Subject: Re: [PATCH v3 2/2] mmc: sdhci-npcm: Add NPCM SDHCI driver To: Andy Shevchenko 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=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 02 Oct 2023 11:30:03 -0700 (PDT) Hi Andy, Thanks for your comments. On Mon, 2 Oct 2023 at 21:22, Andy Shevchenko wr= ote: > > On Mon, Oct 2, 2023 at 8:51=E2=80=AFPM Tomer Maimon = wrote: > > > > 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 ? will change to 2023 > > > + */ > > ... > > > +#include > > +#include > > +#include > > +#include > > +#include > > + mod_devicetable.h why? > > +#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()? Will do > > -- > With Best Regards, > Andy Shevchenko Best regards, Tomer