mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert" <linux@treblig.org>
To: Hans de Goede <hdegoede@redhat.com>
Cc: alexander.usyskin@intel.com, arnd@arndb.de,
	gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mei: vsc: Remove unused irq functions
Date: Tue, 24 Jun 2025 11:17:24 +0000	[thread overview]
Message-ID: <aFqJRIQkw624nQFf@gallifrey> (raw)
In-Reply-To: <30565c88-fb3c-4970-a7c8-bb81200a13aa@redhat.com>

* Hans de Goede (hdegoede@redhat.com) wrote:
> Hi David,
> 
> On 17-Jun-25 2:34 AM, linux@treblig.org wrote:
> > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> > 
> > vsc_tp_request_irq() and vsc_tp_free_irq() last uses were removed in 2024
> > by
> > commit 9b5e045029d8 ("mei: vsc: Don't stop/restart mei device during system
> > suspend/resume")
> > 
> > Remove them.
> > 
> > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> 
> Alexander pointed me at this patch because I just posted
> almost the same patch:
> 
> https://lore.kernel.org/lkml/20250623085052.12347-2-hansg@kernel.org/
> 
> Normally I would say lets go with your (David's) version since
> you posted your patch first.
> 
> But your patch is missing the removal of the function prototypes
> from vsc-tp.h, so in this case I think we should go with my version.

Oops, yep that makes sense to me.

Thanks,

Dave

> Regards,
> 
> Hans
> 
> 
> 
> > ---
> >  drivers/misc/mei/vsc-tp.c | 31 -------------------------------
> >  1 file changed, 31 deletions(-)
> > 
> > diff --git a/drivers/misc/mei/vsc-tp.c b/drivers/misc/mei/vsc-tp.c
> > index 267d0de5fade..99a55451e1fc 100644
> > --- a/drivers/misc/mei/vsc-tp.c
> > +++ b/drivers/misc/mei/vsc-tp.c
> > @@ -406,37 +406,6 @@ int vsc_tp_register_event_cb(struct vsc_tp *tp, vsc_tp_event_cb_t event_cb,
> >  }
> >  EXPORT_SYMBOL_NS_GPL(vsc_tp_register_event_cb, "VSC_TP");
> >  
> > -/**
> > - * vsc_tp_request_irq - request irq for vsc_tp device
> > - * @tp: vsc_tp device handle
> > - */
> > -int vsc_tp_request_irq(struct vsc_tp *tp)
> > -{
> > -	struct spi_device *spi = tp->spi;
> > -	struct device *dev = &spi->dev;
> > -	int ret;
> > -
> > -	irq_set_status_flags(spi->irq, IRQ_DISABLE_UNLAZY);
> > -	ret = request_threaded_irq(spi->irq, vsc_tp_isr, vsc_tp_thread_isr,
> > -				   IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
> > -				   dev_name(dev), tp);
> > -	if (ret)
> > -		return ret;
> > -
> > -	return 0;
> > -}
> > -EXPORT_SYMBOL_NS_GPL(vsc_tp_request_irq, "VSC_TP");
> > -
> > -/**
> > - * vsc_tp_free_irq - free irq for vsc_tp device
> > - * @tp: vsc_tp device handle
> > - */
> > -void vsc_tp_free_irq(struct vsc_tp *tp)
> > -{
> > -	free_irq(tp->spi->irq, tp);
> > -}
> > -EXPORT_SYMBOL_NS_GPL(vsc_tp_free_irq, "VSC_TP");
> > -
> >  /**
> >   * vsc_tp_intr_synchronize - synchronize vsc_tp interrupt
> >   * @tp: vsc_tp device handle
> 
-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/

  reply	other threads:[~2025-06-24 11:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-17  0:34 linux
2025-06-18  6:33 ` Usyskin, Alexander
2025-06-24  8:40 ` Hans de Goede
2025-06-24 11:17   ` Dr. David Alan Gilbert [this message]
2025-06-24 15:31     ` Greg KH

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=aFqJRIQkw624nQFf@gallifrey \
    --to=linux@treblig.org \
    --cc=alexander.usyskin@intel.com \
    --cc=arnd@arndb.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=hdegoede@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /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®