Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1124006pxv; Fri, 16 Jul 2021 02:05:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+IMvsnEBVfr4kDswA3a1JotMmq391miv9W1voPLmJzMa1tmmsiu2i4GTVLVcLtprhu9Oo X-Received: by 2002:a05:6402:3584:: with SMTP id y4mr10104081edc.218.1626426332997; Fri, 16 Jul 2021 02:05:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626426332; cv=none; d=google.com; s=arc-20160816; b=J90nsPEAQvHUQH4TBRelImo02zL2gHlCHbtHL+3TW5sAGyKoF6tPgFNEvTSFA1ZNys gDigIlliVBD+YrJPYpE6pSkx2UysSlH8qkVC/cWSkAgfpNdQGliynEMTDP5zpNAf7ae1 sWTNqUiic2azNGQGuOZ2x1M6kcC1UPSWsT8V/m1EpUlLIeKzz2ZqOlvPtEGzQn5aLEhu FxEOrz0hN3XKaNGMO1kUT19cxN5gGPSg//upinmd/NcrVHBDXXJnfjdEl4KrYdPi6GVC ppwwUYhI94nNq0IMMOigi6RUjQSDm/7tJYNHIAS1YdE/pYZmpNb9JRdqMGaz05+6DfD5 4ICw== 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=Obfbajcl1WybsbixwxZYBnBF7+Q9a2mL93EAz5dUp6o=; b=jSK50hhgV8kjXcDdj6BX4aF+oWChH+Hxxwb/8zmYQPppRDOzQGG9ik06Nef1Hyk2+m nnJxqSE8M7ODI+mffrQ8j5aQ0okxmnTUdPIaUH0jLHoTWALfLmDBjxA4Ar2RYIxgEMQF Fz5MrJM9AeP00jy/zD4JvTXfrgRAytrfG9sB28zN9EfUTKByPsD2W+sCxXnlrs+DD8l1 pUZYvNlIQ7nD3QxUjtxrOePffNn8J7/kn7WZmgCTzltlgJRplT8b+BwVywCrpKf/FN+B LM58Ev+QZ2sl7vhYtwcFwZ5rqV2pQq145DGcJOSVhUvPlpOrS5avlOGfiFml+RbdUT/k r25A== 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 w25si9812259eja.725.2021.07.16.02.05.09; Fri, 16 Jul 2021 02:05:32 -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 S238165AbhGPJEm (ORCPT + 99 others); Fri, 16 Jul 2021 05:04:42 -0400 Received: from mga12.intel.com ([192.55.52.136]:11753 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239728AbhGPJEf (ORCPT ); Fri, 16 Jul 2021 05:04:35 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10046"; a="190382236" X-IronPort-AV: E=Sophos;i="5.84,244,1620716400"; d="scan'208";a="190382236" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2021 02:01:40 -0700 X-IronPort-AV: E=Sophos;i="5.84,244,1620716400"; d="scan'208";a="495985905" 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 02:01:38 -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: Date: Fri, 16 Jul 2021 17:01:36 +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 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