bt1-axi.c (7f57416f2aebe6f8b6ad105b4ca58b347fb2dd2c) | bt1-axi.c (91920088536fa1cf01ceedbfb96219699d088756) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2020 BAIKAL ELECTRONICS, JSC 4 * 5 * Authors: 6 * Serge Semin <Sergey.Semin@baikalelectronics.ru> 7 * 8 * Baikal-T1 AXI-bus driver --- 206 unchanged lines hidden (view full) --- 215{ 216 struct bt1_axi *axi = dev_get_drvdata(dev); 217 218 /* 219 * Performing unaligned read from the memory will cause the CM2 bus 220 * error while unaligned writing - the AXI bus write error handled 221 * by this driver. 222 */ | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2020 BAIKAL ELECTRONICS, JSC 4 * 5 * Authors: 6 * Serge Semin <Sergey.Semin@baikalelectronics.ru> 7 * 8 * Baikal-T1 AXI-bus driver --- 206 unchanged lines hidden (view full) --- 215{ 216 struct bt1_axi *axi = dev_get_drvdata(dev); 217 218 /* 219 * Performing unaligned read from the memory will cause the CM2 bus 220 * error while unaligned writing - the AXI bus write error handled 221 * by this driver. 222 */ |
223 if (!strncmp(data, "bus", 3)) | 223 if (sysfs_streq(data, "bus")) |
224 readb(axi->qos_regs); | 224 readb(axi->qos_regs); |
225 else if (!strncmp(data, "unaligned", 9)) | 225 else if (sysfs_streq(data, "unaligned")) |
226 writeb(0, axi->qos_regs); 227 else 228 return -EINVAL; 229 230 return count; 231} 232static DEVICE_ATTR_RW(inject_error); 233 --- 81 unchanged lines hidden --- | 226 writeb(0, axi->qos_regs); 227 else 228 return -EINVAL; 229 230 return count; 231} 232static DEVICE_ATTR_RW(inject_error); 233 --- 81 unchanged lines hidden --- |