Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2221814pxb; Wed, 30 Mar 2022 19:48:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMCFA7LSyKr+UrsUgKQbFUkIo9aDHB1RNdTFvKtA8MPaF1PaF6lPWSAwYQWX4uGX+Aqw+0 X-Received: by 2002:aa7:88c5:0:b0:4fb:821:4017 with SMTP id k5-20020aa788c5000000b004fb08214017mr2910659pff.22.1648694919306; Wed, 30 Mar 2022 19:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648694919; cv=none; d=google.com; s=arc-20160816; b=rnZROMRj93o9JAZrK4EHgmD5oovkbqxHAdWh0Ux9ctvCWTrxlwXB+BMWcppygxZyuS PynjIkl/i6tV3ee4MEZs5JrO/cdF745h9A+H0mwlrM01VUQ/peF2p3NoZsD78PYdTlPq UThfnErWdwVyHB3BoueMgwB6e0i7knK1tqyW4Y0QbjR+8hSYc5ZTw2tmjHMa1yNh1K5g A0tHbBN755jPsuQ5T4ZiTwimHID1KB+1WIWKF2sHuPMFO1+FItivmGD50dF9+jdLtLFd xTcSpoSrsp6fmA6ejE7hNfiqn5KmHZPWaoiPag6fVoeHO1CyFpDptMs14ljf7HruvrHw Reog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=4gcVpR2FizLJu6RR3F0oPHrwVu4t3M1EAjmgqnVTUXw=; b=EPnDB/MI2JKTTqLdY1XpZ+Mq8TGwFCVP3q8n1ejkV2WuRySFfsg6ovqmKb6nwQ2b6w sbw0PB7yrliS7LYwUEb6QkE7k/kAxk1RFoAV6prJl8m8yU8l4YBa03p3Y/TyroVZQknV xYa3f91R8DSkVfxiEs5DGFxBAz577dkO5hRi5N8nNNF6THkDMrDpegyjZb1Rd1Lx9eKQ +Rg9YUdSAKj274WxWCNnooXD3SLWz5ngvWmdE1LL9PMSDoZZS9bsUvrfHWQZ5oORKwSZ 876Khtp4BnUXpd/n+3I69cuclAKtERd+shJBEQVMxcOWs3rdNYPo3u8RV4hQRoKGBkxD w91w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jcHoloxM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c3-20020a170903234300b00153b2d16451si7026461plh.89.2022.03.30.19.48.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 19:48:39 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jcHoloxM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D7254BD2FA; Wed, 30 Mar 2022 19:37:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244131AbiC3MVC (ORCPT + 99 others); Wed, 30 Mar 2022 08:21:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347298AbiC3MGK (ORCPT ); Wed, 30 Mar 2022 08:06:10 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D641A63B1 for ; Wed, 30 Mar 2022 05:03:27 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id s11so18474276pfu.13 for ; Wed, 30 Mar 2022 05:03:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4gcVpR2FizLJu6RR3F0oPHrwVu4t3M1EAjmgqnVTUXw=; b=jcHoloxMP+C79gc6dBvnkAdVCQRfO2uj4O8uKZkKARqsKyg1ZbGoC4b5O7l/sOAXJA SFHqCodMGi0ble3CbmlXAfQoy3mrD5wWpVxrpAsTgCbnT2ZFXZaor39CwUro9hliLND3 pbMsCcEUJIyyQBYVfjXH8Byyfxr5avmvBM/BR+05VfzdWvnVNQglk2vLunPD1Mr+ApCA A5iE9zkrlIYRBUdxE7dirJZDht6JYnL+0rdCPLp1f54HsYXZONrHyPGYPYJtQAgXFpYn h9GogzzMAk0ipItJFIlRnVwrVFHPNEkOvuCLxahKny1fqMnjinQwrYd1P5rWYMc7IAYF 4tRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4gcVpR2FizLJu6RR3F0oPHrwVu4t3M1EAjmgqnVTUXw=; b=eKDdDAf9XpPcVWJ0WE4KEVgBAWNFQoXxmjiFEdSjiO8lopuHXp15lCAzajlJ61GxGV aC+JSKCOX0cK9wcPEH63+l+MuDfmmAbvz/5jnjSwonRi2VbR7mi7OFsaGEF4zRS1j81Y T3hE/Xd0LUOFY3ubd9u2qkTpBXHLvXhfw0jh2TcLBi0oIEau0eaH5UTCOUZaBBRsf543 jPaHocj9q7+uXPws+R5l4TF4QlC2rKs2UVv2NXYTlFVfTvy4GlCH8y/HmTmB0kIPdZbA 0jtwZuxGVzaht70mEo5TvwU7LI+E6dakAOKrzNBkTiARSF9Rq+SV7+X4UKf7B3mf1iOW zUcA== X-Gm-Message-State: AOAM533RIK2t3oSBcxY8UN4hYwPqwO/4/BhGFuIaKhy4xsYGR3dZDYc1 p05hL6d0tzsZVVkekrIU+6w= X-Received: by 2002:a05:6a00:114b:b0:4f7:915:3ec3 with SMTP id b11-20020a056a00114b00b004f709153ec3mr33199193pfm.8.1648641807349; Wed, 30 Mar 2022 05:03:27 -0700 (PDT) Received: from localhost ([119.3.119.18]) by smtp.gmail.com with ESMTPSA id c21-20020a637255000000b003822e80f132sm18965408pgn.12.2022.03.30.05.03.26 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Mar 2022 05:03:26 -0700 (PDT) From: Xiaomeng Tong To: patrik.r.jakobsson@gmail.com, airlied@linux.ie, daniel@ffwll.ch Cc: rob@ti.com, yakui.zhao@intel.com, airlied@redhat.com, alan@linux.intel.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Xiaomeng Tong Subject: [PATCH 3/5] gma500: fix a missing break in psb_intel_crtc_mode_set Date: Wed, 30 Mar 2022 20:02:44 +0800 Message-Id: <20220330120246.25580-4-xiam0nd.tong@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220330120246.25580-1-xiam0nd.tong@gmail.com> References: <20220330120246.25580-1-xiam0nd.tong@gmail.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Instead of exiting the loop as expected when an entry is found, the list_for_each_entry() continues until the traversal is complete. It could result in multiple 'is_*' flags being set with true mistakely. To fix this, when found the entry, add a break after the switch statement. Fixes: 89c78134cc54d (" gma500: Add Poulsbo support") Signed-off-by: Xiaomeng Tong --- drivers/gpu/drm/gma500/psb_intel_display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/gma500/psb_intel_display.c b/drivers/gpu/drm/gma500/psb_intel_display.c index 42d1a733e124..85fc61bf333a 100644 --- a/drivers/gpu/drm/gma500/psb_intel_display.c +++ b/drivers/gpu/drm/gma500/psb_intel_display.c @@ -134,6 +134,8 @@ static int psb_intel_crtc_mode_set(struct drm_crtc *crtc, is_tv = true; break; } + + break; } refclk = 96000; -- 2.17.1