[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHk-=wj5hFUTG8qEzfJTecND2pSuxe0XcVPMjBpX7f1m19Wjqw@mail.gmail.com>
Date: Wed, 11 Mar 2020 10:25:48 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Greg KH <gregkh@...uxfoundation.org>
Cc: Christoph Hellwig <hch@....de>,
"Artem S. Tashkinov" <aros@....com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
iommu <iommu@...ts.linux-foundation.org>
Subject: Re: [PATCH] device core: fix dma_mask handling in platform_device_register_full
On Wed, Mar 11, 2020 at 10:18 AM Greg KH <gregkh@...uxfoundation.org> wrote:
>
> Is this still needed with the patch that Linus just committed to his
> tree?
My patch is basically the same, just with the field renamed too, and
not blindly just assigning to "*pdev->dev.dma_mask" (my variant does
pdev->platform_dma_mask = pdevinfo->dma_mask;
pdev->dev.dma_mask = &pdev->platform_dma_mask;
instead of that incomprehensible
*pdev->dev.dma_mask = pdevinfo->dma_mask;
which depends on that dev.dma_mask pointer having been initialized in
a random place earlier).
I had the cleanups (uncommited) in my tree, and just removed the
kfree() as per Christoph.
Linus
Powered by blists - more mailing lists