From: "Ji-Ze Hong (Peter Hong)" Subject: Re: [PATCH 5/7] serial: 8250_fintek: Add F81216 Support Date: Tue, 6 Sep 2016 10:04:26 +0800 Message-ID: References: <1472701196-14795-1-git-send-email-hpeter+linux_kernel@gmail.com> <1472701196-14795-6-git-send-email-hpeter+linux_kernel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Ricardo Ribalda Delgado Cc: Greg Kroah-Hartman , Jiri Slaby , Arnd Bergmann , Peter Hurley , linux-serial@vger.kernel.org, LKML , =?UTF-8?B?UEEyMCBUT00gVFNBSSDolKHlrpfkvZE=?= , Peter H , "Ji-Ze Hong (Peter Hong)" List-Id: linux-serial@vger.kernel.org Hi Ricardo, Ricardo Ribalda Delgado 於 2016/9/1 下午 07:22 寫道: >> >> memcpy(pdata, &probe_data, sizeof(probe_data)); >> - uart->port.rs485_config = fintek_8250_rs485_config; > > Maybe just: > > > if (pdata->id != CHIP_ID_F81216) > uart->port.rs485_config = fintek_8250_rs485_config; > > > Instead of the whole function > >> uart->port.private_data = pdata; >> + fintek_8250_set_rs485_handler(uart); >> >> return 0; >> } Your comments is good for this patch. But we'll still try to add more SuperIO with this. So we'll separate it as a function to control individually. -- With Best Regards, Peter Hong