Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6245966ybi; Wed, 31 Jul 2019 10:49:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRpluh4/JvVnsHWyRmnUxU00CkLwn80p+65bIGlDc+psC7QAMNGwNgdWAVazXg6nr7ixKy X-Received: by 2002:a62:7890:: with SMTP id t138mr39724478pfc.238.1564595378854; Wed, 31 Jul 2019 10:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564595378; cv=none; d=google.com; s=arc-20160816; b=GxKnLxTs8qAOtIDT1uk/pdy5RUwli+E/zUm0ECfiW6zGEFq4/b2mrNdbalO7MihRVs nZke7gMeWxC9tauwPskSN1z4J4x3H0o7O6d4dEhLPfMLcKL0ctRppt+A17sD+RV+yv0Y EnxjMTmWrS0zJ7P+ygQvNnYzJyZrUlmB4W75dWJeqww3K2kWwgqTO+kq+14PnvtAz0+E 9UBgvo9bW6xXzsbld5NHJiU1ZukXt5Lr6Q8wgAp4RsHLgR66Wwdlj2O1NgfydCLdy1OE uxy8/u3ZInmal5N432gDeBBjdWLKS0Xqsl/noHWZ7x1L9UTDwnPSc/c1VjW2Sc5c2ARa fxpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=yvJYSYQeBRox8A6SfxmeIG4KgcVgY8+bGwOEQWWCmaE=; b=ALndIiVet1PJu3nz9oiSV8DB8soYpJUvPe94yf+s3MK0kxUo1GzY4rIuV8wH5NhSE4 R1N0TI/4tGGuvhjs+EDslccjaVlkYPYhcPoRjIcH7j81VRWXoVAS2hMUM4F8oSbGgeb1 qwUNIVPPb51c7kNCosZLy9aUTIzY0y6u/bdWlOFoTEl9o+YMDf3UbcflW57VBZkhHRu8 gmJJISGHRl5xL2/s+zI+uWCMLY5ZpQZ6IPs4KyGjFEpevVJiPXW77dIzBzeJU6UnzuBt ybh2/SCPDBYFRJSJTAZZBXbBUNDy1HCIdMzlaWi8Kq/iczcXOGNCjaUPLxFaQx/fghz2 9lew== 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 g90si30959756plb.282.2019.07.31.10.49.23; Wed, 31 Jul 2019 10:49:38 -0700 (PDT) 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 S1727482AbfGaQyF (ORCPT + 99 others); Wed, 31 Jul 2019 12:54:05 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:55740 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726073AbfGaQyF (ORCPT ); Wed, 31 Jul 2019 12:54:05 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id AF4D4FB03; Wed, 31 Jul 2019 18:54:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WqV7ea2juLfn; Wed, 31 Jul 2019 18:54:01 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 9B60D46D8A; Wed, 31 Jul 2019 18:54:00 +0200 (CEST) Date: Wed, 31 Jul 2019 18:54:00 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Fabio Estevam Cc: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Lee Jones , DRI mailing list , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel , Robert Chiras , Chris Healy Subject: Re: [PATCH 3/3] drm/bridge: Add NWL MIPI DSI host controller support Message-ID: <20190731165400.GA30745@bogon.m.sigxcpu.org> References: <3158f4f8c97c21f98c394e5631d74bc60d796522.1563983037.git.agx@sigxcpu.org> <20190731143532.GA1935@bogon.m.sigxcpu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Jul 31, 2019 at 11:43:47AM -0300, Fabio Estevam wrote: > Hi Guido, > > On Wed, Jul 31, 2019 at 11:35 AM Guido G?nther wrote: > > > The idea is to have > > > > "%sabling platform clocks", enable ? "en" : "dis"); > > > > depending whether clocks are enabled/disabled. > > Yes, I understood the idea, but this would print: > > ensabling or dissabling :-) The 's' is from the '%s' format specifier: [ 2610.804174] imx-nwl-dsi 30a00000.mipi_dsi: [drm:imx_nwl_dsi_bridge_disable] disabling platform clocks [ 2710.996279] imx-nwl-dsi 30a00000.mipi_dsi: [drm:imx_nwl_dsi_bridge_pre_enable] enabling platform clocks I'll change that to use the full strings though since i also had to look twice to be sure there's no double 's'. > > > > Same here. Please return 'int' instead. > > > > This is from drm_bridge_funcs so the prototype is fixed. I'm not sure > > how what's the best way to bubble up fatal errors through the drm layer? > > Ok, so let's not change this one. > > > I went for DRM_DEV_ERROR() since that what i used in the rest of the > > driver and these ones were omission. Hope that's o.k. > > No strong preferences here. I just think dev_err() easier to type and shorter. > > Thanks for this work! Thanks again for having a look! -- Guido