All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v2 6/7] soc: mediatek: mmsys: Add reset controller support
@ 2021-07-15  0:42 kernel test robot
  2021-07-16  8:58   ` kernel test robot
  2021-07-16  9:01   ` kernel test robot
  0 siblings, 2 replies; 22+ messages in thread
From: kernel test robot @ 2021-07-15  0:42 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3687 bytes --]

CC: kbuild-all(a)lists.01.org
In-Reply-To: <20210714121116.v2.6.I15e2419141a69b2e5c7e700c34d92a69df47e04d@changeid>
References: <20210714121116.v2.6.I15e2419141a69b2e5c7e700c34d92a69df47e04d(a)changeid>
TO: Enric Balletbo i Serra <enric.balletbo@collabora.com>
TO: linux-kernel(a)vger.kernel.org
CC: chunkuang.hu(a)kernel.org
CC: hsinyi(a)chromium.org
CC: kernel(a)collabora.com
CC: drinkcat(a)chromium.org
CC: eizan(a)chromium.org
CC: linux-mediatek(a)lists.infradead.org
CC: matthias.bgg(a)gmail.com
CC: jitao.shi(a)mediatek.com
CC: Philipp Zabel <p.zabel@pengutronix.de>

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 <lkp@intel.com>


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(a)lists.01.org

^ permalink raw reply	[flat|nested] 22+ messages in thread
* [PATCH v2 0/7] Add support to the mmsys driver to be a reset controller
@ 2021-07-14 10:11 Enric Balletbo i Serra
  2021-07-14 10:11   ` Enric Balletbo i Serra
  0 siblings, 1 reply; 22+ messages in thread
From: Enric Balletbo i Serra @ 2021-07-14 10:11 UTC (permalink / raw)
  To: linux-kernel
  Cc: chunkuang.hu, hsinyi, kernel, drinkcat, eizan, linux-mediatek,
	matthias.bgg, jitao.shi, Crystal Guo, Daniel Vetter,
	David Airlie, Fabien Parent, Guenter Roeck, Philipp Zabel,
	Rob Herring, Wim Van Sebroeck, devicetree, dri-devel,
	linux-arm-kernel, linux-watchdog

Dear all,

The following patchset is a reimplementation of the patch sent by Jitao
Shi [1] some time ago. As suggested by Chun-Kuang Hu, this time the
reset is done using the reset API, where the mmsys driver is the reset
controller and the mtk_dsi driver is the reset consumer.

Note that the first patch is kind of unrelated change, it's just a
cleanup but is needed if you want to apply all the following patches
cleanly.

This patchset is important in order to have the DSI panel working on some
kukui MT8183 Chromebooks (i.e Lenovo IdeaPad Duet). Without it, you just
get a black screen.

Best regards,
  Enric

[1] https://lore.kernel.org/linux-arm-kernel/20210420132614.150242-4-jitao.shi@mediatek.com/


Changes in v2:
- Fix build test ERROR Reported-by: kernel test robot <lkp@intel.com>
- Added a new patch to describe the dsi reset optional property.

Enric Balletbo i Serra (7):
  arm64: dts: mediatek: Move reset controller constants into common
    location
  dt-bindings: mediatek: Add #reset-cells to mmsys system controller
  dt-bindings: display: mediatek: add dsi reset optional property
  arm64: dts: mt8173: Add the mmsys reset bit to reset the dsi0
  arm64: dts: mt8183: Add the mmsys reset bit to reset the dsi0
  soc: mediatek: mmsys: Add reset controller support
  drm/mediatek: mtk_dsi: Reset the dsi0 hardware

 .../bindings/arm/mediatek/mediatek,mmsys.txt  |  2 +
 .../display/mediatek/mediatek,dsi.txt         |  6 ++
 arch/arm64/boot/dts/mediatek/mt8173.dtsi      |  2 +
 arch/arm64/boot/dts/mediatek/mt8183.dtsi      |  5 +-
 drivers/gpu/drm/mediatek/mtk_dsi.c            |  5 +-
 drivers/soc/mediatek/mtk-mmsys.c              | 69 +++++++++++++++++++
 drivers/soc/mediatek/mtk-mmsys.h              |  2 +
 drivers/watchdog/mtk_wdt.c                    |  6 +-
 .../mt2712-resets.h                           |  0
 include/dt-bindings/reset/mt8173-resets.h     |  2 +
 .../mt8183-resets.h                           |  3 +
 .../mt8192-resets.h                           |  0
 12 files changed, 96 insertions(+), 6 deletions(-)
 rename include/dt-bindings/{reset-controller => reset}/mt2712-resets.h (100%)
 rename include/dt-bindings/{reset-controller => reset}/mt8183-resets.h (98%)
 rename include/dt-bindings/{reset-controller => reset}/mt8192-resets.h (100%)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2021-08-06 17:36 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-15  0:42 [PATCH v2 6/7] soc: mediatek: mmsys: Add reset controller support kernel test robot
2021-07-16  8:58 ` kernel test robot
2021-07-16  8:58   ` kernel test robot
2021-07-16  8:58   ` kernel test robot
2021-07-16  9:01 ` kernel test robot
2021-07-16  9:01   ` kernel test robot
2021-07-16  9:01   ` kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-07-14 10:11 [PATCH v2 0/7] Add support to the mmsys driver to be a reset controller Enric Balletbo i Serra
2021-07-14 10:11 ` [PATCH v2 6/7] soc: mediatek: mmsys: Add reset controller support Enric Balletbo i Serra
2021-07-14 10:11   ` Enric Balletbo i Serra
2021-07-14 10:11   ` Enric Balletbo i Serra
2021-07-20 10:52   ` Philipp Zabel
2021-07-20 10:52     ` Philipp Zabel
2021-07-20 10:52     ` Philipp Zabel
2021-07-20 17:07     ` Enric Balletbo i Serra
2021-07-20 17:07       ` Enric Balletbo i Serra
2021-07-20 17:07       ` Enric Balletbo i Serra
2021-07-21  9:53       ` Philipp Zabel
2021-07-21  9:53         ` Philipp Zabel
2021-07-21  9:53         ` Philipp Zabel
2021-08-06 17:34   ` Matthias Brugger
2021-08-06 17:34     ` Matthias Brugger
2021-08-06 17:34     ` Matthias Brugger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.