From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sun, 8 Dec 2019 09:59:42 +0800 Subject: [PATCH v6 008/102] i2c: designware: Avoid using static data In-Reply-To: References: <20191207044315.51770-1-sjg@chromium.org> <20191206213936.v6.8.I0ca3df8c37005f3314cc4231c4131cb607c4643f@changeid> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Dec 8, 2019 at 9:54 AM Bin Meng wrote: > > On Sat, Dec 7, 2019 at 12:46 PM Simon Glass wrote: > > > > Drivers are not allowed to use static data since they may be used in SPL > > where BSS is not available. > > > > It is possible that driver model may provide support for numbering devices > > in the future. But for now, move this to global_data. > > > > Signed-off-by: Simon Glass > > --- > > > > Changes in v6: None > > Changes in v5: None > > Changes in v4: > > - Add new patch to drop static data in designware i2c driver > > > > Changes in v3: None > > Changes in v2: None > > > > arch/x86/include/asm/global_data.h | 1 + > > drivers/i2c/designware_i2c_pci.c | 9 ++++++--- > > 2 files changed, 7 insertions(+), 3 deletions(-) > > > > Reviewed-by: Bin Meng applied to u-boot-x86/next, thanks!