Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp693040ybb; Fri, 3 Apr 2020 10:03:58 -0700 (PDT) X-Google-Smtp-Source: APiQypLv9uWJloQrq06fatuk79C+04hK9qALPZjZ5uygmVa5hExPe3/QzpZ5cOHGLqf7B/erCTRE X-Received: by 2002:a9d:6b98:: with SMTP id b24mr6972411otq.242.1585933438347; Fri, 03 Apr 2020 10:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585933438; cv=none; d=google.com; s=arc-20160816; b=xqg6ZIJtdaFm9ZCVPByxZ+PeTgH3VbZfM2BDFVzRRo7CHM2wEqcz/Qx+yBdJ58a7HE NGe96fEtBxDgNtsGKe9Snc1wqwvBM1cOLG20YFxzxJQLzEkbiXGRB39rFHJrScMUUI0G B1d0z+BiY03L4mAIW6EkXO0NApilyzNJUQmMiKQUegBsAt5kdGlgLR/dOKWQ07qBAH9x 8b8sk8WlNAqufrYVskgJK+/p/X01JcpqM6rzpjB1lvUaNRb7ruP2whntdfosbVmSLbz0 CJYhIMV+3ICOKa4Yfg7v8RCZ3g1PtawVt9UaoajB1pwzUjYBxY7Cc4vo+Fumm3xCAePl hezQ== 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:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=9GAbZWuPcTKjEXz3EeVxBNWDn+mYvVxInvRy5MFxrck=; b=tttRuXKq70aOCnluYDkHxcryuig//ZBPsRqeMvlQaZ+J4Ct5Fr1YM0UCxttmMnHkkW F3wm1XLgV4TAnQpSgqg7FkLpjvyXsCyLU6tNt1lDW7YUqrQ9KWakM1+GulJuHzDsN0JO Cc5TeuIn5WE0Oz0qoepYosUfyy/yFR5KGxkNKqMKR0LH22MGpWBpQbZCtTyLAyeQePP1 zTFSzdwAayAloMVW5jskcFWsEtBINvnVvZbp9gsiGPdIeZsOl6fZjvkOb6JFVerSrRyy DuDhQm0XTUPDMOq4h4TXR8sCDgSD6p+RH0zKObHttkTbkl6C1IzyAEG15WW0gvjVLDI0 uIVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=exY1mdH5; 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 k30si3609363ool.81.2020.04.03.10.03.43; Fri, 03 Apr 2020 10:03:58 -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; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=exY1mdH5; 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 S2391065AbgDCQ4x (ORCPT + 99 others); Fri, 3 Apr 2020 12:56:53 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:17956 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391021AbgDCQ4u (ORCPT ); Fri, 3 Apr 2020 12:56:50 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1585933009; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=9GAbZWuPcTKjEXz3EeVxBNWDn+mYvVxInvRy5MFxrck=; b=exY1mdH5usVAVNjV1pjSINXxmhIkZn2PrpNoO3Ia8XC1gVI+avMdfPCnAwA24rSTCeENORyb OUsJD1rxvm1r7l3Jzvq/NZyJX1gi/pw/CaC6E77oVTNKjeK1L5iQBtUd+BHRPEytYd8FDacd OF++izEHc3I5NeilEzoxtPDPVmk= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e876ac7.7fc470598378-smtp-out-n01; Fri, 03 Apr 2020 16:56:39 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 658F5C44791; Fri, 3 Apr 2020 16:56:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [10.110.122.98] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: wcheng) by smtp.codeaurora.org (Postfix) with ESMTPSA id 171CCC433D2; Fri, 3 Apr 2020 16:56:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 171CCC433D2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=wcheng@codeaurora.org Subject: Re: [PATCH v5 2/5] phy: qcom-snps: Add SNPS USB PHY driver for QCOM based SOCs To: Vinod Koul Cc: agross@kernel.org, bjorn.andersson@linaro.org, kishon@ti.com, robh+dt@kernel.org, mark.rutland@arm.com, p.zabel@pengutronix.de, mgautam@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <1585880634-15222-1-git-send-email-wcheng@codeaurora.org> <1585880634-15222-3-git-send-email-wcheng@codeaurora.org> <20200403060127.GM72691@vkoul-mobl> From: Wesley Cheng Message-ID: <91262538-6b1e-afd3-97f8-614bb4a54b5a@codeaurora.org> Date: Fri, 3 Apr 2020 09:56:37 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200403060127.GM72691@vkoul-mobl> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vinod, Thanks for the review, I'll address these in the next version. On 4/2/2020 11:01 PM, Vinod Koul wrote: > On 02-04-20, 19:23, Wesley Cheng wrote: >> This adds the SNPS FemtoPHY V2 driver used in QCOM SOCs. There >> are potentially multiple instances of this UTMI PHY on the >> SOC, all which can utilize this driver. The V2 driver will >> have a different register map compared to V1. > > Some nitpicks below, otherwise: > > Reviewed-by: Vinod Koul > >> +/** >> + * struct qcom_snps_hsphy - structure holding snps hs phy attributes >> + * >> + * @phy: generic phy >> + * @base: iomapped memory space for qubs2 phy >> + * >> + * @cfg_ahb_clk: AHB2PHY interface clock >> + * @ref_clk: phy reference clock >> + * @iface_clk: phy interface clock >> + * @phy_reset: phy reset control >> + * @vregs: regulator supplies bulk data >> + > > This is missing the marker * for kernel doc > >> + * @phy_initialized: if PHY has been initialized correctly >> + * > > This empty line is redundant > >> + */ >> +struct qcom_snps_hsphy { >> + struct phy *phy; >> + void __iomem *base; >> + >> + struct clk *cfg_ahb_clk; >> + struct clk *ref_clk; >> + struct reset_control *phy_reset; >> + struct regulator_bulk_data vregs[SNPS_HS_NUM_VREGS]; >> + >> + bool phy_initialized; >> +}; >> + >> +static inline void qcom_snps_hsphy_write_mask(void __iomem *base, u32 offset, >> + u32 mask, u32 val) > > coding style mandates that second line should start at preceeding line > opening brace :), so can you please make it: > > static inline void qcom_snps_hsphy_write_mask(void __iomem *base, u32 offset, > u32 mask, u32 val) > -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project