lkml.org 
[lkml]   [2020]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] ata:ahci_xgene:use devm_platform_ioremap_resource() to simplify code
From
Date
Hello!

On 04/01/2020 12:44 PM, 唐彬 wrote:

> I think the previous code in memory resource #4 to use 'csr' maybe useless,if
> devm_ioremap_resource() failed,the function will return, the 'ctx->csr_mux = csr' will
> become useless。So I do the same way as the other three。This's my idea, please criticize
> and correct it。Thank you very much!

I was unable to understand what you mean here.
My point is that the driver happily works if the MUX registers do not exist, and your
patch makes the driver fail the probe in this case. Even if this was correct, it's usually
a bad idea to do several thing in the same patch. So, you'd need a patch changing the probing logic before you convert things to devm_platfrom_ioremap_resource()...

[...]

MBR, Sergei

\
 
 \ /
  Last update: 2020-04-04 21:58    [W:0.044 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site