# \[PATCH v2 0/2\] input: add MAX8997-haptic driver

- Status: SUPERSEDED (Superseded by v3 posted 2012-03-12)
- Superseded by v3 (posted 2012-03-12).
- Revision v2 (2 revisions archived).
- List: linux-input
- 5 messages, 2 authors
- Page: https://ratatoskr.run/linux-input/2012/03/3831741/t

## \[PATCH v2 0/2\] input: add MAX8997-haptic driver

- From: Chanwoo Choi \<cw00.choi@samsung.com\>
- Date: 2012-03-07 08:03:00 
- Message: https://ratatoskr.run/linux-input/2012/03/3831741.md

```text
MAX8997 has several features in a single chip,
This patchset supports unimplemented haptic driver of MAX8997.

v2
- code clean and remove unnecessary code according to comment of Dmitry
Torokhov

Donggeun Kim (2):
  mfd: add platform data for MAX8997 haptic driver
  input: add driver support for MAX8997-haptic

 drivers/input/misc/Kconfig          |   12 ++
 drivers/input/misc/Makefile         |    1 +
 drivers/input/misc/max8997_haptic.c |  371
+++++++++++++++++++++++++++++++++++
 include/linux/mfd/max8997.h         |   53 +++++-
 4 files changed, 436 insertions(+), 1 deletions(-)
 create mode 100644 drivers/input/misc/max8997_haptic.c
```

## Re: \[PATCH v2 0/2\] input: add MAX8997-haptic driver

- From: Dmitry Torokhov \<dmitry.torokhov@gmail.com\>
- Date: 2012-03-07 08:29:11 
- Message: https://ratatoskr.run/linux-input/2012/03/3831749.md

```text
Hi Chanwoo,


On Wed, Mar 07, 2012 at 05:02:49PM +0900, Chanwoo Choi wrote:
> MAX8997 has several features in a single chip,
> This patchset supports unimplemented haptic driver of MAX8997.
> 
> v2
> - code clean and remove unnecessary code according to comment of Dmitry
> Torokhov

Could you please tell me if the version of the patch I sent to you
worked or not?

Thanks.

-- 
Dmitry
```

## Re: \[PATCH v2 0/2\] input: add MAX8997-haptic driver

- From: Chanwoo Choi \<cw00.choi@samsung.com\>
- Date: 2012-03-12 08:31:53 
- Message: https://ratatoskr.run/linux-input/2012/03/3834073.md

```text
Hi Dmitry,

On 03/07/2012 05:29 PM, Dmitry Torokhov wrote:
> Hi Chanwoo,
> 
> 
> On Wed, Mar 07, 2012 at 05:02:49PM +0900, Chanwoo Choi wrote:
>> MAX8997 has several features in a single chip,
>> This patchset supports unimplemented haptic driver of MAX8997.
>>
>> v2
>> - code clean and remove unnecessary code according to comment of Dmitry
>> Torokhov
> 
> Could you please tell me if the version of the patch I sent to you
> worked or not?

It isn't worked because it use the mutex lock in irq handler stack.
so, I resend v3 patch of max8997-haptic driver after modifying it.

Best Regards,
Chanwoo Choi

```

## Re: \[PATCH v2 0/2\] input: add MAX8997-haptic driver

- From: Dmitry Torokhov \<dmitry.torokhov@gmail.com\>
- Date: 2012-03-13 05:30:44 
- Message: https://ratatoskr.run/linux-input/2012/03/3834874.md

```text
On Mon, Mar 12, 2012 at 05:31:24PM +0900, Chanwoo Choi wrote:
> Hi Dmitry,
> 
> On 03/07/2012 05:29 PM, Dmitry Torokhov wrote:
> > Hi Chanwoo,
> > 
> > 
> > On Wed, Mar 07, 2012 at 05:02:49PM +0900, Chanwoo Choi wrote:
> >> MAX8997 has several features in a single chip,
> >> This patchset supports unimplemented haptic driver of MAX8997.
> >>
> >> v2
> >> - code clean and remove unnecessary code according to comment of Dmitry
> >> Torokhov
> > 
> > Could you please tell me if the version of the patch I sent to you
> > worked or not?
> 
> It isn't worked because it use the mutex lock in irq handler stack.
> so, I resend v3 patch of max8997-haptic driver after modifying it.

Hmm, my patch did not add taking mutex in irq context, I presume you are
talking about max8997->iolock that is taken in max8997_write_reg... OK,
I see...

-- 
Dmitry
```

## Re: \[PATCH v2 0/2\] input: add MAX8997-haptic driver

- From: Chanwoo Choi \<cw00.choi@samsung.com\>
- Date: 2012-03-13 05:39:12 
- Message: https://ratatoskr.run/linux-input/2012/03/3834881.md

```text


On 03/13/2012 02:30 PM, Dmitry Torokhov wrote:
> On Mon, Mar 12, 2012 at 05:31:24PM +0900, Chanwoo Choi wrote:
>> Hi Dmitry,
>>
>> On 03/07/2012 05:29 PM, Dmitry Torokhov wrote:
>>> Hi Chanwoo,
>>>
>>>
>>> On Wed, Mar 07, 2012 at 05:02:49PM +0900, Chanwoo Choi wrote:
>>>> MAX8997 has several features in a single chip,
>>>> This patchset supports unimplemented haptic driver of MAX8997.
>>>>
>>>> v2
>>>> - code clean and remove unnecessary code according to comment of Dmitry
>>>> Torokhov
>>>
>>> Could you please tell me if the version of the patch I sent to you
>>> worked or not?
>>
>> It isn't worked because it use the mutex lock in irq handler stack.
>> so, I resend v3 patch of max8997-haptic driver after modifying it.
> 
> Hmm, my patch did not add taking mutex in irq context, I presume you are
> talking about max8997->iolock that is taken in max8997_write_reg... OK,
> I see...
> 
You're right. I'm sorry about my ambiguous reply for you.

Best Regards,
Chanwoo Choi
```
