From: Jan Kiszka <jan.kiszka@siemens.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Linus Walleij <linus.walleij@linaro.org>,
Alexandre Courbot <gnurou@gmail.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
"linux-serial@vger.kernel.org" <linux-serial@vger.kernel.org>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>,
Sascha Weisenberger <sascha.weisenberger@siemens.com>
Subject: Re: [PATCH 8/8] serial: exar: Add support for IOT2040 device
Date: Thu, 18 May 2017 07:06:58 +0200 [thread overview]
Message-ID: <9c3fa989-b137-2935-23cd-d9c3a91c6ce6@siemens.com> (raw)
In-Reply-To: <CAHp75VcG4rZiWoym9U4qaoEzUT_AY0m62oL+a8Zb-=3yBFV5Og@mail.gmail.com>
On 2017-05-13 15:54, Andy Shevchenko wrote:
> On Sat, May 13, 2017 at 10:29 AM, Jan Kiszka <jan.kiszka@siemens.com> wrote:
>> This implements the setup of RS232 and the switch-over to RS485 or RS422
>> for the Siemens IOT2040. That uses an EXAR XR17V352 with external logic
>> to switch between the different modes. The external logic is controlled
>> via MPIO pins of the EXAR controller.
>>
>> Only pin 10 can be exported as GPIO on the IOT2040. It is connected to
>> an LED.
>>
>> As the XR17V352 used on the IOT2040 is not equipped with an external
>> EEPROM, it cannot present itself as IOT2040-variant via subvendor/
>> subdevice IDs. Thus, we have to check via DMI for the target platform.
>>
>> Co-developed with Sascha Weisenberger.
>>
>
> Please, refactor that using properly formed DMI structrure and use its
> callback and driver data facilities/
Could you point to a specific example? The callback of the dmi_system_id
structure is not designed to handle device initializations like this one
- not to speak of having those two different initialization points here.
Thanks,
Jan
--
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2017-05-18 5:07 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-13 7:28 [PATCH 0/8] serial/gpio: exar: Fixes and support for IOT2000 Jan Kiszka
2017-05-13 7:28 ` [PATCH 1/8] serial: exar: Preconfigure xr17v35x MPIOs as output Jan Kiszka
2017-05-22 15:38 ` Linus Walleij
2017-05-26 13:04 ` Jan Kiszka
2017-05-26 14:22 ` Andy Shevchenko
2017-05-26 18:38 ` Greg Kroah-Hartman
2017-05-13 7:29 ` [PATCH 2/8] gpio: exar: Fix passing in of parent PCI device Jan Kiszka
2017-05-13 13:25 ` Andy Shevchenko
2017-05-14 8:11 ` Jan Kiszka
2017-05-13 7:29 ` [PATCH 3/8] gpio: exar: Allocate resources on behalf of the platform device Jan Kiszka
2017-05-13 13:26 ` Andy Shevchenko
2017-05-22 15:39 ` Linus Walleij
2017-05-13 7:29 ` [PATCH 4/8] gpio: exar: Fix iomap request Jan Kiszka
2017-05-13 13:28 ` Andy Shevchenko
2017-05-13 7:29 ` [PATCH 5/8] gpio: exar: Fix reading of directions and values Jan Kiszka
2017-05-13 13:36 ` Andy Shevchenko
2017-05-18 5:20 ` Jan Kiszka
2017-05-18 10:11 ` Andy Shevchenko
2017-05-18 10:16 ` Jan Kiszka
2017-05-18 10:23 ` Andy Shevchenko
2017-05-18 10:28 ` Jan Kiszka
2017-05-13 7:29 ` [PATCH 6/8] serial: uapi: Add support for bus termination Jan Kiszka
2017-05-13 7:29 ` [PATCH 7/8] gpio-exar/8250-exar: Make set of exported GPIOs configurable Jan Kiszka
2017-05-13 13:50 ` Andy Shevchenko
2017-05-13 7:29 ` [PATCH 8/8] serial: exar: Add support for IOT2040 device Jan Kiszka
2017-05-13 13:54 ` Andy Shevchenko
2017-05-18 5:06 ` Jan Kiszka [this message]
2017-05-18 10:17 ` Andy Shevchenko
2017-05-18 10:37 ` Jan Kiszka
2017-05-18 10:56 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9c3fa989-b137-2935-23cd-d9c3a91c6ce6@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=andy.shevchenko@gmail.com \
--cc=gnurou@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=sascha.weisenberger@siemens.com \
--cc=sudip.mukherjee@codethink.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®