RE: [PATCH v6 1/3] misc: rtsx: add to support new card reader rts5264 new definition and function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > in order to support NEW chip rts5264, the definitions of some internal
> > registers are define in new file rts5264.h, and some callback
> > functions and the workflow for rts5264 are define in new file
> > rts5264.c
> >
> > also add rts5264.o to Makefile
> >
> > Signed-off-by: Ricky Wu <ricky_wu@xxxxxxxxxxx>
> > ---
> > v4: split new definition part up from v3
> > ---
> >  drivers/misc/cardreader/Makefile  |   2 +-
> >  drivers/misc/cardreader/rts5264.c | 886
> > ++++++++++++++++++++++++++++++  drivers/misc/cardreader/rts5264.h |
> > 278 ++++++++++
> >  3 files changed, 1165 insertions(+), 1 deletion(-)  create mode
> > 100644 drivers/misc/cardreader/rts5264.c  create mode 100644
> > drivers/misc/cardreader/rts5264.h
> 
> When building with this change applied, I get lots of build errors.  How did you
> test this?
> 
> My errors are:
> 
>   CC [M]  drivers/misc/cardreader/rts5264.o
> drivers/misc/cardreader/rts5264.c: In function ‘rts5264_process_ocp’:
> drivers/misc/cardreader/rts5264.c:398:40: error: ‘struct rtsx_pcr’ has no
> member named ‘ovp_stat’; did you mean ‘ocp_stat’?
>   398 |         rts5264_get_ovpstat(pcr, &pcr->ovp_stat);
>       |                                        ^~~~~~~~
>       |                                        ocp_stat
> drivers/misc/cardreader/rts5264.c:402:31: error: ‘struct rtsx_pcr’ has no
> member named ‘ovp_stat’; did you mean ‘ocp_stat’?
>   402 |                         (pcr->ovp_stat & (RTS5264_OVP_NOW |
> RTS5264_OVP_EVER))) {
>       |                               ^~~~~~~~
>       |                               ocp_stat
> drivers/misc/cardreader/rts5264.c:408:22: error: ‘struct rtsx_pcr’ has no
> member named ‘ovp_stat’; did you mean ‘ocp_stat’?
>   408 |                 pcr->ovp_stat = 0;
>       |                      ^~~~~~~~
>       |                      ocp_stat
> drivers/misc/cardreader/rts5264.c: In function ‘rts5264_extra_init_hw’:
> drivers/misc/cardreader/rts5264.c:534:38: error: ‘RTS5264_AUTOLOAD_CFG2’
> undeclared (first use in this function); did you mean
> ‘RTS5264_AUTOLOAD_CFG3’?
>   534 |         rtsx_pci_write_register(pcr, RTS5264_AUTOLOAD_CFG2,
>       |
> ^~~~~~~~~~~~~~~~~~~~~
>       |
> RTS5264_AUTOLOAD_CFG3
> drivers/misc/cardreader/rts5264.c:534:38: note: each undeclared identifier is
> reported only once for each function it appears in
> drivers/misc/cardreader/rts5264.c:535:25: error: ‘RTS5264_CHIP_RST_N_SEL’
> undeclared (first use in this function); did you mean
> ‘RTS5264_NON_XTAL_SEL’?
>   535 |                         RTS5264_CHIP_RST_N_SEL, 0);
>       |                         ^~~~~~~~~~~~~~~~~~~~~~
>       |                         RTS5264_NON_XTAL_SEL
> drivers/misc/cardreader/rts5264.c:538:38: error: ‘CDGW’ undeclared (first
> use in this function)
>   538 |         rtsx_pci_write_register(pcr, CDGW, 0xFF, 0x01);
>       |                                      ^~~~
> drivers/misc/cardreader/rts5264.c: In function ‘rts5264_init_params’:
> drivers/misc/cardreader/rts5264.c:883:51: error: ‘SD_OVP_INT_EN’
> undeclared (first use in this function); did you mean ‘SD_OCP_INT_EN’?
>   883 |         hw_param->interrupt_en |= (SD_OC_INT_EN |
> SD_OVP_INT_EN);
>       |
> ^~~~~~~~~~~~~
>       |
> SD_OCP_INT_EN
> make[5]: *** [scripts/Makefile.build:243: drivers/misc/cardreader/rts5264.o]
> Error 1
> 
> 
> 
> Remember, each commit can not break the build.  Please fix up this series to
> build properly at each commit.
> 

Sorry for that, I sent the v7 to fix this issue, some definitions are defined in
Patch#2, I moved the file to Patch#1 in v7

Thank you

> thanks,
> 
> greg k-h




[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux