From patchwork Mon Feb 15 11:40:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 79379 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1FBerSh032016 for ; Mon, 15 Feb 2010 11:40:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755245Ab0BOLku (ORCPT ); Mon, 15 Feb 2010 06:40:50 -0500 Received: from mail-yx0-f200.google.com ([209.85.210.200]:44328 "EHLO mail-yx0-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755187Ab0BOLku (ORCPT ); Mon, 15 Feb 2010 06:40:50 -0500 Received: by yxe38 with SMTP id 38so3402731yxe.4 for ; Mon, 15 Feb 2010 03:40:49 -0800 (PST) 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 :subject; bh=qKvqN09YjELWvk4JEH8NWks6Pw2uRMzXEwbaSFtGMJI=; b=hiz25Whn/5zKiIhuHT6l12iGMYUWs+ma8ukB2/oJUcvq5odtRqEzeVniIXRCVjAOzR BzH/T1U90UJvRwNgMuNn81s3V/FfCHEcGB0nf6S1+XD0n4LhaCDS3J+NHieaigDVC3gs j79HO92QGs7Sz73powUZ4iA2qTO833RpO+q8A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=gjtOfFY+IfNHbBl5HWWLHyywGNLI4kftxTjA8Xv9N5EY4cye3LjdhzHi23QNl/qY2o 5tHUynGcINRmH4Q/YC0Dru6Wga41PNwFjilcFtt4ca6U/mzInRxHxqwfQd7oLFTai/X+ siwwZwTevmGa3tG+LVGBb1Iy6VT6bouWeT4VU= Received: by 10.150.47.18 with SMTP id u18mr4732380ybu.173.1266234045004; Mon, 15 Feb 2010 03:40:45 -0800 (PST) Received: from ?127.0.0.1? (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id 13sm4396502gxk.13.2010.02.15.03.40.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 15 Feb 2010 03:40:44 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Mon, 15 Feb 2010 20:40:25 +0900 Message-Id: <20100215114025.22039.11843.sendpatchset@t400s> Subject: [PATCH] sh: extend INTC with force_disable Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 15 Feb 2010 11:40:53 +0000 (UTC) --- 0001/drivers/sh/intc.c +++ work/drivers/sh/intc.c 2010-02-15 20:03:32.000000000 +0900 @@ -851,6 +851,9 @@ void __init register_intc_controller(str d->chip.mask_ack = intc_mask_ack; } + /* disable bits matching force_disable before registering irqs */ + if (desc->force_disable) + intc_enable_disable_enum(desc, d, desc->force_disable, 0); /* disable bits matching force_enable before registering irqs */ if (desc->force_enable) --- 0001/include/linux/sh_intc.h +++ work/include/linux/sh_intc.h 2010-02-15 20:03:32.000000000 +0900 @@ -72,6 +72,7 @@ struct intc_hw_desc { struct intc_desc { char *name; intc_enum force_enable; + intc_enum force_disable; struct intc_hw_desc hw; };