Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5054150yba; Mon, 13 May 2019 04:43:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9UjNStQ+AUUMNXfUyODqBvXp2PhRV1looSALCZFajnSG0yLO0wCPQEoi0HwHlegNYw/B2 X-Received: by 2002:aa7:8096:: with SMTP id v22mr32380338pff.94.1557747783204; Mon, 13 May 2019 04:43:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557747783; cv=none; d=google.com; s=arc-20160816; b=GEv2AjcYEJn8n8J3oaJ1mDiOUI5ZEaohJ0K7b6DSFrBzpcNh6IPrpQUx6NUeFOtwtE hSMb1miBUpK3wRHM4tOgg9Qq+LFT5bWvvIh/RbX9PwM2ac2rGPNcJ4nPmKjNkdVDk+kn LZGNkxgmuHdFRtbDivz/KkNw9ptbXL0+satC/WzTbdJX019aUwhVSbYjrEibW1/5DGPU haaMC5XcL66an3RBeV8WE2ZUo2G29n4j2KfupJE81kt9r72h5V202MQclEC/ixFMzXOz +nugnwWkW4QqnVqSv+6OGrmEyFjBjRjDOzDmq80wdblvOzl1Vn5lNtVXMV95Ma1HP21L gLPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from; bh=whNxkyYoMKyqXsoQm7yO4MhdmjtVACxaWL4yDN4RuEQ=; b=lG8sAf7gWBVJDk0VRmAiEKb/UY3wGB48touy6f+/qAATMUG1aWoaUrF+sqZws6MCZf Q74QUlXjUAhZ1bAD6Uqvhk3itS3RagDrAIEvj3lG3vS/Mno6NmBI6TL4DYnER/7VMhf6 aV+9YsCoY1MmsyZZ23UXGVezFux0S4Z8/wvutUawR2j8brhf0igFC2okys/nX17LL/yx X/CBb81zRtpnm+igt5kNXAf/dtx4kLlOGk7zhN7YcJ8/m1oIzojyyi7xGBF2hhRjCHpe 9vx3wcdGNWKjZ6TFBTiX/JxtYZnwpH5vwQHSj6FAgZ/CX6LH7h/tts5it14TV/lE9nHR je4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l62si2466251pga.434.2019.05.13.04.42.46; Mon, 13 May 2019 04:43:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729437AbfEMLQW (ORCPT + 99 others); Mon, 13 May 2019 07:16:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:49324 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729433AbfEMLQU (ORCPT ); Mon, 13 May 2019 07:16:20 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 19A45AD7C; Mon, 13 May 2019 11:16:19 +0000 (UTC) From: Thomas Bogendoerfer To: Ralf Baechle , Paul Burton , James Hogan , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: SGI-IP22: provide missing dma_mask/coherent_dma_mask Date: Mon, 13 May 2019 13:16:08 +0200 Message-Id: <20190513111609.14855-1-tbogendoerfer@suse.de> X-Mailer: git-send-email 2.13.7 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Set dma_masks for SGIWD93 and SGISEEQ otherwise DMA allocations fails and causes not working SCSI/ethernet. Signed-off-by: Thomas Bogendoerfer --- arch/mips/sgi-ip22/ip22-platform.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/mips/sgi-ip22/ip22-platform.c b/arch/mips/sgi-ip22/ip22-platform.c index 37ad26716579..0b2002e02a47 100644 --- a/arch/mips/sgi-ip22/ip22-platform.c +++ b/arch/mips/sgi-ip22/ip22-platform.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include @@ -25,6 +26,8 @@ static struct sgiwd93_platform_data sgiwd93_0_pd = { .irq = SGI_WD93_0_IRQ, }; +static u64 sgiwd93_0_dma_mask = DMA_BIT_MASK(32); + static struct platform_device sgiwd93_0_device = { .name = "sgiwd93", .id = 0, @@ -32,6 +35,8 @@ static struct platform_device sgiwd93_0_device = { .resource = sgiwd93_0_resources, .dev = { .platform_data = &sgiwd93_0_pd, + .dma_mask = &sgiwd93_0_dma_mask, + .coherent_dma_mask = DMA_BIT_MASK(32), }, }; @@ -49,6 +54,8 @@ static struct sgiwd93_platform_data sgiwd93_1_pd = { .irq = SGI_WD93_1_IRQ, }; +static u64 sgiwd93_1_dma_mask = DMA_BIT_MASK(32); + static struct platform_device sgiwd93_1_device = { .name = "sgiwd93", .id = 1, @@ -56,6 +63,8 @@ static struct platform_device sgiwd93_1_device = { .resource = sgiwd93_1_resources, .dev = { .platform_data = &sgiwd93_1_pd, + .dma_mask = &sgiwd93_1_dma_mask, + .coherent_dma_mask = DMA_BIT_MASK(32), }, }; @@ -96,6 +105,8 @@ static struct resource sgiseeq_0_resources[] = { static struct sgiseeq_platform_data eth0_pd; +static u64 sgiseeq_dma_mask = DMA_BIT_MASK(32); + static struct platform_device eth0_device = { .name = "sgiseeq", .id = 0, @@ -103,6 +114,8 @@ static struct platform_device eth0_device = { .resource = sgiseeq_0_resources, .dev = { .platform_data = ð0_pd, + .dma_mask = &sgiseeq_dma_mask, + .coherent_dma_mask = DMA_BIT_MASK(32), }, }; -- 2.13.7