Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4050619yba; Tue, 7 May 2019 11:15:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzoIZf9uXFlgktfCZOv07lDe/P/vxQn7jeTaIjlNblo9wtvQE2DqGigiXF/7lPovg1rBhbn X-Received: by 2002:a17:902:ea:: with SMTP id a97mr34914113pla.158.1557252916624; Tue, 07 May 2019 11:15:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557252916; cv=none; d=google.com; s=arc-20160816; b=Epu8gJr4v+VQJEvHenhaE461xObA98APdYR8O0eW8hW4HRu8VKt46lRplx7t7HXQAx Nc3QxqPKlLpkLJejj9eC74JHo9b4bRoi9X4XldnKtjqMz57mJXGtLoUYwkLgFt3k54pQ j+UFM+QHGW35gzjhppKUQ6JAoCH25F0/s9obkEmXpTpHpEsCbXnCmQTrRDC4twpuxwvI fiiTxELTthrhEaktirFJklYaWifBnOU1EtIb7CL50Snawc3ckYM4NMhmrncL3lKC4bJa 2AXX1EqvxhXBZhUibGbG/u9epMAJPc0G5rj94YSsbHRxPpduogK0ZfUdD039+fyr7SCm Ihrg== 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=ooL+4GsmJLdgNKBhsd87sfg2jQtOwfY5152tSU06FaY=; b=qkOxNY4xgEc0OsL48j3z1ZsVqJFexvjsEo/gft+4Qrrzjp4tFRbOAEkgWxtio7w8qE mHmxYH/E1qlxvFpcVdATS/FBR3C3siyLP2E9nLiJri/luXCLd4PkmqPhHQHZM5WJ2BBb 9xz1NqYhc8unClhtsPi+xY2LB5MzYiSPMcBvXBAzpn2hn1pPXwimnG9zkPWHOtPrS8bx upynOw43NiT/pTeKKZ5kZo7IHcS3v7lJbV5J9f38SlruErx0EPqu3+WcLh6A9fvlU1hK ngHDA3Zo9AcIzjRooKAv7HgkEKHNIjffhSw3y0rphXLQplPau/kP8iAOiMqMhfxLplTW qGlQ== 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 s8si19564234pfm.132.2019.05.07.11.14.59; Tue, 07 May 2019 11:15:16 -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 S1727251AbfEGSMb (ORCPT + 99 others); Tue, 7 May 2019 14:12:31 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:38016 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725859AbfEGSMa (ORCPT ); Tue, 7 May 2019 14:12:30 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 993CD803CC; Tue, 7 May 2019 20:12:25 +0200 (CEST) Date: Tue, 7 May 2019 20:12:23 +0200 From: Sam Ravnborg To: Guido =?iso-8859-1?Q?G=FCnther?= 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: <20190507181223.GC15122@ravnborg.org> References: <299e28042e0a24c0cde593873bdfb15e18187a92.1557215047.git.agx@sigxcpu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <299e28042e0a24c0cde593873bdfb15e18187a92.1557215047.git.agx@sigxcpu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=VcLZwmh9 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=7gkXJVJtAAAA:8 a=LmRf8X1h8ZN8rbtOHcgA:9 a=QEXdDO2ut3YA:10 a=E9Po1WZjFZOl8hwRPBS3:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > + > + dev_dbg(&phy->dev, "hs_clk/ref_clk=%ld/%ld ⩰ %d/%d\n", ^ There was another of the symbols my terminal cannot show.