Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5696896pxb; Mon, 28 Mar 2022 16:20:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx269EAx5E4H8i5RZZ4VPH/ESlW5UUjo0izRe4OCugnzbxfeUDcB/PVjlxvjm5UfOzBMeWE X-Received: by 2002:a05:6870:c142:b0:dd:d5a3:767c with SMTP id g2-20020a056870c14200b000ddd5a3767cmr736583oad.291.1648509634241; Mon, 28 Mar 2022 16:20:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648509634; cv=none; d=google.com; s=arc-20160816; b=ckejZUms4h+oC4u8PpWXpdmtn8/qz45oRdJy/eB1k0ywiOSFX5bg8aFTZZrI0U9uGv ngXia6P+VxyDSFNwNvRdjXiyjrwlkBOFlxXGfOJLpWQ+Q/royDcWTi+3uvxiDmIx3hXp FDYZt0g1pcCvq06oqxqgQ179jFdC7r1VsiiFihbkGeGdJyxfnUDSitt/6hk4U4JWvTjE Xz8hizbmcQ459tG3qvIefuQKagwH3b+PP1Cy5+VRvHsPdl5c5QPVWhZrRyQaFJ/K60ZT LJ24BHtNUfe6dz6TfbCkHpUe292+2131iE54jH2cIu+dlCDRX87e5nHpuXzHr6lP/1tk jEbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=s2Jq8cU5dJUjU6sXUrqYJDfSwsS1W1EK/oPV4kTERfQ=; b=Clv0Uot100SBiaHyx4WTXWwYdAiHXqm24l1ra4XfcG15mcTZ6k6zNI8jExcaFpxqUU au1cBaLLZmjfvk/pn5eINSHlymZBKvwwQPpEc+w+gJRCv8luPorE3Muq3y5eeWfN/eqc Td2vBA+OqwKtH5kahZLh9pXuBSLt5kJEeWyPXiHeHmuYbpInMbeG9xK1TGpHjTnF5vQH REEOIEyyhcraCViuvlR0IF4P/rFCvxxkRwMAmVvcf/eUNHXiDC3vdwcqwQnTP78N7qrd bfUvY7DP9WNjHEw8xZWQ2LGzlEOnY8sm6AM1djQRO1oZEVhMM1dHuTOTfeZwbsm7NPC4 pohQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Bg54M+Nw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b1-20020a4a9bc1000000b003244bc5df17si14270129ook.19.2022.03.28.16.20.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 16:20:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Bg54M+Nw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D003048887; Mon, 28 Mar 2022 15:36:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229993AbiC1WiW (ORCPT + 99 others); Mon, 28 Mar 2022 18:38:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230032AbiC1WiS (ORCPT ); Mon, 28 Mar 2022 18:38:18 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 851AB47560; Mon, 28 Mar 2022 15:36:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648506995; x=1680042995; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=afYqVHwiHVNSeLXUeEU0q+YnDh0ucsP8xpVz/aFfAqM=; b=Bg54M+NwP0JxtedEsdJJfdpXljr+mi8RW5G353Yd2Xb8/m5mGRPLRoIt yk3Fd3Fx+Vf7YbRwvb9IO1IAaCJ7m9dLAcKkafSjLTHURjMftDg7w9vfb fnj18iz/l/KhmMpAjEfP68k8Ps3Q1oCJrQhvHD1WXri7m6pfOqVL9krJ4 lCPQoqvb53eXHp2FVnFOP41LgWEC0JrYR0z6X6H+uy4gja5kJ1YxYem+V tgYX/CoVb9PJQik4aWX/FhGAUH+mAYpNnd26WIUQA2NW0YzhpIi2vmjVa 8Gl/E+HXHkr2GIsFGhc++BFzQY4YOM3tyP7F1M7hpfS6x3cOldtHeCytE Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10300"; a="239711139" X-IronPort-AV: E=Sophos;i="5.90,218,1643702400"; d="scan'208";a="239711139" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2022 15:36:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,218,1643702400"; d="scan'208";a="652411975" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 28 Mar 2022 15:36:31 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nYxyQ-0002N8-VQ; Mon, 28 Mar 2022 22:36:30 +0000 Date: Tue, 29 Mar 2022 06:36:14 +0800 From: kernel test robot To: Serge Semin , Damien Le Moal , Hans de Goede , Jens Axboe Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Serge Semin , Alexey Malahov , Pavel Parkhomenko , Rob Herring , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 05/21] ata: libahci_platform: Convert to using devm bulk clocks API Message-ID: <202203290643.0ExdJphD-lkp@intel.com> References: <20220324001628.13028-6-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220324001628.13028-6-Sergey.Semin@baikalelectronics.ru> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Serge, I love your patch! Yet something to improve: [auto build test ERROR on v5.17] [also build test ERROR on next-20220328] [cannot apply to axboe-block/for-next robh/for-next linus/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/Serge-Semin/ata-ahci-Add-DWC-Baikal-T1-AHCI-SATA-support/20220328-234809 base: f443e374ae131c168a065ea1748feac6b2e76613 config: arm-buildonly-randconfig-r005-20220327 (https://download.01.org/0day-ci/archive/20220329/202203290643.0ExdJphD-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0f6d9501cf49ce02937099350d08f20c4af86f3d) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/intel-lab-lkp/linux/commit/28cf1dcfb31bfca35af403a8774d0d880923fab3 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Serge-Semin/ata-ahci-Add-DWC-Baikal-T1-AHCI-SATA-support/20220328-234809 git checkout 28cf1dcfb31bfca35af403a8774d0d880923fab3 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/ata/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/ata/ahci_dm816.c:72:6: error: invalid argument type 'struct clk_bulk_data' to unary expression if (!hpriv->clks[1]) { ^~~~~~~~~~~~~~~ >> drivers/ata/ahci_dm816.c:77:29: error: passing 'struct clk_bulk_data' to parameter of incompatible type 'struct clk *' refclk_rate = clk_get_rate(hpriv->clks[1]); ^~~~~~~~~~~~~~ include/linux/clk.h:584:40: note: passing argument to parameter 'clk' here unsigned long clk_get_rate(struct clk *clk); ^ 2 errors generated. vim +72 drivers/ata/ahci_dm816.c df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 60 df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 61 static int ahci_dm816_phy_init(struct ahci_host_priv *hpriv, struct device *dev) df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 62 { df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 63 unsigned long refclk_rate; df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 64 int mpy; df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 65 u32 val; df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 66 df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 67 /* df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 68 * We should have been supplied two clocks: the functional and df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 69 * keep-alive clock and the external reference clock. We need the df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 70 * rate of the latter to calculate the correct value of MPY bits. df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 71 */ df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 @72 if (!hpriv->clks[1]) { df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 73 dev_err(dev, "reference clock not supplied\n"); df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 74 return -EINVAL; df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 75 } df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 76 df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 @77 refclk_rate = clk_get_rate(hpriv->clks[1]); df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 78 if ((refclk_rate % 100) != 0) { df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 79 dev_err(dev, "reference clock rate must be divisible by 100\n"); df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 80 return -EINVAL; df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 81 } df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 82 df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 83 mpy = ahci_dm816_get_mpy_bits(refclk_rate); df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 84 if (mpy < 0) { df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 85 dev_err(dev, "can't calculate the MPY bits value\n"); df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 86 return -EINVAL; df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 87 } df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 88 df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 89 /* Enable the PHY and configure the first HBA port. */ df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 90 val = AHCI_DM816_PHY_MPY(mpy) | AHCI_DM816_PHY_LOS(1) | df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 91 AHCI_DM816_PHY_RXCDR(4) | AHCI_DM816_PHY_RXEQ(1) | df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 92 AHCI_DM816_PHY_TXSWING(3) | AHCI_DM816_PHY_ENPLL(1); df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 93 writel(val, hpriv->mmio + AHCI_DM816_P0PHYCR_REG); df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 94 df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 95 /* Configure the second HBA port. */ df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 96 val = AHCI_DM816_PHY_LOS(1) | AHCI_DM816_PHY_RXCDR(4) | df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 97 AHCI_DM816_PHY_RXEQ(1) | AHCI_DM816_PHY_TXSWING(3); df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 98 writel(val, hpriv->mmio + AHCI_DM816_P1PHYCR_REG); df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 99 df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 100 return 0; df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 101 } df46e6a4c06c89 Bartosz Golaszewski 2017-03-14 102 -- 0-DAY CI Kernel Test Service https://01.org/lkp