Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp522219pxa; Fri, 14 Aug 2020 10:15:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+P4YN8MRf/eIWpGMRrFhFyoc5ui6f+KLKlXDLS0GUmZtckG5FNatCL+1aWN8Od+5eQjDI X-Received: by 2002:a17:906:6b87:: with SMTP id l7mr3220258ejr.198.1597425311705; Fri, 14 Aug 2020 10:15:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597425311; cv=none; d=google.com; s=arc-20160816; b=JvGv/Yw6kryl3BNk2ca2UEE0Wcmqfz1bfqV+LpNtlg+N1T0kVwa9pHB17mOd/Yk4pp fW+aeKXCz3bNCI56yzwzqWoI8Y8bRPg6xbUZOm3BNIaJwkLh1EaRNWMvbxho5LIQKAXW tDVUuEEvdUUcdVN+zbFfxu1hOKUREz5rIMsyUPgSnMwk5BtkMpbPeIUucS5q5/NxZvZO tbSNdAhvWohwKhVoOFT5aZNT1wTPH86z2OQ9khUcbg/9vVdN/NHhkm907A2jDQF5q67a NGvujouWqoiWwX9v0Ads73hMR2T/oc1eIkp8HZs6gc5M58LbZra+lE7DjMW+Dwid/27A 8XJQ== 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:dkim-signature; bh=oTnqLQcun1oAd2jUgg7+f/faki/0xT/2c6vC8h9xpbw=; b=ft/LPwr+F5Li/GRiz7pAntQTyvMDfB73kl/kxH9/+a6Ye4wFOsp8k80Iyekjso6T5B B4FSRRDrQbHvsqQ6rAuNiaZ2flIXryTA8vmvVlsrsmMEpRVxDuSS6a6jQXP5R75/G1DN NU4JjZnP5dTdePlaUGW/1VrbzoETKWEYDYLgWVpu86TkSkvvbMyrKHtRG2dbXh2vE+Jx eqcR8zlGXzzdxobpnPKPkwf1CEEUkaCiQQWtkDEl6kyhQYE1FrdwDqZ0gRRqPaZiQnu/ GPGMWEA8NkTtopqOKQv/c/WcM9YzICh7l7C6hZidJT7VtSVSykMasGCrU5lKh4PPkXcA T9kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N3zwz4kQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x8si7173339edl.249.2020.08.14.10.14.30; Fri, 14 Aug 2020 10:15:11 -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=pass header.i=@linaro.org header.s=google header.b=N3zwz4kQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728403AbgHNRMQ (ORCPT + 99 others); Fri, 14 Aug 2020 13:12:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728395AbgHNRMP (ORCPT ); Fri, 14 Aug 2020 13:12:15 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13964C061386 for ; Fri, 14 Aug 2020 10:12:14 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id h8so5180493lfp.9 for ; Fri, 14 Aug 2020 10:12:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=oTnqLQcun1oAd2jUgg7+f/faki/0xT/2c6vC8h9xpbw=; b=N3zwz4kQcVvMDiCWrRIXQz2rRp6Dmu6TWX489BnbDLouEXbPNNxetAQAHQn7vcfPdu D9dcGIwxDz5vTquvaVCKu8GwUZ6SxBY5udXv80hJnLBc4vR2jd3e4cGFahp67Xp6XZWE mxNwn2EuMvR6D0c6CP82qtNyRQrf2d8koRH03SsRhkmFhZqZWBxAlMQtIJMenvRsPp79 9bea1KRn3PBOL0pvZXzkH2XhjfiP90TOPxtXA0XCDKHhIlzkJ+CPggG27aaCShGiNEC1 RnhRYAG3Nx4KQ15TPkWH5lpOwxRJoFnFcRUEEF0+RctAWC1tIcMCmdR4DKvdpiyvkLPf VQdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oTnqLQcun1oAd2jUgg7+f/faki/0xT/2c6vC8h9xpbw=; b=HLsomTiJNuR5huxnDJXKmrNZnm1gH9KR354EfImwkS5ODwS2Q0MfI0sI2HuzNZ9636 BFjyPWil8ZLLAiCg5wMh3ms2ft2PEj7edZaZIc5J4P8QS8bLRY2ObhCcA5f+RIjWhlCY sFNETYKp03SEsLxkMZGg+2hgZqH8siG7Izo/33dbpv3oUOY8LpE/OppnWVA0bOklmmPA Fgct7MwIp1dG42HBayOmsZUj0RzOejXpQd71NTaPUgu8AbRhtr/+s7HYW8FZ9Gi/66aA nKcdnWQPFm4u/lza0fsNpspbOImgV0uS6uzCJZrU8hWa6MiOKwQuOqUqYEoUECXOqO4P t3eg== X-Gm-Message-State: AOAM5320ED3FdwUOX+zWk5Cd7AfT/4VbXt4eM1tND9Q9rrQx9bWMsprp gN8z/w+M0ZSIpbRHu/ZxpO+QCg== X-Received: by 2002:ac2:5468:: with SMTP id e8mr1656731lfn.83.1597425132894; Fri, 14 Aug 2020 10:12:12 -0700 (PDT) Received: from [192.168.43.7] ([188.162.64.200]) by smtp.gmail.com with ESMTPSA id q10sm1874788ljh.110.2020.08.14.10.12.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Aug 2020 10:12:12 -0700 (PDT) Subject: Re: [PATCH v10 2/5] drm/msm/dp: add displayPort driver support To: Tanmay Shah , swboyd@chromium.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, robdclark@gmail.com Cc: linux-kernel@vger.kernel.org, freedreno@lists.freedesktop.org, seanpaul@chromium.org, daniel@ffwll.ch, airlied@linux.ie, aravindh@codeaurora.org, abhinavk@codeaurora.org, khsieh@codeaurora.org, Chandan Uddaraju , Vara Reddy , Guenter Roeck References: <20200812044223.19279-1-tanmay@codeaurora.org> <20200812044223.19279-3-tanmay@codeaurora.org> From: Dmitry Baryshkov Message-ID: <324d61b6-fc26-03ea-f8af-ff74a9767da2@linaro.org> Date: Fri, 14 Aug 2020 20:12:09 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200812044223.19279-3-tanmay@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed 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 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). > + clk->type = DSS_CLK_PCLK; > + else > + clk->type = DSS_CLK_AHB; > + } > + } -- With best wishes Dmitry