Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp517222imn; Tue, 26 Jul 2022 02:04:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1us/AGwcsiudQ1BSm+cgdOOT9UnGBjDJGDspnpbuiKcrHeVhQbfhnAf314m7OxylWwhp0pb X-Received: by 2002:a17:906:9751:b0:72f:1b36:e1de with SMTP id o17-20020a170906975100b0072f1b36e1demr13482154ejy.451.1658826242855; Tue, 26 Jul 2022 02:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658826242; cv=none; d=google.com; s=arc-20160816; b=gAb6RFk7aJHWvz1BroOfy3yNZxBrctHG0WlJsrs7XqWr+CbDq982aJcMIfOZ7uq/Am yT036Jbbv1wubso2EQhdw8G65FazoSYGbGJ12G0p+E+6yzc7PWpOYIl/imtfHxWkQoa5 OWaCGLjb26e1TvJvWSzN2QYS9eJqswBI0CuNqi88pTe62d6mbEnuLqbNhiqXP5HvDZwz yLy+lA48D+G7OYS6JdHIcLT6Bcsqh1cDrBEoDEaaAskmFpZ5UPFR8zb2koxtOEJQBA37 VPPW5dD5G7OQd27X9tX51tl6kkmMgLkL1iC6R9TwxJz5zJZ4udcDzlX/5C/WemxcD2vS 4/YA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=6czwj1HzPSVht5LKBHhjYm6MovKhK084JbpR2sXNUxE=; b=yny1ajALfQ7AqcLzYJeT2ekFqIPFglXG5UtJRqR5dBN5jigygnjUfoyelUslH9YEa/ gepw0IkTxPsPOHUKqUk+ZNyzzpm3nZ955IGmdY7+tuFDFpgKM8fVhv4AnQpWeFImh/aW RPDQY121jSlk3NQgA1DTaSw683qvKSlExLD9RUAHt+oCZ8rjVWqT2EbG0Z7dXiwOclpx CHJc00ZKOMAMtbYfI6NbhrYholhWZoKlN6zpVfBTD8cl4k5twNTwJRpm3nWi+L+koJvf n6xWXXIizZBmVO03ydJzyOYJ+zx7NvxJTQVtqieSOC3lhoxOwRU1mwKGnzz8PuF4Kueg 7txg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@streamunlimited.com header.s=google header.b=PaanFb9C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=streamunlimited.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z4-20020a05640240c400b0043be359d5c5si7937594edb.105.2022.07.26.02.03.38; Tue, 26 Jul 2022 02:04:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@streamunlimited.com header.s=google header.b=PaanFb9C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=streamunlimited.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237927AbiGZIXL (ORCPT + 99 others); Tue, 26 Jul 2022 04:23:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237797AbiGZIXJ (ORCPT ); Tue, 26 Jul 2022 04:23:09 -0400 Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CB6925589 for ; Tue, 26 Jul 2022 01:23:07 -0700 (PDT) Received: by mail-qv1-xf29.google.com with SMTP id t7so10142137qvz.6 for ; Tue, 26 Jul 2022 01:23:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=streamunlimited.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6czwj1HzPSVht5LKBHhjYm6MovKhK084JbpR2sXNUxE=; b=PaanFb9C2onSyyBOzQuSewIeVp/JBcVJ6X2rfbbWQIfn89XDfLM+X2YNKzqdJolbxD sLAzF1ykNA08gre0tABu2WPkSCctDo3MQ1aGfZd7dLvtTyQ/+LaHV3mWP+DYrnK50ScQ ljQqIVT+LmzG3jQEX/dfAn0wHqLNAXV3noJmo= 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:mime-version :content-transfer-encoding; bh=6czwj1HzPSVht5LKBHhjYm6MovKhK084JbpR2sXNUxE=; b=ipP6upE4q0TR5lhmtDyI34el+FWRFMLU9gO5qiplh8u2A8EcuYzGGjqo/PUnassub7 rtmZvWFyJYjL2IfGl6vyqbWNFQ4XDDP2RBoUSOg1BN2Zx1LpD4yKhfVnF9G6PqO1couW BRQBoSAxphRBb7dB4G6o1dKpUWL46+eKLczik5BeNvW+xwMeq0bpbP0QST/xn3c+Gjqu d0pGlZw53MdgmX6sPraEt/DR1SKVl/W0vO1+yj+yUOTy5HFI+3hlaDV4wMV3JzR2xraI 6yrljwCI7UBJLek+9BVWmSZbJg0BesXLcd7QZl7QrbovUvx8KuEcOq7wmgV/LGAQPSyn OzMg== X-Gm-Message-State: AJIora9Vn8jCAX7EsF/gNGugC92pB65PariRtuHtTuYNLCOLPPK0iZh5 vG0ESrEIdALmN+TWbU9bwZzc2A== X-Received: by 2002:a05:6214:2342:b0:473:bcd6:a3b7 with SMTP id hu2-20020a056214234200b00473bcd6a3b7mr13676393qvb.88.1658823786755; Tue, 26 Jul 2022 01:23:06 -0700 (PDT) Received: from localhost.localdomain (vpn.streamunlimited.com. [91.114.0.140]) by smtp.gmail.com with ESMTPSA id x14-20020a05620a12ae00b006b53fe19c41sm10004461qki.14.2022.07.26.01.23.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 01:23:06 -0700 (PDT) From: Peter Suti To: Greg Kroah-Hartman Cc: Peter Suti , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] staging: fbtft: core: set smem_len before fb_deferred_io_init call Date: Tue, 26 Jul 2022 10:21:13 +0200 Message-Id: <20220726082114.891853-1-peter.suti@streamunlimited.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 fb_deferred_io_init depends on smem_len being filled to be able to initialize the virtual page lists since commit 856082f021a2 ("fbdev: defio: fix the pagelist corruption") Signed-off-by: Peter Suti --- drivers/staging/fbtft/fbtft-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c index 9c4d797e7ae4..4137c1a51e1b 100644 --- a/drivers/staging/fbtft/fbtft-core.c +++ b/drivers/staging/fbtft/fbtft-core.c @@ -656,7 +656,6 @@ struct fb_info *fbtft_framebuffer_alloc(struct fbtft_display *display, fbdefio->delay = HZ / fps; fbdefio->sort_pagelist = true; fbdefio->deferred_io = fbtft_deferred_io; - fb_deferred_io_init(info); snprintf(info->fix.id, sizeof(info->fix.id), "%s", dev->driver->name); info->fix.type = FB_TYPE_PACKED_PIXELS; @@ -667,6 +666,7 @@ struct fb_info *fbtft_framebuffer_alloc(struct fbtft_display *display, info->fix.line_length = width * bpp / 8; info->fix.accel = FB_ACCEL_NONE; info->fix.smem_len = vmem_size; + fb_deferred_io_init(info); info->var.rotate = pdata->rotate; info->var.xres = width; -- 2.25.1