[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1409806367.933281809@f338.i.mail.ru>
Date: Thu, 04 Sep 2014 08:52:47 +0400
From: Alexander Shiyan <shc_work@...l.ru>
To: Pankaj Dubey <pankaj.dubey@...sung.com>
Cc: kgene.kim@...sung.com, linux@....linux.org.uk, naushad@...sung.com,
'Tomasz Figa' <t.figa@...sung.com>,
linux-kernel@...r.kernel.org, joshi@...sung.com,
linux-samsung-soc@...r.kernel.org, thomas.ab@...sung.com,
tomasz.figa@...il.com, vikas.sajjan@...sung.com,
chow.kim@...sung.com, lee.jones@...aro.org,
'Michal Simek' <michal.simek@...inx.com>,
linux-arm-kernel@...ts.infradead.org,
'Arnd Bergmann' <arnd@...db.de>
Subject: Re: [PATCH v2] mfd: syscon: Decouple syscon interface from platform devices
Thu, 04 Sep 2014 10:09:19 +0530 от Pankaj Dubey <pankaj.dubey@...sung.com>:
> Hi Arnd,
>
> On Tuesday, September 02, 2014 Arnd Bergmann wrote,
> > To: Pankaj Dubey
> > Cc: linux-arm-kernel@...ts.infradead.org;
> linux-samsung-soc@...r.kernel.org; linux-
> > kernel@...r.kernel.org; lee.jones@...aro.org; kgene.kim@...sung.com;
> > linux@....linux.org.uk; vikas.sajjan@...sung.com; joshi@...sung.com;
> > naushad@...sung.com; thomas.ab@...sung.com; chow.kim@...sung.com;
> > tomasz.figa@...il.com; Tomasz Figa; Alexander Shiyan; Michal Simek
> > Subject: Re: [PATCH v2] mfd: syscon: Decouple syscon interface from
> platform
> > devices
...
> > > -struct regmap *syscon_regmap_lookup_by_pdevname(const char *s) -{
> > > - struct device *dev;
> > > - struct syscon *syscon;
> > > -
> > > - dev = driver_find_device(&syscon_driver.driver, NULL, (void *)s,
> > > - syscon_match_pdevname);
> > > - if (!dev)
> > > - return ERR_PTR(-EPROBE_DEFER);
> > > -
> > > - syscon = dev_get_drvdata(dev);
> > > -
> > > - return syscon->regmap;
> > > -}
> > > -EXPORT_SYMBOL_GPL(syscon_regmap_lookup_by_pdevname);
> >
> > I think this can actually be left intact if that helps with clps71xx.
> > It could be done in a hacky way using bus_find_device_by_name() to keep it
> simple,
> > or in a somewhat nicer way by keeping the syscon platform_driver around
> for the
> > non-DT case.
> >
>
> Ok as per our last discussion you mentioned that clps71xx will be soon
> migrating to DT.
> So if that is not going to happen sooner, I would also prefer better keep
> syscon_regmap_lookup_by_pdevname and syscon platform_driver for non-DT case,
> so that this issue should not block this patch.
>
> So please let's make final call to keep syscon platform_driver for non-DT
> case which eventually
> can be dropped once clps71xx driver migrates to DT based. So that I can
> prepare next patchset
> keeping syscon platform_driver support and syscon_regmap_lookup_by_pdevname
> API support
> for non-DT case and send across for review.
Arnd, can you force the applying of the latest clps711x patches to accelerate the process?
I mean latest 3 arm-soc patches from Aug, 19.
After that I will need to make a patch for the SPI and TTY subsystems, then initial DT
support will be introduced.
---
Powered by blists - more mailing lists