Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp410378rwd; Wed, 14 Jun 2023 18:27:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4jG17G162bo+LrAOz9/hjUQFXhQ7fqUwNZEkrEdx25oFXL3aDRhE4Cf/YoqxDiaSsbDUm4 X-Received: by 2002:a05:6a00:8cc:b0:64f:4019:ec5b with SMTP id s12-20020a056a0008cc00b0064f4019ec5bmr4731247pfu.7.1686792458166; Wed, 14 Jun 2023 18:27:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686792458; cv=none; d=google.com; s=arc-20160816; b=wW69qavO9sKm/jC3MvXneNJH11knAdJpnp89rtoTppwzIU8q7gkmfD7Mda7yTHYTmx b1YxdPLV/ScgP94w8vyN7jPZvO00xZnh/2E1DRn5H2fLal10G8mlJ2N26Fz1TU+niVPg TnT+SVi4b2RGDoTHw2A6aqUzMt3dSA3BqW4P2uIfOnVc3p5X9POUSDuvAYOr6DDNglsv rwF6TyPk9h81GojkQwAoCoEOcUsfTCgw1zuD+EQuMq2ja5u6aIGXStVyLGVyL2Wbe5jD iVzSVCs5fNaK2FTKTg4w3aaxRVwdprmBGC5pKOZ+gM8mZZDgvS1Anc8OtuY+qSzu3ZiZ AOaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=0gKAf47ZEnFKpQv81O/+aKmwni4vdjq93epYlUE3EcQ=; b=xMdof7sA3F9WavOxObowSNbRQ9xYEaIAvF61+dYtkA4fNfPqnqZ3S3t5+DtqSS1qpI U1kYA8eMwh9GmZP6cFCB6bB7zeixhpq/iA4Sy1v/AHJXF6mqYJm800JTfk9cZJ9O10gY STZVatyLOvIgYu4vGx9+L6e446MBpxCxNVKGLtmbtak4Lock29Qemi9LHNTKnflL2oFX p0WDnTrHO8DGecMfEjQm2tXYGY7EWqocHMU1U8E+tHx+ejo6xbxNj9aeZKqJXRLItbM1 i0BoxjAkJYCGSKdhRr4/O/LJHry07TwbL4Kk9yjyqBUFcIXlRlF22IJoz+K2XpzxRNKk CrqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="GA/EV1al"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e15-20020a056a001a8f00b0064f50a4a515si12442470pfv.37.2023.06.14.18.27.26; Wed, 14 Jun 2023 18:27:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="GA/EV1al"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231569AbjFOApm (ORCPT + 99 others); Wed, 14 Jun 2023 20:45:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjFOApl (ORCPT ); Wed, 14 Jun 2023 20:45:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB4451BD2; Wed, 14 Jun 2023 17:45:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 518DE61735; Thu, 15 Jun 2023 00:45:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07031C433C8; Thu, 15 Jun 2023 00:45:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686789938; bh=S2S+YtPbtG6r9Kjt3PcHYqK4rpFVN5o+G4qfcm4Kt8I=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=GA/EV1al1Yu1YhR7NxUUzixoNQMFGNuHV3NT/lptBt0cMXTZCoyiDGtLD9OagEd6Y I2x8h2L1YikUfOvMY+j9YU/lZsn6luYqQNnYHhijb/A5slSsghVTHHiH7bVOTtPHxR xDH27GwwofzHOfmGzrOOZSyVQUXTRVpGUGywaRUEoEob36urt57DCsks6MxjVuTDTD 08rnsu7hE3CLwigg1P8XME+8dHVYOZccK0eOZTGWYOHP2YhHn/mQbHO/hRV3PtVRJs B2gg6judzK0aY5UdosbZSL330Mk2NQapjzAnfGi+KSqx4T9MI385xFxyOAYQNiuj1v XKedlnqgh8qBw== Message-ID: <1b6011e2-6ea0-21bc-77e9-90079443eeed@kernel.org> Date: Thu, 15 Jun 2023 09:45:37 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 2/2] ata: octeon: Add compile test support Content-Language: en-US To: Rob Herring , Sergey Shtylyov , Thomas Bogendoerfer Cc: linux-ide@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230614173633.2430653-1-robh@kernel.org> <20230614173633.2430653-2-robh@kernel.org> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20230614173633.2430653-2-robh@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/15/23 02:36, Rob Herring wrote: > Add COMPILE_TEST to enable building Cavium Octeon drivers in MIPS > allyesconfig/allmodconfig builds. There's a dependency on MIPS headers, > so other arches can't be enabled. Yes, I tried... That is unfortunate. Looks good to me though. If I get an Ack for patch 1, I can queue this up through the ata tree. > > Signed-off-by: Rob Herring > --- > Tested on allmodconfig build. Not sure if there's other MIPS configs > where this doesn't work. We'll see what 0-day says. > > drivers/ata/Kconfig | 4 ++-- > drivers/ata/pata_octeon_cf.c | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index 42b51c9812a0..4572f837e504 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -239,7 +239,7 @@ config AHCI_MVEBU > > config AHCI_OCTEON > tristate "Cavium Octeon Soc Serial ATA" > - depends on SATA_AHCI_PLATFORM && CAVIUM_OCTEON_SOC > + depends on SATA_AHCI_PLATFORM && MIPS && (CAVIUM_OCTEON_SOC || COMPILE_TEST) > default y > help > This option enables support for Cavium Octeon SoC Serial ATA. > @@ -373,7 +373,7 @@ config PDC_ADMA > > config PATA_OCTEON_CF > tristate "OCTEON Boot Bus Compact Flash support" > - depends on CAVIUM_OCTEON_SOC > + depends on MIPS && (CAVIUM_OCTEON_SOC || COMPILE_TEST) > select PATA_TIMINGS > help > This option enables a polled compact flash driver for use with > diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c > index 57b2166a6d5d..cc9e4b63ded9 100644 > --- a/drivers/ata/pata_octeon_cf.c > +++ b/drivers/ata/pata_octeon_cf.c > @@ -853,8 +853,8 @@ static int octeon_cf_probe(struct platform_device *pdev) > of_node_put(dma_node); > return -EINVAL; > } > - cf_port->dma_base = (u64)devm_ioremap(&pdev->dev, res_dma->start, > - resource_size(res_dma)); > + cf_port->dma_base = (uintptr_t)devm_ioremap(&pdev->dev, res_dma->start, > + resource_size(res_dma)); > if (!cf_port->dma_base) { > put_device(&dma_dev->dev); > of_node_put(dma_node); -- Damien Le Moal Western Digital Research