From patchwork Sat Aug 15 02:53:16 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 41569 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7F2vi9w001518 for ; Sat, 15 Aug 2009 02:57:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756057AbZHOC5k (ORCPT ); Fri, 14 Aug 2009 22:57:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756080AbZHOC5k (ORCPT ); Fri, 14 Aug 2009 22:57:40 -0400 Received: from mail-px0-f196.google.com ([209.85.216.196]:33564 "EHLO mail-px0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756057AbZHOC5j (ORCPT ); Fri, 14 Aug 2009 22:57:39 -0400 Received: by pxi34 with SMTP id 34so527052pxi.4 for ; Fri, 14 Aug 2009 19:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :in-reply-to:references:subject; bh=WjMzVm3WiOJbbwCUuxBuCWPurBbwZHs0/UwFIprUaS0=; b=cMCR1OsL2FLvmvC82VHZTlJG308autXgS9MYICHj6ADHO76pZ7oNPqwsJb91sf4GpH SYaGXZrMai5DCcBM/eroDgF6D2k7d07Q9R4qSOCG7LvkEw736axzWMuV47X7G65CZFP8 wjg8PzoJ2K+LVxaLK05qfi5TFsraoTNpqp//Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:in-reply-to:references:subject; b=IwXfareBoSOqsuATln1BcFc1F9D5voMTDkExUM4HrO8w3UG/xWxNiJRQq87w8DXtsA GhS8pWUHB7TIJYHwXfLo5rIqW6h9M/PR093cGTjN7AI6QcKTHQPUM4gN6ir3XQxYUnmv MDVWZRBNANGd0Ktm5IcACk8Jo7MzECwogPOXM= Received: by 10.114.250.9 with SMTP id x9mr114666wah.226.1250305060401; Fri, 14 Aug 2009 19:57:40 -0700 (PDT) Received: from rx1.opensource.se (210-225-125-011.jp.fiberphone.net [210.225.125.11]) by mx.google.com with ESMTPS id k35sm3381924waf.29.2009.08.14.19.57.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 14 Aug 2009 19:57:39 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Sat, 15 Aug 2009 11:53:16 +0900 Message-Id: <20090815025316.8125.53448.sendpatchset@rx1.opensource.se> In-Reply-To: <20090815025307.8125.50234.sendpatchset@rx1.opensource.se> References: <20090815025307.8125.50234.sendpatchset@rx1.opensource.se> Subject: [PATCH 01/04] sh: skip disabled LCDC channels Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Magnus Damm This patch updates the SuperH Mobile LCDC driver to skip over disabled channels. Without this patch suspend-to-ram operation will crash if deferred io is enabled. Signed-off-by: Magnus Damm --- drivers/video/sh_mobile_lcdcfb.c | 5 +++++ 1 file changed, 5 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0001/drivers/video/sh_mobile_lcdcfb.c +++ work/drivers/video/sh_mobile_lcdcfb.c 2009-08-14 13:29:48.000000000 +0900 @@ -477,6 +477,9 @@ static int sh_mobile_lcdc_start(struct s /* tell the board code to enable the panel */ for (k = 0; k < ARRAY_SIZE(priv->ch); k++) { ch = &priv->ch[k]; + if (!ch->enabled) + continue; + board_cfg = &ch->cfg.board_cfg; if (board_cfg->display_on) board_cfg->display_on(board_cfg->board_data); @@ -494,6 +497,8 @@ static void sh_mobile_lcdc_stop(struct s /* clean up deferred io and ask board code to disable panel */ for (k = 0; k < ARRAY_SIZE(priv->ch); k++) { ch = &priv->ch[k]; + if (!ch->enabled) + continue; /* deferred io mode: * flush frame, and wait for frame end interrupt