* [PATCH v1 1/1] i2c: designware: Add a note about struct dw_scl_sda_cfg usage
@ 2021-12-03 17:13 Andy Shevchenko
2021-12-07 18:41 ` Andy Shevchenko
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2021-12-03 17:13 UTC (permalink / raw)
To: Wolfram Sang, linux-i2c, linux-kernel
Cc: Jarkko Nikula, Andy Shevchenko, Mika Westerberg
Add a note about struct dw_scl_sda_cfg usage to discourage people
of using this structure on new platforms. Instead they should try
hard to put the needed information into firmware descriptions.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/i2c/busses/i2c-designware-pcidrv.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/i2c/busses/i2c-designware-pcidrv.c b/drivers/i2c/busses/i2c-designware-pcidrv.c
index 0f409a4c2da0..3ba506c3a9a9 100644
--- a/drivers/i2c/busses/i2c-designware-pcidrv.c
+++ b/drivers/i2c/busses/i2c-designware-pcidrv.c
@@ -38,6 +38,13 @@ enum dw_pci_ctl_id_t {
navi_amd,
};
+/*
+ * This is a legacy structure to describe the hardware counters
+ * to configure signal timings on the bus. For Device Tree platforms
+ * one should use the respective properties and for ACPI there is
+ * a set of ACPI methods that provide these counters. No new
+ * platform should use this structure.
+ */
struct dw_scl_sda_cfg {
u32 ss_hcnt;
u32 fs_hcnt;
--
2.33.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1 1/1] i2c: designware: Add a note about struct dw_scl_sda_cfg usage
2021-12-03 17:13 [PATCH v1 1/1] i2c: designware: Add a note about struct dw_scl_sda_cfg usage Andy Shevchenko
@ 2021-12-07 18:41 ` Andy Shevchenko
0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2021-12-07 18:41 UTC (permalink / raw)
To: Wolfram Sang, linux-i2c, linux-kernel; +Cc: Jarkko Nikula, Mika Westerberg
On Fri, Dec 03, 2021 at 07:13:18PM +0200, Andy Shevchenko wrote:
> Add a note about struct dw_scl_sda_cfg usage to discourage people
> of using this structure on new platforms. Instead they should try
> hard to put the needed information into firmware descriptions.
Scratch this, I will send a bigger series where I incorporate this one into.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-07 18:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-03 17:13 [PATCH v1 1/1] i2c: designware: Add a note about struct dw_scl_sda_cfg usage Andy Shevchenko
2021-12-07 18:41 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox