Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp236641ybc; Tue, 12 Nov 2019 00:15:20 -0800 (PST) X-Google-Smtp-Source: APXvYqxoTeXnzwvJPUAlc2LjqOUONfaMBtqbqVYN8AcVYL2A/PtL97T+Dt/3YSGJbKV2rvcUJsxp X-Received: by 2002:aa7:cd54:: with SMTP id v20mr31427409edw.203.1573546520262; Tue, 12 Nov 2019 00:15:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573546520; cv=none; d=google.com; s=arc-20160816; b=IRqFd6J0TgTrGrgImT5oJoudISL4jMOdr2y2C8UeXWS3VVPEFaqY7Ko9L33s1fyDbe vH+CrG4IfGBHji4ChfjgxfLtXUvRHS92qwI3U7QteiHZ2G4scTx2WC2cOZE0+yy+/rXe M54twfeuGNl50xUKokMzmK2XJkExbJQHYOXI0pRJ2+x20GqkxjgnE8CqAKfwjSlEm2P+ 7cC+NP+H7I+tEt9uAVzSEgxgJaN6+scTqRwmTDhMqCoy8AZZFaMHAwkR8Ay/Ic9g+Qmk wCmtxi14nPwYTh556j+akFLQfMBzGx9kKEh0VCF4IYMqt+c1cJfyA7wMaQroBZprUMVT esag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=uW7KKPH3LQy1IWVXfFe3qEeVllFCbQMhrc9UY+po76Q=; b=QjwKWULXMvoG8KDxg+na7SVNiTPm/8OGCjapChbpuvx/1TcDFWZobumN/dNBJvB+1H Rzk4z3a2T3hfddupgUhw5cPWfPrYsjvRaovXKZ8Rz+E2ckKYSgJYQcF95I1WRG8J57Ab FBUHk8oN4RMNApsDvWfah7kwSith/aurPPqmbpeerLBLIefDEgMAd6rgy+uYwsEfd4gI uXR/22W/BElrI5HHqXk5doai01eqRC8pcb0+rEi7uZHTDiyf9nyc4rBxYJQtjUCxCF6x sOff0HFrW15teIEEqhoNh6puEWx2kwB7HIv7WhptPaXjFqFNbBR6Uz90QWQKdPC67o1G MufQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si10808026ejw.30.2019.11.12.00.14.55; Tue, 12 Nov 2019 00:15:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727097AbfKLILo (ORCPT + 99 others); Tue, 12 Nov 2019 03:11:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:36264 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725775AbfKLILo (ORCPT ); Tue, 12 Nov 2019 03:11:44 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1AEE8B2E9; Tue, 12 Nov 2019 08:11:42 +0000 (UTC) Subject: Re: [PATCH] soc: amlogic: socinfo: Avoid soc_device_to_device() To: Greg Kroah-Hartman Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Blumenstingl , Neil Armstrong , Kevin Hilman References: <20191111221521.1587-1-afaerber@suse.de> <20191112054003.GD1210104@kroah.com> From: =?UTF-8?Q?Andreas_F=c3=a4rber?= Organization: SUSE Software Solutions Germany GmbH Message-ID: <0673ba51-108c-76c4-5c71-00804d8ea661@suse.de> Date: Tue, 12 Nov 2019 09:11:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20191112054003.GD1210104@kroah.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 12.11.19 um 06:40 schrieb Greg Kroah-Hartman: > On Mon, Nov 11, 2019 at 11:15:21PM +0100, Andreas Färber wrote: >> The helper soc_device_to_device() is considered deprecated. >> For a driver __init function the predictable prefix text >> "soc soc0:" from dev_info() does not add real value, so use >> pr_info() to emit the info text without such prefix. >> >> While at it, normalize the casing of "detected" for GX. >> >> Cc: Greg Kroah-Hartman >> Cc: Martin Blumenstingl >> Cc: Neil Armstrong >> Signed-off-by: Andreas Färber >> --- >> drivers/soc/amlogic/meson-gx-socinfo.c | 4 +--- >> drivers/soc/amlogic/meson-mx-socinfo.c | 4 ++-- >> 2 files changed, 3 insertions(+), 5 deletions(-) >> >> diff --git a/drivers/soc/amlogic/meson-gx-socinfo.c b/drivers/soc/amlogic/meson-gx-socinfo.c >> index 01fc0d20a70d..105b819bbd5f 100644 >> --- a/drivers/soc/amlogic/meson-gx-socinfo.c >> +++ b/drivers/soc/amlogic/meson-gx-socinfo.c >> @@ -129,7 +129,6 @@ static int __init meson_gx_socinfo_init(void) >> struct device_node *np; >> struct regmap *regmap; >> unsigned int socinfo; >> - struct device *dev; >> int ret; >> >> /* look up for chipid node */ >> @@ -192,9 +191,8 @@ static int __init meson_gx_socinfo_init(void) >> kfree(soc_dev_attr); >> return PTR_ERR(soc_dev); >> } >> - dev = soc_device_to_device(soc_dev); >> >> - dev_info(dev, "Amlogic Meson %s Revision %x:%x (%x:%x) Detected\n", >> + pr_info("Amlogic Meson %s Revision %x:%x (%x:%x) detected\n", > > This should message should just be removed entirely. > >> soc_dev_attr->soc_id, >> socinfo_to_major(socinfo), >> socinfo_to_minor(socinfo), >> diff --git a/drivers/soc/amlogic/meson-mx-socinfo.c b/drivers/soc/amlogic/meson-mx-socinfo.c >> index 78f0f1aeca57..7db2c94a7130 100644 >> --- a/drivers/soc/amlogic/meson-mx-socinfo.c >> +++ b/drivers/soc/amlogic/meson-mx-socinfo.c >> @@ -167,8 +167,8 @@ static int __init meson_mx_socinfo_init(void) >> return PTR_ERR(soc_dev); >> } >> >> - dev_info(soc_device_to_device(soc_dev), "Amlogic %s %s detected\n", >> - soc_dev_attr->soc_id, soc_dev_attr->revision); >> + pr_info("Amlogic %s %s detected\n", >> + soc_dev_attr->soc_id, soc_dev_attr->revision); > > Same here, no need to polute the kernel log for when all is going just > fine. > > That's why we created "common" driver init helpers, to prevent the > ability for this type of noise from even being able to be created at > all. Let's have that discussion in the central thread please. Fact here is that Amlogic GX's kernel output (and this code getting mirrored into U-Boot) made me aware of this driver in the first place. Regards, Andreas -- SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)