Hi, On 2023/6/19 17:18, Huacai Chen wrote:
+ +static void __gfxpll_rreg(struct loongson_gfxpll *this, + union loongson_gfxpll_reg_bitmap *reg) +{ +#if defined(CONFIG_64BIT) + reg->d = readq(this->mmio); +#else + reg->w[0] = readl(this->mmio); + reg->w[1] = readl(this->mmio + 4); +#endif +}We can only keep the 64bit version.
No, Intel's compilation test robot will complains when cross compile this driver for 32-bit CPUs.