lkml.org 
[lkml]   [2015]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] mtd: Expose partition offset to the drivers
Hello

On Mon, Feb 2, 2015 at 8:17 PM, Richard Weinberger
<richard.weinberger@gmail.com> wrote:
> On Mon, Feb 2, 2015 at 5:22 PM, Ricardo Ribalda Delgado
>
> Can you please also send a patch which shows the usage of this new function
> by a driver?

It is currently out of tree, but here you can see the relevant code:

mtd_offset=mtd_get_device_offset(mtd);
put_mtd_device(mtd);
if (do_jmp){
ret=qt5023_hwicap_reset(head,mtd_offset);
if (ret){
dev_err(&head->pci_dev->dev,"error: Failed to jump to new bitfile\n");
vfree(buffer);
release_firmware(firmware);
return -EIO;
}
qt5023_spi_restart(head);
}

Thanks

--
Ricardo Ribalda


\
 
 \ /
  Last update: 2015-02-02 20:41    [W:0.050 / U:4.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site