From: Robin Murphy Subject: Re: [v1] drm/arm/mali-dp: Disable checking for required pixel clock rate Date: Wed, 15 May 2019 18:14:10 +0100 Message-ID: <3f87b2a7-c7e8-0597-2f62-d421aa6ccaa5@arm.com> References: <20190515024348.43642-1-wen.he_1@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190515024348.43642-1-wen.he_1@nxp.com> Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org To: Wen He , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "liviu.dudau@arm.com" Cc: Leo Li List-Id: dri-devel@lists.freedesktop.org On 15/05/2019 03:42, Wen He wrote: > Disable checking for required pixel clock rate if ARCH_LAYERSCPAE > is enable. > > Signed-off-by: Alison Wang > Signed-off-by: Wen He > --- > change in description: > - This check that only supported one pixel clock required clock rate > compare with dts node value. but we have supports 4 pixel clock > for ls1028a board. > drivers/gpu/drm/arm/malidp_crtc.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/arm/malidp_crtc.c b/drivers/gpu/drm/arm/malidp_crtc.c > index 56aad288666e..bb79223d9981 100644 > --- a/drivers/gpu/drm/arm/malidp_crtc.c > +++ b/drivers/gpu/drm/arm/malidp_crtc.c > @@ -36,11 +36,13 @@ static enum drm_mode_status malidp_crtc_mode_valid(struct drm_crtc *crtc, > > if (req_rate) { > rate = clk_round_rate(hwdev->pxlclk, req_rate); > +#ifndef CONFIG_ARCH_LAYERSCAPE What about multiplatform builds? The kernel config doesn't tell you what hardware you're actually running on. Robin. > if (rate != req_rate) { > DRM_DEBUG_DRIVER("pxlclk doesn't support %ld Hz\n", > req_rate); > return MODE_NOCLOCK; > } > +#endif > } > > return MODE_OK; >