Received: by 10.192.165.148 with SMTP id m20csp1398827imm; Wed, 2 May 2018 21:24:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrW+Wege8b7A8qRPHtJih5shsuIpXZIkvr9a3mWRIyrKS/cIwrmCWUZ4gi9rdMg326j32ra X-Received: by 2002:a17:902:9a0c:: with SMTP id v12-v6mr21969218plp.162.1525321484959; Wed, 02 May 2018 21:24:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525321484; cv=none; d=google.com; s=arc-20160816; b=pdP4p82/3IwPXyzo5CTH9MrlVdrqU/PoIxy1zanvpMfCZlgEbvGM/zPFfVf9mkIREy /Km6Tqe96X040lXTETte9K8G7Nk84KUre7Q78C9r2wJPyV2kV1zEsKHof8m2/FNUCtku xbbeWML3QIU6tVnbYb0lGtAcAoWgpJdgWW8RWfHdoiUaJBgqYJPavgBQMQI1EncuQVIC nRtvOq3tVQM0ZSAgGyPq4/sS1Jf1BsyBkcko4IivVAHsSmQL0mV5MrB1Sqe+/DuK8hph u9UyU5PKWZ2pCVqh2x1vAt34MLNh/fi5VJBkjnfDkL6arR1uzrQmrTffyVpOBmYWChys mGTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:list-id:precedence:sender:subject:from:cc:to:date :arc-authentication-results; bh=YYZ3pnEvV+gPsb4EUxO9tFo/2po2CtYLtFSw2h0VI6Y=; b=RxW64dyWRlF2cok3tL01rI/yI0qENtwz9OeXlcP6puIUfLU7XCODHiCF9v6PIP2RLN 5edZYMCJmjAO3tPlUIe+MxYfCfryf9KNIiDIQW9lxYM7LwC4YHO8PLyEOVt14+R/e2BY PowQaPafv0RitcI+hmbE63rpeVEj43iMq8tyDeUrKuIxCHmT0xFJwSAH7cdUifjx6ns2 /mQcnfj1cm/ztk/+hwyAzVALEIzsNDlQRsjuwOdLNJEGIeHFBWxl/Hdwt5nZOBzGNXjk ZdUFKg+najFj7o/0/PL38QldPZsvi15r5XyRWw5qDUMmC9SOhF5RPMjfL0HhEKAnGJfo sssg== 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 c12-v6si13304136plr.467.2018.05.02.21.24.18; Wed, 02 May 2018 21:24:44 -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 S1751881AbeECEYC (ORCPT + 99 others); Thu, 3 May 2018 00:24:02 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:54548 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751077AbeECEX7 (ORCPT ); Thu, 3 May 2018 00:23:59 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id 3883128E06; Thu, 3 May 2018 00:23:57 -0400 (EDT) Date: Thu, 03 May 2018 14:23:55 +1000 To: "David S. Miller" Cc: linux-m68k@lists.linux-m68k.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org From: Finn Thain Subject: [PATCH net] macmace: Set platform device coherent_dma_mask Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Message-Id: Set the device's coherent_dma_mask to avoid a WARNING splat. Please see commit 205e1b7f51e4 ("dma-mapping: warn when there is no coherent_dma_mask"). Cc: linux-m68k@lists.linux-m68k.org Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/net/ethernet/apple/macmace.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/apple/macmace.c b/drivers/net/ethernet/apple/macmace.c index 137cbb470af2..98292c49ecf0 100644 --- a/drivers/net/ethernet/apple/macmace.c +++ b/drivers/net/ethernet/apple/macmace.c @@ -203,6 +203,10 @@ static int mace_probe(struct platform_device *pdev) unsigned char checksum = 0; int err; + err = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); + if (err) + return err; + dev = alloc_etherdev(PRIV_BYTES); if (!dev) return -ENOMEM; -- 2.16.1