Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1120233pxv; Fri, 16 Jul 2021 02:00:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJmXagdj9zdffMqt/77CzoJMAALJ0piJL/aNy7UuoiBOZmLvioF3LihBPkCrDcgpq4pAa9 X-Received: by 2002:a17:906:cb86:: with SMTP id mf6mr10923356ejb.116.1626426005447; Fri, 16 Jul 2021 02:00:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626426005; cv=none; d=google.com; s=arc-20160816; b=X/aguqrKCMrCSZy52cHa7K9RCWpe/Pj0babWEY2QhOX1FZTuJk9NYJLHtFZzSUJwlm 2oUd07hxDjFvEI8xfn+9HCp+Uj6e5GcxgqS/eFZN2Zx4Avl2Cyu+1L+n2ZNC7rzKd2nw vzROGHlCF6FsOosS1FOcjOUctJoNptvJqX4IG7NA5F2WpXQ1Sz6VWqUJfAwGeEjxk2VA 45m9q09LXHZtQHBerTqdtSZRTU+Kwe/TnRi9lAJ+7X0JFv9uJjUNYy/kQexATKD4fsee HOKF5XfTEMPattj4nMLvp+L9oBDZaU8D7JWye9QezeQuv2OwkNxfmi/AaaLTcz7tM3mZ hLZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:from:cc:to:in-reply-to :references:subject; bh=K34mYVyEqLAtAA9h1mMcLQoexbrn939f/ParI622IQ8=; b=b0K9naTWUFAeGIQNgWqVUPSci7Z0BBLMEhvPENX5cIqYI8WsF+oVxYrF7uGERkTymG 666D8VnFFT0soOvxKNt56+Dell4i0kVbWZBXCORyioK9cpi7rvp8a7efntsKTe4488Jr o4/cNY/7KinABOw3UgjQj6QRlo64aVMxcwiu/s9MMM03TRmAOXmrsnewK3PXLzi3EcUd bYRUtzzOoRIQvonsKLmgXYZwhA0TcA5CpcE/yQfi7HB37ydIxA+/xOmH9kXUe3m7k+ma G3Ik5TDwY8uMGhNhkKAl0cZDp07Cy7pOLhaEfdmOMoxt5pbvK7KPUWaeRyJnWhzx2A73 FYMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l4si5975880ejc.371.2021.07.16.01.59.41; Fri, 16 Jul 2021 02:00:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238630AbhGPJBj (ORCPT + 99 others); Fri, 16 Jul 2021 05:01:39 -0400 Received: from mga11.intel.com ([192.55.52.93]:60833 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237916AbhGPJBi (ORCPT ); Fri, 16 Jul 2021 05:01:38 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10046"; a="207677290" X-IronPort-AV: E=Sophos;i="5.84,244,1620716400"; d="scan'208";a="207677290" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2021 01:58:34 -0700 X-IronPort-AV: E=Sophos;i="5.84,244,1620716400"; d="scan'208";a="495984926" Received: from rongch2-mobl.ccr.corp.intel.com (HELO [10.255.28.42]) ([10.255.28.42]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2021 01:58:32 -0700 Subject: Re: [PATCH v2 6/7] soc: mediatek: mmsys: Add reset controller support References: <202107150857.sniQJ86e-lkp@intel.com> In-Reply-To: <202107150857.sniQJ86e-lkp@intel.com> To: Enric Balletbo i Serra , LKML Cc: chunkuang.hu@kernel.org, hsinyi@chromium.org, kernel@collabora.com, drinkcat@chromium.org, eizan@chromium.org, linux-mediatek@lists.infradead.org, matthias.bgg@gmail.com, jitao.shi@mediatek.com, Philipp Zabel , kbuild-all@lists.01.org From: kernel test robot X-Forwarded-Message-Id: <202107150857.sniQJ86e-lkp@intel.com> Message-ID: <5bfd55a2-04d1-769e-83a7-a03365fdd3b8@intel.com> Date: Fri, 16 Jul 2021 16:58:29 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Enric, I love your patch! Perhaps something to improve: [auto build test WARNING on robh/for-next] [also build test WARNING on pza/reset/next linux/master linus/master v5.14-rc1 next-20210714] [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/0day-ci/linux/commits/Enric-Balletbo-i-Serra/Add-support-to-the-mmsys-driver-to-be-a-reset-controller/20210714-181318 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next :::::: branch date: 14 hours ago :::::: commit date: 14 hours ago compiler: riscv64-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot cppcheck possible warnings: (new ones prefixed by >>, may not real problems) >> drivers/soc/mediatek/mtk-mmsys.c:104:6: warning: Unused variable: i [unusedVariable] int i; ^ vim +104 drivers/soc/mediatek/mtk-mmsys.c 2c758e301ed95a Enric Balletbo i Serra 2020-03-25 97 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 98 static int mtk_mmsys_reset_update(struct reset_controller_dev *rcdev, unsigned long id, 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 99 bool assert) 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 100 { 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 101 struct mtk_mmsys *mmsys = container_of(rcdev, struct mtk_mmsys, rcdev); 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 102 unsigned long flags; 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 103 u32 reg; 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 @104 int i; 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 105 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 106 spin_lock_irqsave(&mmsys->lock, flags); 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 107 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 108 reg = readl_relaxed(mmsys->regs + MMSYS_SW0_RST_B); 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 109 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 110 if (assert) 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 111 reg &= ~BIT(id); 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 112 else 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 113 reg |= BIT(id); 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 114 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 115 writel_relaxed(reg, mmsys->regs + MMSYS_SW0_RST_B); 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 116 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 117 spin_unlock_irqrestore(&mmsys->lock, flags); 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 118 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 119 return 0; 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 120 } 08a3068f9490f0 Enric Balletbo i Serra 2021-07-14 121 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org