Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp272255pxb; Thu, 25 Feb 2021 02:00:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoO6668i7UZa7JH8mrS1iPwc8gEwGfjtH/79Ni/PKaMar0eGqyspoImV6sfw48ElkueG2u X-Received: by 2002:a17:906:27d5:: with SMTP id k21mr1872657ejc.463.1614247228982; Thu, 25 Feb 2021 02:00:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614247228; cv=none; d=google.com; s=arc-20160816; b=QI/AGuPd98WsO7eA/G0yq00nh4o8Oh4jwkDe8rad6nSJY4PO3g/9GF7iNrCt69GdGd q/9HzL68ofMz/HfG7BQ31Sqb56Cr4bzlL3dkPNpw6TKD4wG3e0NSkPQpP2Q9xHZkLNlt LIIvnMF/dK4WEmMwWrZy5YKSvEnB5lD8XYviTQN0d3R4cfIHhLzzMFvyEW1M3hpyFlhW +/3k/dtDDjg/Cx5VhE45myqjZEBNR/jtYZrs3uTDCtjm62/qLrE3uHB72D3qsFNFBE+N JFwaNDsw5DHx+WLsiMs+KSAv931LspMasJKO1f6dTTKQ+1ZXO8e2fPbdIQ5EKno8ACK5 ZhKQ== 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; bh=QNH/Pnwo76IsC74cdzsmkae3+sbZ+Nxsq1OpS1V4qzQ=; b=cpTiucVMyA6NBOQVZuQmUx+m+iLe/GozvnGbtY+vFZKDhotJZDEz3RAThGR85M01fh h1UBspo0dgHNxkJfTrKJMBd78fI2LA+XrDS2+/knp6wKtJ0w95jh3QUUwTmtnTdihPf1 4zqcEHtNaBORluF4d+qxTbopTBnxz6nKAtBHUhHR+lvEfxa/xFgNE0BiPuHcQ9kkhH96 wLij2rQCEFdwbai+bXDhFOJK43MeJqVT0R6xdGNAoXgvKbz4WnTmt8lTkPZpchayFd5N QUvlkfekE1p/GNdOn2zkhEV9zYkGCtXpEWme1LQqu/bIKDY48Zxs1zbQSzjZ97er0EaZ 4xfQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si2920777ejz.609.2021.02.25.02.00.06; Thu, 25 Feb 2021 02:00:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236325AbhBYJ0a (ORCPT + 99 others); Thu, 25 Feb 2021 04:26:30 -0500 Received: from mail-ot1-f49.google.com ([209.85.210.49]:44920 "EHLO mail-ot1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236078AbhBYJ0Y (ORCPT ); Thu, 25 Feb 2021 04:26:24 -0500 Received: by mail-ot1-f49.google.com with SMTP id f33so5025014otf.11; Thu, 25 Feb 2021 01:26:08 -0800 (PST) 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=QNH/Pnwo76IsC74cdzsmkae3+sbZ+Nxsq1OpS1V4qzQ=; b=HTcPccF+pY+znsaYEafGqCxW4Fmx3pSfV6uHhwdythVyo33CgWjT7GTYnxsjKOIrI3 vMWbAebUKxHsN3YPQXRUV85Q/k5t3GIHD93DgiHJm0qM5/gqsKm2JVeAkifpWaa1yobv n5iTJCGZt3ll7sx2ouFad7lc5TGgPk0hM0mNMqjUdDZN1hiQD4QvTyhZU/EiPQ7TJW2Q 1FAtVVUdH/S7kl80e1svnZIzuUFBPFEZDgVFizdappStUAr/4Fz0j26qDr6TSJJEBXBP CYoYn6mRpYD65HK8jCKrJQyAZmhqGEPj0erB0YfacnLIT57Zkx63O4faMfbpb2+sph3V N5WA== X-Gm-Message-State: AOAM530UyRok8ErvcQQwRrIMy2a8CUl6k5uQXUOjBY6U8sf0a5lX1Enc ieWmpBXtLLDQ7R8UVEW853quxAtc9wQQpQqquG8= X-Received: by 2002:a9d:6382:: with SMTP id w2mr1585913otk.145.1614245143500; Thu, 25 Feb 2021 01:25:43 -0800 (PST) MIME-Version: 1.0 References: <20210215151405.2551143-1-geert+renesas@glider.be> In-Reply-To: From: Geert Uytterhoeven Date: Thu, 25 Feb 2021 10:25:32 +0100 Message-ID: Subject: Re: [PATCH] staging: board: Fix uninitialized spinlock when attaching genpd To: Saravana Kannan 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 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. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds