Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp688677pxa; Fri, 14 Aug 2020 15:24:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypLR+Zw2uyXuY09UNpenDT8mlImdwp8Bi3QsvFELrrh0uUgNby38SQFTQ5Eu3b7o2SrryP X-Received: by 2002:a17:906:cb91:: with SMTP id mf17mr4411560ejb.527.1597443850692; Fri, 14 Aug 2020 15:24:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597443850; cv=none; d=google.com; s=arc-20160816; b=fiQDN7ZOPJ5mDt5lAvTGqmzZ2nuIvon0tbiD1c9gPiI5cRD9u2woDK+6Hw1Vm0KiiW qts9QT4JV9pCKIFqnfOnSgZDAuTPCpFNUbBGoOfaPJBXQD0SsyL81CyBn8M2LJsGUTKg kEu0VMdWMQOOip17uR9kGU+mvC3UsdkuESKvl7imZOEHziVBtRbgVKZcRd46M/IWiKzl EzP9ZzZHdNndL5OEgjlMK0CFvzr0+GD/LLeiMAUst0zrOn1xZ/FABKrW/zGu1GV4lkWG uRH31bU4Jh7MfDi33P1wesVymYxe+XJgjytN9QVcrGfOCuYtyS6WpUTpzojb01BGv1z+ Sw8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=2qKj4SNXimMKoQyi+qljyl20bGjTHCPTKE/IaXeY4B8=; b=oWOvIWv8cSay7ojKiAUB+30Ljrnv/aJZl0YzeDsCnvP3oHjcxehuHo4H77leM8ByFW Oyp+BYeb3aK5p0d6gtQWAz39xOTX3XGsJqQ5l10ixt5o0mNwk0naGqxCNbhXZ8TzmZ1x OkP7Tesm68q7JfidcpqQ8bj4YWz3HIEU5e2ekFau58k4mOVMvhi6pZwkoNLxeNUe6mTX k9hAiHEH3L8JGK9zQAHtgHJ+COsm5pQrowyTvSWKqkChhXA9PZ9NtExRgFbkGB9ycvHI PabBPI6twS02Yio9My88NSlox4VkEdFN/GxhQen0JqE5QMmoDXIzTtpvHgE19jJ3LhWO B7iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="o40fi2D/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gv23si6109739ejb.307.2020.08.14.15.23.46; Fri, 14 Aug 2020 15:24:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="o40fi2D/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728132AbgHNVPK (ORCPT + 99 others); Fri, 14 Aug 2020 17:15:10 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:41946 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbgHNVPJ (ORCPT ); Fri, 14 Aug 2020 17:15:09 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1597439709; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=2qKj4SNXimMKoQyi+qljyl20bGjTHCPTKE/IaXeY4B8=; b=o40fi2D/QGoZB4+ayVBIYR8lU2cuH76wvj6NXo3p7S+r+cpeFxNvSpfoItLS7IgKBTEZfMOD wlRhqHM0e0lw0e9gTDrsVaqvHoSp/0jJEfSUpOTmd+5cqrplmHYfDsOfQG5i454ao2LUnWg3 KCXJlL9TCc836vnptxZ2zNeM8xI= X-Mailgun-Sending-Ip: 69.72.43.7 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 smtp-out-n09.prod.us-east-1.postgun.com with SMTP id 5f36fecfd48d4625cabca0ba (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 14 Aug 2020 21:14:54 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 072FFC433CB; Fri, 14 Aug 2020 21:14:54 +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 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: tanmay) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5FBB1C433C9; Fri, 14 Aug 2020 21:14:53 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 14 Aug 2020 14:14:53 -0700 From: Tanmay Shah To: Dmitry Baryshkov Cc: devicetree@vger.kernel.org, airlied@linux.ie, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, swboyd@chromium.org, khsieh@codeaurora.org, seanpaul@chromium.org, abhinavk@codeaurora.org, Guenter Roeck , Vara Reddy , aravindh@codeaurora.org, freedreno@lists.freedesktop.org, Chandan Uddaraju Subject: Re: [Freedreno] [PATCH v10 2/5] drm/msm/dp: add displayPort driver support In-Reply-To: References: <20200812044223.19279-1-tanmay@codeaurora.org> <20200812044223.19279-3-tanmay@codeaurora.org> <324d61b6-fc26-03ea-f8af-ff74a9767da2@linaro.org> Message-ID: X-Sender: tanmay@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-14 10:56, Tanmay Shah wrote: > On 2020-08-14 10:12, Dmitry Baryshkov wrote: >> Hello, >> >> On 12/08/2020 07:42, Tanmay Shah wrote: >>> From: Chandan Uddaraju >> >> [skipped] >> >>> + } else if ((dp_parser_check_prefix("ctrl", clk_name) || >>> + dp_parser_check_prefix("stream", clk_name)) && >>> + ctrl_clk_index < ctrl_clk_count) { >>> + struct dss_clk *clk = >>> + &ctrl_power->clk_config[ctrl_clk_index]; >>> + strlcpy(clk->clk_name, clk_name, sizeof(clk->clk_name)); >>> + ctrl_clk_index++; >>> + >>> + if (!strncmp(clk_name, "ctrl_link", >>> + strlen("ctrl_link")) || >>> + !strncmp(clk_name, "stream_pixel", >>> + strlen("ctrl_pixel"))) >> >> This should be "stream_pixel", I believe. I don't like macros, but >> most probably it would help here. Also function/brace alignment could >> be better (sorry, it really hides the issue here). >> > > Thanks for reviews and good catch!! I completely missed it when I > renamed "ctrl_pixel". > Use of "stream_pixel" is very limited. So, instead of macros direct > name is used. > Fixing function and brace alignment sounds good idea insted. > >> Actually I will reuse dp_parser_check_prefix utility. It's already doing same Job. > >>> + clk->type = DSS_CLK_PCLK; >>> + else >>> + clk->type = DSS_CLK_AHB; >>> + } >>> + } > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel