From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VknWr-00059r-6M for qemu-devel@nongnu.org; Sun, 24 Nov 2013 23:12:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VknWn-0005by-9d for qemu-devel@nongnu.org; Sun, 24 Nov 2013 23:12:09 -0500 Received: from [222.73.24.84] (port=60928 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VknWm-0005be-Ub for qemu-devel@nongnu.org; Sun, 24 Nov 2013 23:12:05 -0500 Received: from fnstmail02.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id rAP4BvBw003425 for ; Mon, 25 Nov 2013 12:11:58 +0800 Date: Mon, 25 Nov 2013 12:11:59 +0800 From: "Zhou Yuan" Message-ID: <201311251211581281231@cn.fujitsu.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [Qemu-devel] [PATCH] hw/gpio/max7310.c : add the reset-pin in Max7310 and the GPIO will be reseted by the reset signal(active low) when necessary List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel From: Zhouy To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Anthony Liguori , Andreas F?rber" Subject: Re: [Qemu-devel] [PATCH] hw/gpio/max7310.c : add the reset-pin in Max7310 and the GPIO will be reseted by the reset signal(active low) when necessary >From: zhouy >Date: Sun, 17 Nov 2013 09:24:38 -0500 >Subject: [PATCH 4/4] add the reset-pin in Max7310 and the GPIO will be > reseted by the reset signal(active low) when necessary >Signed-off-by: zhouy >--- > qemu-master/hw/gpio/max7310.c | 8 ++++++-- > 1 files changed, 6 insertions(+), 2 deletions(-) >diff --git a/qemu-master/hw/gpio/max7310.c b/qemu-master/hw/gpio/max7310.c >index 59b2877..54df220 100644 >--- a/qemu-master/hw/gpio/max7310.c >+++ b/qemu-master/hw/gpio/max7310.c >@@ -166,7 +166,11 @@ static void max7310_gpio_set(void *opaque, int line, int level) > MAX7310State *s = (MAX7310State *) opaque; > if (line >= ARRAY_SIZE(s->handler) || line < 0) > hw_error("bad GPIO line"); >- >+ /* add reset-pin (active low) as the 9th gpio-in*/ >+ if (line == 8 && level == 0) { >+ max7310_reset(s); >+ return; >+ } > if (level) > s->level |= s->direction & (1 << line); > else >@@ -179,7 +183,7 @@ static int max7310_init(I2CSlave *i2c) >{ > MAX7310State *s = FROM_I2C_SLAVE(MAX7310State, i2c); >- qdev_init_gpio_in(&i2c->qdev, max7310_gpio_set, 8); >+ qdev_init_gpio_in(&i2c->qdev, max7310_gpio_set, 9); > qdev_init_gpio_out(&i2c->qdev, s->handler, 8); > return 0; >-- >1.7.6 anyone,Ping? thank you! -------------- The updated address is: zhouyuan.fnst@cn.fujitsu.com -------------------------------------------------- 12:09:26