Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp527379pxb; Thu, 25 Feb 2021 08:26:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhFH70MLM+/IIxDhkaRizwpMnMoqffRmQhyNNM1OTb3mIWI+PNuGSMLO0WFWflj2ZygwwI X-Received: by 2002:aa7:c6d5:: with SMTP id b21mr3692726eds.180.1614270384264; Thu, 25 Feb 2021 08:26:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614270384; cv=none; d=google.com; s=arc-20160816; b=y4K6QdRr8AO8wcYxI4an5zDUv9wNnmW52QrLk9BFbFAGK7sHTGsqZYNo5uRz0jB/T9 oHEnveMHyelH7ZL0aikms/uMCWsMcNMiScZD1KAdUpn8SjXbvv1zwI97OYJ9OCTEixQ9 N0+qq07SsMIJYir56tVn0Z58v1phkdXReuEOlhFSS1OCMTO5nGS7atzZhzUvqv/T3LUB D5WoKQk7mGq9/fcla9SYYf5+B/HyDEjbT5K/q1DGlWg8Fqx4r1Nfy3nnp6SGc6/87aN0 h8ci+JOSPeiBARNRDkGW2Sraqzqw2MMuT76vPxiwpSgoT35GAiasfIk99uZ87X5V/ZfP BlcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/cP36naQj3qpC5i/IheYs6HlbPebR0MpDFfVJ183xi8=; b=Tsn8dTnHmeg2jb522Oza/A+5mk/Zb0rcaUmLTHo4QUT0JMzop0rNevYTvrbziGhGh1 zU/EU9+OOwdpN3NbstHIms/J77aqI3LwzKlIQNGMU2RLZGfAuIV/NgfyqcyVmy1jV5gN V/LHoSb+wlrIvh4joM2ledKNCVxRk7+IJkXDIZ49ywHBg/k4QtvGg+DxudRrW+r4VWSa AVVsjZzS3Vxu8DEV+DtJeMbF2T93ScSX1bsNq17E0fI7aWvjJcORYQRIrJnroSPinHCp 5UtJ1JqhxH0geVkIQSek6du/CVQj+VBJnc/Q52525JVlnuGqKDgERsJVi9/cBPOchamF b5Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="KeDpl/nt"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yd18si3663039ejb.676.2021.02.25.08.26.00; Thu, 25 Feb 2021 08:26:24 -0800 (PST) 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; dkim=pass header.i=@google.com header.s=20161025 header.b="KeDpl/nt"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232471AbhBYQW5 (ORCPT + 99 others); Thu, 25 Feb 2021 11:22:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233688AbhBYQWi (ORCPT ); Thu, 25 Feb 2021 11:22:38 -0500 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0E29C061756 for ; Thu, 25 Feb 2021 08:21:56 -0800 (PST) Received: by mail-yb1-xb33.google.com with SMTP id l8so5917661ybe.12 for ; Thu, 25 Feb 2021 08:21:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/cP36naQj3qpC5i/IheYs6HlbPebR0MpDFfVJ183xi8=; b=KeDpl/ntLDJO0xHlFgkxocqJLerEAuvIJ2EY3GHp0W3hUj+P/H80wjBdRtEMG9I6mk mOgnF2arVx72Klh9ceuX9/gZrNp086hN7VWSm2CdPxWGVLlv/d3ygeohIOvkZz5l7Cyx ZhFxLDCDeov/Avb6rWbqVkBHPzx5KAcHND5L3Oyd1ikRLLXkV4M2h1M2rxeBlmXO1FzC h6wigFdFrnCmS2Ta1BenFcqq3z1TeWEZYayefvy101cUxA4uZ/76DzbLiVB0QDg4ef1t RT0ZhWM3jjPl7MNJayNpq84oFbz/wj7Vm1HMTE9TGejYbOcy+PrX9l5mI0z5Sz0KgvLo ksGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/cP36naQj3qpC5i/IheYs6HlbPebR0MpDFfVJ183xi8=; b=CR69NnU6xOpS+POy7f8+XtjsocBJa/3Gt0Z3wKZzg1s7tDxO+7PMDaPL6JMS7rJVfe 9J0pPqNVWH5MXsNKaQh5IH8gkzDvhD8JeioS6ZO1ZQfpZzSvwh77af8Zx6PrahF8B2ik ffdEGfKy9LoQQ5vKzwjc0CmeSMqEbqd9J7FFXUoBhhs3GTPa/Jya53t/kI7kjY6Tysq0 ikx5/UagIlxgOVbiAy0ysAwsOiSYsENgl8ROJEtR2oystNr3vXxuMSg2rsgOd5niYe6d n9tKPwV7whYNZIcKslDhoiIEBwd3p7TJ4w/QoUEY4EieVG47Oa6jjozvcO3UvV32vBKJ RH6w== X-Gm-Message-State: AOAM533Z/F5Qdine74SV9Pn2un67Y2GRD9O+Rt2pFR4d3PHzF/4AqClM n6Kb6LUSWpvYyyUGTVClU/ZWUVJHU1cNzD3vtGdoKw== X-Received: by 2002:a25:aa43:: with SMTP id s61mr5354227ybi.32.1614270115514; Thu, 25 Feb 2021 08:21:55 -0800 (PST) MIME-Version: 1.0 References: <20210215151405.2551143-1-geert+renesas@glider.be> In-Reply-To: From: Saravana Kannan Date: Thu, 25 Feb 2021 08:21:19 -0800 Message-ID: Subject: Re: [PATCH] staging: board: Fix uninitialized spinlock when attaching genpd To: Geert Uytterhoeven Cc: Greg Kroah-Hartman , Bartosz Golaszewski , "Rafael J . Wysocki" , Kevin Hilman , Ulf Hansson , Magnus Damm , Linux-Renesas , Linux PM , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 25, 2021 at 1:25 AM Geert Uytterhoeven wrote: > > Hi Saravana, > > On Mon, Feb 15, 2021 at 10:03 PM Saravana Kannan wrote: > > On Mon, Feb 15, 2021 at 11:10 AM Geert Uytterhoeven > > wrote: > > > On Mon, Feb 15, 2021 at 7:37 PM Saravana Kannan wrote: > > > > On Mon, Feb 15, 2021 at 7:14 AM Geert Uytterhoeven > > > > > @@ -148,7 +149,11 @@ static int board_staging_add_dev_domain(struct platform_device *pdev, > > > > > pd_args.np = np; > > > > > pd_args.args_count = 0; > > > > > > > > > > - return of_genpd_add_device(&pd_args, &pdev->dev); > > > > > + /* Cfr. device_pm_init_common() */ > > > > > > > > What's Cfr? > > > > > > "compare to" (from Latin "confer"). > > > > Can you please change this to "refer to" or "similar to"? Also, not > > sure if this comment is even adding anything useful even if you switch > > the words. > > I changed it to "Initialization similar to device_pm_init_common()" > > > Also, device_pm_init_common() is used in two places outside of > > drivers/base/ with this change. Maybe better to move it to > > linux/device.h? > > arch/sh/drivers/platform_early.c has a separate definition, and this > is intentional, cfr. commit 507fd01d53333387 ("drivers: move the early > platform device support to arch/sh"): > > In order not to export internal drivers/base functions to arch code for > this temporary solution - copy the two needed routines for driver > matching from drivers/base/platform.c to arch/sh/drivers/platform_early.c. > Thanks. The comments and decision to copy the code sounds okay to me. But I'll still leave the Ack/Review to Rafael or someone else as I'm not too familiar with the intent of this flag. -Saravana