Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753563AbZIGOwh (ORCPT ); Mon, 7 Sep 2009 10:52:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752881AbZIGOwg (ORCPT ); Mon, 7 Sep 2009 10:52:36 -0400 Received: from mail-qy0-f190.google.com ([209.85.221.190]:40913 "EHLO mail-qy0-f190.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752625AbZIGOwf (ORCPT ); Mon, 7 Sep 2009 10:52:35 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=mcRJAjqr5c+cAOiPPG6Eb+1KuOubvgMT/VvOKU6iyn3gNljnAhFtlBHYnHbpRmoMyl q+9aTYdNQY7F64MjUz0NvL90fNHJV1+xm3VVYPuzHr++IGmr7+NDVmuKlJbNlzn9C4GI UNz0xzxqOCBrA0KQVUaLdhwEY18/GWdiz7UIM= MIME-Version: 1.0 In-Reply-To: <1252332440.17852.58.camel@dax.rpnet.com> References: <20090906052653.GB1324@ucw.cz> <1252276145.17852.15.camel@dax.rpnet.com> <20090907113132.GM23450@elf.ucw.cz> <1252329025.1861.6.camel@hammer.suse.cz> <1252332440.17852.58.camel@dax.rpnet.com> From: Eric Miao Date: Mon, 7 Sep 2009 22:52:18 +0800 Message-ID: Subject: Re: Zaurus suspend saga To: Richard Purdie Cc: Stanislav Brabec , Pavel Machek , lenz@cs.wisc.edu, kernel list , Dirk@opfer-online.de, arminlitzel@web.de, Cyril Hrubis , thommycheck@gmail.com, linux-arm-kernel , dbaryshkov@gmail.com, omegamoon@gmail.com, eric.miao@marvell.com, Andrea Adami Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1560 Lines: 32 On Mon, Sep 7, 2009 at 10:07 PM, Richard Purdie wrote: > On Mon, 2009-09-07 at 15:10 +0200, Stanislav Brabec wrote: >> Pavel Machek wrote: >> > >> > > Sadly lack of time means I've lost track of the Zaurus kernels but this >> > > sounds like all accesses to the SSP buses now go through the SPI layer >> > > and when it was converted nobody thought about the impact this would >> > > have on the Zaurus charger code. >> > >> >Unfortunately... Do you have any idea when this conversion took place? >> >> In past, MAX1111 driver was embedded in the Zaurus specific code. Now >> MAX1111 is a generic SPI driver and spitz_pm.c calls it. >> >> Maybe it will still work with CONFIG_CORGI_SSP_DEPRECATED. > > I was thinking about this. The SSP interface is ridiculously simple and > it might be worth just adding some SSP access code into the Zaurus > offline code so it can access the MAX1111 without the rest of the system > running. That would solve a lot of the problems. > That simple SSP API made a lot of headaches as well. Now there are three clearly separated individual drivers even on a single SPI bus controlling the LCD, backlight and the MAX1111 sensor instead of all those dirty tricks messing up. And it was really a painful memory to touch that part of the code and get it cleaned up. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/