Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4731454yba; Wed, 8 May 2019 01:38:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjGpG5kIUETSzzJw7y2zNYVrX1XtYobCkAbwRI5puK3C7U3yRMz1aI9Ge/6xr0ooyS1ld/ X-Received: by 2002:a63:188:: with SMTP id 130mr45640845pgb.391.1557304693616; Wed, 08 May 2019 01:38:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557304693; cv=none; d=google.com; s=arc-20160816; b=pBADsrarRm6yZrlhwYW0xF88ejrCd2DB92T9J+ZyJePJNYNdoF1TN4feiCroy3FKEd w5qRaMFNoMg3ey0RWNFehcI8yuPcicMLDx761HnGi8PIYD/SiItVznXkxV0+HLtuRPeW WncnlPjGxAc47ZcG79hNgwhaL03tqnw6W3fXSDWW2ZCWQkvYuwhbDo7KIE6jy5XKULj5 l1GlIkkmTSxDt9S2VIlfYTZDE/ushVy7cmm42hawMBg8FLDoaFyEHq1FnYY+6dFtY/Aj LkmTAorEHPihiwSZW+74M9vsejTOef0WCcwyTpne00GTVKUkHKAJGkgOzUS7FkKlmCxl hZjg== 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=h0/W4XkWnN9/BgEcwujTceE3t35eHuZyeim/RDZF7Uo=; b=FX/xZBitPfabHiKshS34AeaTYbZUkPMEnhIwEAsRNW7PupH8vVAkdu0O/zeR6qNGpe yQun5EjeQQa9Iv2oLZdqvglHaKAjEXO8HrUEw5tAzhWSwmGS2SKz6G1UQmr3QXD01/tm 63/NOjPPOluzOj29E+LJ7f3ujy2plu9Pxu/83I5LDJEc9hCZSm+fP3f/eHYIPEqxtq8E RotDRBNcdhHKbYTJjoHqoie2g3EaRFcwllNmcyTyD3nebvt8XojFmXCK+KDjHxU6pudD E5fCcS+vcIgg+saAYR8s6Rm7IPIs82NWkCGT0dh7XVXpIvbT5aOMvJuEDwtwCXfXJEO9 QRAg== 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 m15si8620728pfh.46.2019.05.08.01.37.58; Wed, 08 May 2019 01:38:13 -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 S1726836AbfEHIg1 (ORCPT + 99 others); Wed, 8 May 2019 04:36:27 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:47104 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726387AbfEHIg1 (ORCPT ); Wed, 8 May 2019 04:36:27 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id D5F24FB03; Wed, 8 May 2019 10:36:23 +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 uXuJkEUUAiLW; Wed, 8 May 2019 10:36:22 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 403EA47B7D; Wed, 8 May 2019 10:36:22 +0200 (CEST) Date: Wed, 8 May 2019 10:36:22 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Sam Ravnborg Cc: Kishon Vijay Abraham I , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Thierry Reding , Andreas =?iso-8859-1?Q?F=E4rber?= , Martin Blumenstingl , Heiko Stuebner , Johan Hovold , Lucas Stach , Abel Vesa , Li Jun , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Robert Chiras , Maxime Ripard Subject: Re: [PATCH v10 2/2] phy: Add driver for mixel mipi dphy found on NXP's i.MX8 SoCs Message-ID: <20190508083622.GA3948@bogon.m.sigxcpu.org> References: <299e28042e0a24c0cde593873bdfb15e18187a92.1557215047.git.agx@sigxcpu.org> <20190507181223.GC15122@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190507181223.GC15122@ravnborg.org> 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 Tue, May 07, 2019 at 08:12:23PM +0200, Sam Ravnborg wrote: > Hi Guido. > > Looks good now, stumbled upon a few details I missed in last round. > With these considered / fixed you can add my > Reviewed-by: Sam Ravnborg > > Sam > > > +#define CM(x) ( \ > > + ((x) < 32)?0xe0|((x)-16) : \ > > + ((x) < 64)?0xc0|((x)-32) : \ > > + ((x) < 128)?0x80|((x)-64) : \ > > + ((x) - 128)) > > +#define CN(x) (((x) == 1)?0x1f : (((CN_BUF)>>((x)-1))&0x1f)) > > +#define CO(x) ((CO_BUF)>>(8-(x))&0x3) > > A few spaces around the operators may help readability a little. > > > +static int phy_write(struct phy *phy, u32 value, unsigned int reg) > > +{ > > + struct mixel_dphy_priv *priv = phy_get_drvdata(phy); > > + int ret; > > + > > + ret = regmap_write(priv->regmap, reg, value); > > + if (ret < 0) > > + dev_err(&phy->dev, "Failed to write DPHY reg %d: %d", reg, ret); > > I have recently learned that one has to remember trailign "\n"- please > add. > Check all other dev_xxx as I noticed the newline is missing in a few > more places. Argh...I thought I've fixed these up already but that was in the corresponding NWL driver only. Fixed now, thanks. > > > + > > + dev_dbg(&phy->dev, "hs_clk/ref_clk=%ld/%ld ⩰ %d/%d\n", > ^ > > There was another of the symbols my terminal cannot show. > Thanks! I've incorporated your suggestions and will send out a v11 by the end of the week in case there's more comments coming in. Cheers, -- Guido