RE: [PATCH 2/7] soc: aspeed: Introduce core eSPI controller support
YH Chung <[email protected]>
| Newsgroups | org.ozlabs.lists.openbmc,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.ozlabs.lists.linux-aspeed |
|---|---|
| Message-ID | <KL1PR0601MB4276206DD65D3D665785C77890322@KL1PR0601MB4276.apcprd06.prod.outlook.com> |
Hi Oleksandr, > > + if (espi->ops->espi_pre_init) > > + espi->ops->espi_pre_init(espi); > is there a chance ops are unitialized? In any place you do this check It should be properly initialized when adding support for a new SoC. We will remove this check in the next revision. > > + if (!espi) > > + return; > espi pointer is unlikely to be null here, I suggest removing the NULL check Got it. We will also address this in the next revision. Thanks for your review and comments.