Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758606AbZLNWGw (ORCPT ); Mon, 14 Dec 2009 17:06:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758661AbZLNWGk (ORCPT ); Mon, 14 Dec 2009 17:06:40 -0500 Received: from mail-yx0-f187.google.com ([209.85.210.187]:53684 "EHLO mail-yx0-f187.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758593AbZLNWGh (ORCPT ); Mon, 14 Dec 2009 17:06:37 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=HXXs4Iy6owiSq8XUvpZbcJpQAkX3/AdRL2wJ2gzx9IgjwWwFjab5Oo4JcIowIj9McG NjLHd2rqB0QHKj72xhk8yDaTMUHFO7sveZO90mcfyklrRvOBAefdVHn/JKg/VToMZbQW h1FynKdbr9LFHb2gDXBMUBw93dPjyEtYb091A= Message-ID: <4B26B6EA.8050403@garzik.org> Date: Mon, 14 Dec 2009 17:06:34 -0500 From: Jeff Garzik User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Thunderbird/3.0b4 MIME-Version: 1.0 To: Ryan Mallon CC: Bartlomiej Zolnierkiewicz , linux-ide@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sergei Shtylyov , Joao Ramos , H Hartley Sweeten Subject: Re: [PATCH] add PATA host controller support for Cirrus Logic's EP93xx CPUs References: <200911261651.40928.bzolnier@gmail.com> <4B15BAA1.2010408@bluewatersys.com> <200912020206.59659.bzolnier@gmail.com> <4B26B0D6.4080809@bluewatersys.com> In-Reply-To: <4B26B0D6.4080809@bluewatersys.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1105 Lines: 26 On 12/14/2009 04:40 PM, Ryan Mallon wrote: > I have added some of my own debugging. The problem appears to be that > __pata_ep93xx_write gets called from probe (via ata_host_activate), but > ap->private_data (ata_timing) is still null. The timing private_data is > set by pata_ep93xx_set_piomode, but that needs adev->pio_mode set, but I > don't know where this happens. I assume the ATA core handles this. Do I > need to call pata_ep93xx_set_piomode from pata_ep93xx_probe before > ata_host_activate, or should the private_data timing be set to some > default in the probe? ap->private_data is traditionally initialized in the ->port_start() hook. Likely, you should follow other drivers and allocate a useful data structure containing useful default values, which can then be adjusted in other hooks such as ->set_dmamode() or ->set_piomode() Jeff -- 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/