Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2130506iof; Tue, 7 Jun 2022 20:45:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuCXc9X23hoiSohZRIs4SEG+zmiveLlxVN8R/8fusiIv7eePTtYtvw5QFlTRIKttT83r51 X-Received: by 2002:a17:902:bb90:b0:156:2c05:b34f with SMTP id m16-20020a170902bb9000b001562c05b34fmr32647923pls.53.1654659945545; Tue, 07 Jun 2022 20:45:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654659945; cv=none; d=google.com; s=arc-20160816; b=DQxJyChHfHRRZiNqAEibZsDRAhgiQ7Aer/bQWzUUTcbLWqHGYxTOifpYzNjaSf/WOG Xd4s44udPezv2mHplCfEajc+Z83GUd6V7gUqN+VaGNzbU+3a9v4k+FXDVgCMp+QgR0WJ JKi5StVRL3BkIllQksQTXgeMc3QqesDHT5gib/KpbWZgxTgmAUIZbMQlshAJkX0bYfTR v4Q9JdQfbgZmbKbsOwWCHam0hVKRGzLtzmXupIcDVzXaPeBCuodrABryUSj2O3XkjiHE l556+FynuKBIKr043vJ+vloYu9k/nz97ArEii4m0NPuwJC3+G2ETi8+ym8N+ac94fNw3 kGMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zXLPID8oAfim2orSN/AcOHtwmvytCyCf345FsZ9BdM8=; b=J2W6enF7LTTseu3SwEnRwo7e2yrAR7RYaDvJt3DDq8GWCc9ybsbVUT1IRxQQaEj+fv hWnHzGHCQ8136O/blX7S0l5wBEZx09J8PE34kyv8MMCVd7Y61ubIK/tK+cA0AgKVo+iH geuN/1okeFp5SMjNG+ap0F7Jo36YxHDXuX2TDSeXNDcdbSvyN25cJzJmYL1TGNLPhqfr pcCszES+ya0sJ7xCN8fG6bJ0QY8hj+F7mMgtWUYYqvbUZtdgCRZrIbw+zpJsrgtZc+AE QZX5grUX9IK0Bq4PCS10farG7D9f18m7q60WRI9pqhjt+oepH6DNdbNKZ2v8aWb8eb+r U2eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bbHcdTFc; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id bc14-20020a656d8e000000b003fba60e01e1si30081112pgb.546.2022.06.07.20.45.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 20:45:45 -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=@linuxfoundation.org header.s=korg header.b=bbHcdTFc; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B2F092E7C8A; Tue, 7 Jun 2022 20:03:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385132AbiFGW03 (ORCPT + 99 others); Tue, 7 Jun 2022 18:26:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380797AbiFGVQ7 (ORCPT ); Tue, 7 Jun 2022 17:16:59 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 257CF52B3D; Tue, 7 Jun 2022 11:57:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 97281CE244E; Tue, 7 Jun 2022 18:57:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B7A2C385A5; Tue, 7 Jun 2022 18:57:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628245; bh=4M718MF/c9068y/4EsWfAgSxjWRXy65Wpxn5CQQyKp8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bbHcdTFcdH1DN6TeOayvjBvyXub0EXsmQqbQen5G/L0N6LWTBOqaQ3Uy6fufcnm/x dnOqbPGcm0E+VWVgimTCtFLwynh34L5vrRUAgfSS9XzEH86SZAhWlu7Yemxq8p95FM A2enMTi+ubIh6fDpXpZt7NhT2VrYZlMaE8IU1vYI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chen-Yu Tsai , Javier Martinez Canillas , Geert Uytterhoeven , Sasha Levin Subject: [PATCH 5.18 259/879] drm: ssd130x: Fix COM scan direction register mask Date: Tue, 7 Jun 2022 18:56:17 +0200 Message-Id: <20220607165010.369618689@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Chen-Yu Tsai [ Upstream commit efb37e66b7572ce4696aa0ac21675e17d6b9a17d ] The SSD130x's command to toggle COM scan direction uses bit 3 and only bit 3 to set the direction of the scanout. The driver has an incorrect GENMASK(3, 2), causing the setting to be set on bit 2, rendering it ineffective. Fix the mask to only bit 3, so that the requested setting is applied correctly. Fixes: a61732e80867 ("drm: Add driver for Solomon SSD130x OLED displays") Signed-off-by: Chen-Yu Tsai Acked-by: Javier Martinez Canillas Tested-by: Geert Uytterhoeven Reviewed-by: Geert Uytterhoeven Signed-off-by: Javier Martinez Canillas Link: https://patchwork.freedesktop.org/patch/msgid/20220308160758.26060-1-wens@kernel.org Signed-off-by: Sasha Levin --- drivers/gpu/drm/solomon/ssd130x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/solomon/ssd130x.c b/drivers/gpu/drm/solomon/ssd130x.c index ce4dc20412e0..ccd378135589 100644 --- a/drivers/gpu/drm/solomon/ssd130x.c +++ b/drivers/gpu/drm/solomon/ssd130x.c @@ -61,7 +61,7 @@ #define SSD130X_SET_COM_PINS_CONFIG 0xda #define SSD130X_SET_VCOMH 0xdb -#define SSD130X_SET_COM_SCAN_DIR_MASK GENMASK(3, 2) +#define SSD130X_SET_COM_SCAN_DIR_MASK GENMASK(3, 3) #define SSD130X_SET_COM_SCAN_DIR_SET(val) FIELD_PREP(SSD130X_SET_COM_SCAN_DIR_MASK, (val)) #define SSD130X_SET_CLOCK_DIV_MASK GENMASK(3, 0) #define SSD130X_SET_CLOCK_DIV_SET(val) FIELD_PREP(SSD130X_SET_CLOCK_DIV_MASK, (val)) -- 2.35.1