Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6903309rwb; Wed, 18 Jan 2023 10:47:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXuu5xedUVRE0MsxPJj4EQqeQIy0kUStyKWGGRN4kd9mV3BqYKoD3ID/VqkKB/xj7A116vKX X-Received: by 2002:a17:902:9045:b0:194:6f3b:3aa1 with SMTP id w5-20020a170902904500b001946f3b3aa1mr19476734plz.55.1674067638276; Wed, 18 Jan 2023 10:47:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674067638; cv=none; d=google.com; s=arc-20160816; b=NUDpsAR7HbQhypny8UbuuSRXryeOgwHt2iCa3I6ViOw+cCDbds+4UaCsco9pxFowXm 7xNqq5X/Zmj0gVKreoOr1c5wOSHzcyi8wcqmV3DZZnaCJpksb1CpmGswSm9Fg20kd7rc v4luS9TApca/KopIpheogn9OUAR7eUWjQJLwck11KcbXii4YhNE/3l+XibSSMND5flIY 6wa/w7MsZ2ddmbrJ2Ouwlk1GbuX7XoGDfU01LcaZ0bgWQu+IiAkkAI1J9LXZk8YkEpto X5LGFOJc80c4YP2kYtA/X1g9gW0e8GFCzHM2MqdAnO/QZ7TEIryEXgwOF/olgQe+Gkqw T/hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id; bh=7KGc/voZNWz4smWT+qpLyt4O2+pdr3MAymElRbwDfcI=; b=Tn30N9EI6lNFBEmEKY8in6u7zJ7khRNpQEUMzWtYpfhlCoomRvj+CTV2pPuuQWPMhL j9gLy+dYXaXK2CQJRZv+O7EJhlutLZRrs2kdWRy/yObk+2fwiJnuajncH4IHdA+mSygj ZqI831REOPE193RxIZzNe+oKXbfZEmVX1HFglWVZGsgUwJBeYEQCtWe5/1W0eIHxj7JV 2wkaTJpo7zjFSAjSgEXutiIugknHMyXxiCgSR9Zg6dKd6HhMhn1fL+d9N4aDFdswihLe Vt02EIwn/o560oEVh5Z9DP8klE/M7bvJ8ACz9/cZtBsLGR5KJJ7jfwkKx8w12D5/7fyx G3Tg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020a170902f31400b001842f55e713si32058713ple.321.2023.01.18.10.47.13; Wed, 18 Jan 2023 10:47:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229997AbjARR36 (ORCPT + 45 others); Wed, 18 Jan 2023 12:29:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbjARR3o (ORCPT ); Wed, 18 Jan 2023 12:29:44 -0500 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C8FB21A0D; Wed, 18 Jan 2023 09:29:41 -0800 (PST) Received: from [192.168.1.139] ([37.4.248.41]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MzTCy-1oW1VW1Hhg-00vQLu; Wed, 18 Jan 2023 18:29:26 +0100 Message-ID: <89377474-bcd4-452a-973f-dd5092dea4d6@i2se.com> Date: Wed, 18 Jan 2023 18:29:23 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [RFC PATCH 1/4] staging: vc04_services: vchiq_core: Drop custom logging To: Umang Jain , linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Florian Fainelli , Adrien Thierry , Dan Carpenter , Dave Stevenson , Kieran Bingham , Laurent Pinchart References: <20230118115810.21979-1-umang.jain@ideasonboard.com> <20230118115810.21979-2-umang.jain@ideasonboard.com> Content-Language: en-US From: Stefan Wahren In-Reply-To: <20230118115810.21979-2-umang.jain@ideasonboard.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:c9i/D17w64yXKdNX4GYL2ssWp34kom0i30U5afG6wwqxgpXdqhi 1rIOQKRsuPAZltULVkvkcj+vsAfhnmYBXEXOZH1R8xJnLDv1X1Pk1U33zSBx8cqfgu7dth1 Pijywyamf+gBZJDuCT0uYu10sfEr20Us0TzrMZwU4xSvw6PDOzjxg1q0eqisTejQAL2yYA5 vijcLbazpZcrg6NzG8jMg== UI-OutboundReport: notjunk:1;M01:P0:2/yHPKPMUzY=;AX4aNqWm+UcOr38RvvoFo4+LBaH 5i03g5b1GY2b81uiDhYPcXzdSilZwjHjPwz/me18F3l0rzllt9vPIM5p/RoZlzcGGUQ6lRlHJ olfjLnxM0quAeM0w/cVZpQiDSSjQAm91cNhCWXMMIWmtGgwgzAp0VE6tB41Q4wi7nZnY6r3nj cPuGqeb3Voq6FI1kfocQ7D6NajcY5qYIeapk84MItCEKJ9npkPc8WcdTEEt7c1s7z5ULWxBS7 i7M6ViDenl3bzSyvOUz8yASQ0Wux4H384miofvAmzuvNNcFD+74haLUNet4D4ee4JllHrEcb+ SJ9nZuC8e9jss7N1L5+y7gJTY1nIdgtPgm7cPnfUY3mpebBWUMjtfsMJ6Joio/U+8txyPEFub uAi1OmWb9XoCb+ywifWTfxbtEvTliSK5d4FAima5iy2INq+i/3dPju0KCiUvg9Qc2LpBIIuXe Cjejg1XyZw/IuF39Y4GZwB2GRzlAcvEN1gwm/eUgtBZi9DNavwV74KA3z14OMLJwfClWNmLpZ HAQj8VlnonAiyuJE94UEkxCzSYpp/OGVfN8uQ6WE4hQ9jgXbom8XVOk5cwlykbX3qrI6UUWB5 dLoitT5DV1EdGkFS5dCymtzgi75DYHJHBF1mBeAANqDwCovagkyGIe91JqUvNKiDsQX3+nCXC 45WB38MByLX6amyJ8+gMsNc/2MuR+Mp7UefeSgoLSg== X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Umang, Am 18.01.23 um 12:58 schrieb Umang Jain: > Drop custom logging from the vchiq_core.c and use standard kernel > logging infrastructure (dev_dbg() and friends for struct Device > stuff) and pr_info (and similar) for vchiq_services/instances things. i'm sorry but your "staging: vc04_services: vchiq: Register devices with a custom bus_type" is still in my backlog. I was busy with some regressions on bcm2835/bcm2711. > > Signed-off-by: Umang Jain > --- > .../interface/vchiq_arm/vchiq_core.c | 450 ++++++++---------- > 1 file changed, 204 insertions(+), 246 deletions(-) > > diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c > index 4e705a447a62..7b3c57326d28 100644 > --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c > +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c > @@ -227,10 +227,11 @@ static const char *msg_type_str(unsigned int msg_type) > static inline void > set_service_state(struct vchiq_service *service, int newstate) > { > - vchiq_log_info(vchiq_core_log_level, "%d: srv:%d %s->%s", > - service->state->id, service->localport, > - srvstate_names[service->srvstate], > - srvstate_names[newstate]); > + struct vchiq_state *state = service->state; > + > + dev_info(state->dev, "%d: srv:%d %s->%s", state->id, > + service->localport, srvstate_names[service->srvstate], > + srvstate_names[newstate]); > service->srvstate = newstate; > } > > @@ -255,8 +256,7 @@ find_service_by_handle(struct vchiq_instance *instance, unsigned int handle) > return service; > } > rcu_read_unlock(); > - vchiq_log_info(vchiq_core_log_level, > - "Invalid service handle 0x%x", handle); > + pr_info("vchiq: Invalid service handle 0x%x", handle); Some log levels like this here doesn't make sense. I would expect here a warning or an error. Could you please have look at it in a separate patch? Thanks