RE: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-08-31 Thread Mani, Rajmohan
Hi Greg, > Subject: Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager > (IOM) driver > > On Fri, Aug 28, 2020 at 03:20:22PM +, Mani, Rajmohan wrote: > > Hi Greg, > > > > > Subject: Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output

Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-08-29 Thread Greg Kroah-Hartman
On Fri, Aug 28, 2020 at 03:20:22PM +, Mani, Rajmohan wrote: > Hi Greg, > > > Subject: Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager > > (IOM) driver > > > > Hi Greg, > > > > On Fri, Aug 28, 2020 at 09:43:59AM +0200, Greg Kroah-Ha

RE: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-08-28 Thread Mani, Rajmohan
> Subject: Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager > (IOM) driver > > On Fri, Aug 28, 2020 at 12:03:35PM +0200, Greg Kroah-Hartman wrote: > > Handle the situation today, if, in the future, someone else > > needs/wants this, _then_ work on splitt

RE: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-08-28 Thread Mani, Rajmohan
Hi Greg, > Subject: Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager > (IOM) driver > > Hi Greg, > > On Fri, Aug 28, 2020 at 09:43:59AM +0200, Greg Kroah-Hartman wrote: > > I still find this crazy that a whole separate driver is created just > >

Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-08-28 Thread Heikki Krogerus
On Fri, Aug 28, 2020 at 12:03:35PM +0200, Greg Kroah-Hartman wrote: > Handle the situation today, if, in the future, someone else needs/wants > this, _then_ work on splitting it out into separate pieces. Don't > create additional complexity today, for no benefit today. It's already > caused

Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-08-28 Thread Greg Kroah-Hartman
On Fri, Aug 28, 2020 at 12:08:32PM +0300, Heikki Krogerus wrote: > Hi Greg, > > On Fri, Aug 28, 2020 at 09:43:59AM +0200, Greg Kroah-Hartman wrote: > > I still find this crazy that a whole separate driver is created just to > > read a single 32bit value. > > > > Why not put this logic in the

Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-08-28 Thread Heikki Krogerus
Hi Greg, On Fri, Aug 28, 2020 at 09:43:59AM +0200, Greg Kroah-Hartman wrote: > I still find this crazy that a whole separate driver is created just to > read a single 32bit value. > > Why not put this logic in the driver that wants to read that value? > That would be much simpler, smaller, and

Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-08-28 Thread Greg Kroah-Hartman
On Fri, Aug 21, 2020 at 09:05:06PM -0700, Rajmohan Mani wrote: > Input Output Manager (IOM) is part of the Tiger Lake SoC that > configures the Type-C Sub System (TCSS). IOM is a micro controller > that handles Type-C topology, configuration and PM functions of > various Type-C devices connected

RE: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-08-24 Thread Mani, Rajmohan
Hi Prashant, ... > > > > + > > > > + reg = iom->regbar + IOM_PORT_STATUS_OFFSET + IOM_REG_LEN * > > > port; > > > > + > > > > + *status = ioread32(reg); > > > > > > Perhaps just inline reg within the parentheses? > > > > Kept this way to increase readability. Let me know if you feel

Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-08-24 Thread Prashant Malani
Hi Rajmohan, On Mon, Aug 24, 2020 at 10:19:27PM +, Mani, Rajmohan wrote: > Hi Prashant, > > Thanks for the quick review. > > > > + > > > + if (!iom || !iom->dev || !iom->regbar) > > > > Do we need to check for !iom->dev and !iom->regbar? > > It's a good practice to have sanity checks on

RE: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-08-24 Thread Mani, Rajmohan
Hi Prashant, Thanks for the quick review. > Subject: Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager > (IOM) driver > > Hi Rajmohan, > > On Fri, Aug 21, 2020 at 09:05:06PM -0700, Rajmohan Mani wrote: > > Input Output Manager (IOM) is pa

Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-08-22 Thread Prashant Malani
Hi Rajmohan, On Fri, Aug 21, 2020 at 09:05:06PM -0700, Rajmohan Mani wrote: > Input Output Manager (IOM) is part of the Tiger Lake SoC that > configures the Type-C Sub System (TCSS). IOM is a micro controller > that handles Type-C topology, configuration and PM functions of > various Type-C

[PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-08-21 Thread Rajmohan Mani
Input Output Manager (IOM) is part of the Tiger Lake SoC that configures the Type-C Sub System (TCSS). IOM is a micro controller that handles Type-C topology, configuration and PM functions of various Type-C devices connected on the platform. This driver helps read relevant information such as